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.
Changing permissions in plugins (Flagging and Quotes) to allow guests access to using them?
I'd like to allow Guests to be able to use Flagging and Quotes, but do not know how to change the permissions to do so. Do I need to change guest account permissions or simply change the permissions in the addon itself? And if so, where would I go about being able to do this?
0
Answers
@KJHenf : Do you see 'Flag' or 'Abuse' report link in your posts? I installed the plugin, but it doesn't show anything.
When I'm signed in with admin privileges I see both, and both work for me.
I looked into class.quotes.plugin.php and found starting at line 84:
I assumed the first part was an in statement checking to see if the person was a registered user so I simply deleted the if line. This displayed the quote button and allowed me to click it, however when I click the quote button it takes me to a new "post comment" page and will not allow a guest to post; I'm not entirely sure how to make it so that the quote function will retain it's original functionality (allowing the "quote" to simply appear in the reply box at the bottom of the page).
Okay... I seem to have found a way to enable guests access to seeing both the quote and flag features (meaning the buttons "flag" and "quote"), but I haven't been able to figure out how to actually allow them to make use of these features (for example the "flag" button will not display the pop-up and the quote function will re-direct you to a new post page in which guests do not have the right to post... I want the quote function to simply add the
<
blockquote> styling into the post box at the bottom of the page. The site is (deleted) for reference).
I managed to get Flagging to completely work simply by changing the check for whether or not a user is logged in, but quoting is giving me troubles.
I changed:
if (!Gdn::Session()->UserID) return;
To:
Which enabled the quote button to work, but now I get the error:
At line 16 of quote.js which is (starting at line 8-16):
This is making the quote function transfer you to a new page to post a comment, which conflicts with how the anonymouse plugin works. The quote material should simply be transferred to the comment box at the bottom of the page (exactly how this forums quote function works). Any thoughts? Thanks!
Alright, I've tried enabling/disabling all other plugins and it doesn't help; I still get the same "$("span.CommentQuote a").livequery is not a function" error.
For now I just removed the if statement altogether, since it didn't seem necessary. I want the quote button added regardless.