In quotes.php, find:
PHP Code:
require_once('./global.php');
below that, add:
PHP Code:
if (!$bbuserinfo['permissions']['adminpermissions']) {
print_no_permission();
exit;
}
In your quote_randomquote template, find:
HTML Code:
(<a href="$vboptions[bburl]/quotes.php?do=addquote">$vbphrase[add_a_quote]</a>
<if condition="$bbuserinfo[\'permissions\'][\'adminpermissions\']">
| <a href="$vboptions[bburl]/quotes.php?do=delquote"eid=$randomquote[quoteid]">$vbphrase[delete_this_quote]</a> | <a href="$vboptions[bburl]/quotes.php?do=editquote"eid=$randomquote[quoteid]">$vbphrase[edit_this_quote]</a>
</if>
| <a href="$vboptions[bburl]/quotes.php?do=list">$vbphrase[view_all_quotes]</a>)
replace that with:
HTML Code:
<if condition="$bbuserinfo[\'permissions\'][\'adminpermissions\']">
(<a href="$vboptions[bburl]/quotes.php?do=addquote">$vbphrase[add_a_quote]</a>
| <a href="$vboptions[bburl]/quotes.php?do=delquote"eid=$randomquote[quoteid]">$vbphrase[delete_this_quote]</a> | <a href="$vboptions[bburl]/quotes.php?do=editquote"eid=$randomquote[quoteid]">$vbphrase[edit_this_quote]</a>
| <a href="$vboptions[bburl]/quotes.php?do=list">$vbphrase[view_all_quotes]</a>)
</if>
That should do what you want.