Version: 1.00, by magnus
Developer Last Online: Feb 2012
Version: 3.0.0
Rating:
Released: 03-13-2004
Last Update: Never
Installs: 151
No support by the author.
[hr]-[/hr]
QuoteIt! Development has been continued in this thread. Please use this link for the latest version!
[hr]-[/hr]
QuoteIt! 1.2
Description
This hack will allow you to maintain a database of quotes which can be added by users and displayed on FORUMHOME. Admin function includes the ability to delete quotes from the database.
I finished the intructions but I don't see it anywhere on my homepage or forum...?
using vb version 3.0.3
Clearifying a little, I don't see any thing where a user can add a quote anywhere. Nor any type of box where the quote would be shown.
And for the record, I went through all 12 pages of this thread to see if there already was an answer to my problem, I`m blind now but at least I`m not repeating anything.
To allow your administrator group to bypass being moderated (assuming that you have quotes moderation turned on in your ACP) make the following changes to quotes.php......
Find....
Code:
if (empty($author) OR empty($quote))
{
eval (print_standard_error('error_requiredfields'));
}
And below it add:
Code:
if (!$bbuserinfo['permissions']['adminpermissions'])
{ // Use the moderation option set in the ACP
$moderate_quote = $vboptions[moderatequotes];
}
else
{ // Do not moderate administrator quotes
$moderate_quote = 1;
}
To allow your administrator group to bypass being moderated (assuming that you have quotes moderation turned on in your ACP) make the following changes to quotes.php......
Find....
Code:
if (empty($author) OR empty($quote))
{
eval (print_standard_error('error_requiredfields'));
}
And below it add:
Code:
if ($bbuserinfo['usergroupid'] == 6)
{ // Do not moderate administrator quotes
$moderate_quote = 1;
}
else
{ // Use the moderation option set in the ACP
$moderate_quote = $vboptions[moderatequotes];
}
BTW - My account is a member of the administrators group, but that's NOT my primary usergroup. Dunno if that matters.
I haven't played around with the user being in multiple groups yet; when I get home tonight I'll check it out to see if there's a quick fix.
Edit: OK, I changed my first post above. I wasn't thinking abstract enough..... going by the explicit usergroup is too literal.... if you have permissions to moderate the quotes then there is no point in having your own submissions sent to moderation. Try the revised code above.
Okay, that didn't work either. But what did work was changing
PHP Code:
if ($bbuserinfo['usergroupid'] == 6)
to this
PHP Code:
if ($bbuserinfo['usergroupid'] == 6 || $bbuserinfo['usergroupid'] == 9)
Since 9 is the one that is the primary usergroup for my account.
HHmm.... if that didn't work, have you tried deleting any quotes yet? That command is the same command used in the rest of the script to determine if the person has access to moderate quotes or not. Did you change the entire block or just the first line?
HHmm.... if that didn't work, have you tried deleting any quotes yet? That command is the same command used in the rest of the script to determine if the person has access to moderate quotes or not. Did you change the entire block or just the first line?
Just the first line. I can moderate, delete, etc with that same account. No problem.
I should've specified "copy, paste, & replace all of the lines otherwise the logic will be backwards, anybody who has moderation privileges would be controlled through the ACP and everybody else would've been un-moderated."