Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Members can't see Reply link
Hi, I'm sure I'm missing something, but I've installed the ReplyTo plugin, and I can see the Reply link next to each comment under my login as administrator, but no members can see it. I've tried to go into the User roles, but I don't see any specific settings for ReplyTo for Members. Help?
0
Comments
*edit: I've hacked the class.replyto.plugin.php a bit.
At line 262 i've removed
&& $Session->CheckPermission('Vanilla.Comments.Add', TRUE, 'Category', $CategoryID)
Everybody who's logged in can see the link now. That's no problem in my case :-)
Somehow there is a bug in that line. Every category that doesn't have "This category has custom permissions." checked, does return false to that permision check.
Thanks again for posting.
I found the following code in an template file, is it something with the difference between those checks? The ReplyTo script is checking at CategoryID while the other script is checking PermissionCategoryID
$PermissionCategoryID = GetValue('PermissionCategoryID', $Object, GetValue('PermissionCategoryID', $Sender->Discussion)); $Session->CheckPermission('Vanilla.Discussions.Add', TRUE, 'Category', $PermissionCategoryID))
Don't know if that's the thing.. But why does the one checks permissions at category id, and the other gets PermissionCategoryID first.
Also, i found this one:
30 /* 31 Caused non-root users to not be able to add comments. Must take categories 32 into account. Look at CheckPermission for more information. 33 if (!$Session->CheckPermission('Vanilla.Comment.Add')) { 34 $CommentOptions['Disabled'] = 'disabled'; 35 $CommentOptions['Value'] = T('You do not have permission to write new comments.'); 36 } 37 */
@ http://phpkode.com/source/p/vanilla-forum/vanilla/applications/vanilla/views/post/comment.php
So there definitely is something wrong with the line in my previous post.
I don't know, how it affects to specific categories settings but it work in simple variant.
In file plugins/ReplyTo/class.replyto.plugin.php in function AddReplyToButton try to replace lines
-- && $Session->CheckPermission('Vanilla.Comments.Add', TRUE, 'Category', $CategoryID)
++ && $Session->CheckPermission('Vanilla.Comments.Add')
Yeee! I found the problem!
In file plugins/ReplyTo/class.replyto.plugin.php in function AddReplyToButton replace lines
if (isset($Sender->Discussion->PermissionCategoryID)) { $CategoryID = $Sender->Discussion->CategoryPermissionID;
replace
if (isset($Sender->Discussion->PermissionCategoryID)) { $CategoryID = $Sender->Discussion->PermissionCategoryID;
Thanks :-)
I have added this correction to the master branch here:
https://github.com/judgej/Vanilla-ReplyTo-Plugin/tree/master/ReplyTo
I haven't tested it or made a release yet, but if anyone would like to test it, I'll package up a new version.
-- Jason
I tried your version from the master branch but couldn't even get it to enable on Vanilla 2.0 (latest stable release).
-k0nsl
Someone managed to make this work?
I'd like to use the plugin but for me it doesn't work.
follow the instructions carefully.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
Do you still use this plugin? Becouse it doesn't work now...
it works perfectly if you follow the instructions.
if the above help didn't work for you
try this:
http://vanillaforums.org/discussion/comment/154400/#Comment_154400
and this
http://vanillaforums.org/discussion/comment/154402/#Comment_154402
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
@peregrine,
Repply button problem fixes with this.
http://vanillaforums.org/discussion/comment/168256/#Comment_168256
But another problem is going on even if I tried your offers here.
http://vanillaforums.org/discussion/comment/154400/#Comment_154400
http://vanillaforums.org/discussion/comment/154402/#Comment_154402
Hi Everyone
I am not able to get going with above all instruction. I followed all instruction carefully but it still didnt work.
I am getting below error
Please help me out for this.
Thanks in advance.
what version of vanilla are you using? if you are using 2.1.x, see
http://vanillaforums.org/discussion/comment/218124/#Comment_218124
and
http://vanillaforums.org/discussion/26703/plugins-themes-that-work-and-don-t-work-in-vanilla-2-1/p1
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.