I downloaded and enabled:
Statuses,
Statuses Flags,
Statuses Comments Flag Integration and
Facebook-style Micropublisher
I wish to use the "like_comments" flag provided by fbss_comments_flag (Statuses Comments Flag Integration) in the Statuses Stream for each User Profile.
From the configuration for Flags located at /admin/structure/flags, update code is provided from API 2 to 3 for fbss_comments_flag_flag_default_flags() found in fbss_comments_flag.module.
After updating the code, clearing the cache and reloading /admin/structure/flags, the OPERATIONS for like_comments now lists a link to "enable", but clicking this link results in the following message:
"The module providing this flag wasn't found, or this flag type, fbss_comment, isn't valid."
Comment | File | Size | Author |
---|---|---|---|
#6 | statuses-7.x-1.0-beta2-submod-entityAdditions.patch | 10.58 KB | logicp |
#5 | statuses-7.x-1.0-beta2-entityAdditions.patch | 4.26 KB | logicp |
flagEnableError.jpg | 37.05 KB | logicp | |
flagAdminConfig.jpg | 107.36 KB | logicp |
Comments
Comment #2
logicp CreditAttribution: logicp as a volunteer commentedI solved this by declaring an entity type and controller for statuses as well as fbss_comments. Everything works great now!
If someone needs help, please bug me and I'll get around to outlining the process in more detail.
Comment #3
ugintl CreditAttribution: ugintl commented@adventurist can you please tell in more detail. I having the same problem with like and like comment
Comment #4
logicp CreditAttribution: logicp as a volunteer commentedPardon the delay, I didn't see your message until now. Are you still looking for a solution? I will look at my code and make a patch. Please stay tuned.
Comment #5
logicp CreditAttribution: logicp as a volunteer commentedHere's what I added to the 1.0-beta2 release of Statuses in order to get the like functionality to work. Be forewarned, there is some placeholder content and the code can likely be cleaned up a bit, but I've been using it in a development project just fine without any issues.
Comment #6
logicp CreditAttribution: logicp as a volunteer commentedHere is a patch for the submodules: fbss_comments and fbss_flag.
Once again, I apologize for the messy code. I didn't have any time to clean it up, but I can attest to the fact that it's working well within one of my projects.
Comment #7
logicp CreditAttribution: logicp as a volunteer commentedI'm not seeing an option for beta in the Version, so I've listed it as dev. I'll have to actually try it against the dev version to see if it works there. Will do this later, unless someone else does it first (by all means, please do this!)
Thanks everyone.
Comment #8
ugintl CreditAttribution: ugintl commentedI did not receive any email notification for your comments. So i have to apply both #5 and #6?
Comment #9
ugintl CreditAttribution: ugintl commentedAfter having problem with flag 3. I am using statuses dev and flag 2. Everything working perfectly, but no events are showing in rules as to when a user likes a statuses update.
Note: This is not related to your patch. Just shared my experience.
Comment #10
ugintl CreditAttribution: ugintl commentedI will try your patch, will let you know
Comment #11
ugintl CreditAttribution: ugintl commentedI tried to apply patch through git, but it says
error: patch failed: statuses.module:134
error: statuses.module: patch does not apply
Comment #12
ugintl CreditAttribution: ugintl commentedComment #13
ugintl CreditAttribution: ugintl commentedComment #14
ugintl CreditAttribution: ugintl commentedI removed line 6 & 7 in patch and added a } on line 20. By doing this 2 errors are gone, but still getting error. Someone needs to look at this patch please