View Full Version : Admin Links: Only For Admins
TWTCommish
02-14-2001, 04:15 PM
Is there a simple hack that will only display your typical admin links for people logged in as Admins/Moderators? I'm referring to the ones at the bottom of each forum, thread, calendar event, user profiles, etc.
Thanks. :)
Oh, also: can I take the simple "Rate This Thread" code and place it anywhere in the showthread template using 2.0?
1) Not at this time... Stay Tuned to this channel though.
2) Yes.
I just set this up on my test board:
In forumdisplay.php, find this:
if ($foruminfo['allowposting']==1) {
ABOVE it, insert this:
if (ismoderator($forumid, $bbuserinfo[userid])) {
eval("\$forumdisplay[adminoptions] = \"".gettemplate('forumdisplay_adminoptions')."\";");
}
Then move the Admin Options into a new template called forumdisplay_adminoptions
And in showthread.php:
Find this:
// goto last post
if ($goto=="lastpost") {
ABOVE it, insert this:
if (ismoderator($threadinfo[forumid], $bbuserinfo[userid])) {
eval("\$showthread[adminoptions] = \"".gettemplate('showthread_adminoptions')."\";");
}
And make a showthread_adminoptions template.
I haven't done it for Users etc but it shouldn't be hard to implement :)
Okay, thanks Wayne - I'll keep checking in. :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.