The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
I would like to see a hack where if a forum doesn't have a mod, in the mod column a link appears saying "Apply to Moderate This Forum" taking the user to an email forum or a configurable forum with aplication questions.
|
#2
|
||||
|
||||
In index.php, replace this:
Code:
if ( !isset($forum['moderators']) ) { $forum['moderators'] = ' '; } Code:
if ( !isset($forum['moderators']) ) { eval("\$forum['moderators'] = \"".gettemplate('forumhome_nomoderator')."\";"); } By the way, this also works in forumdisplay.php for sub-forums. |
#3
|
|||
|
|||
Thanks.
Here's rooting for peace back home btw. |
#4
|
|||
|
|||
Looks great. Follow up question: what if i wanna do the same thing in the (modreated by: a;dlkfalj) area of forumdisplay?
|
#5
|
||||
|
||||
Do the same thing for forumdisplay.php.
|
#6
|
||||
|
||||
nice hack..
|
#7
|
|||
|
|||
No you missed my point. I did the same thing for forum display and it works great on the forum listing.
I'm talking about the top of the forum display when you are in an actual forum id where it says (Moderated by: x y and z) but when there are no mods nothign is there. I can't find where to put the code. |
#8
|
||||
|
||||
Replace:
Code:
if ( isset($moderatorslist) ) { eval("\$moderatedby = \"".gettemplate('forumdisplay_moderatedby')."\";"); } else { $moderatedby=''; } Code:
if ( isset($moderatorslist) ) { eval("\$moderatedby = \"".gettemplate('forumdisplay_moderatedby')."\";"); } else { eval("\$moderatedby = \"".gettemplate('forumdisplay_nomoderatedby')."\";"); } |
#9
|
|||
|
|||
Toda Raba doooood.
|
#10
|
||||
|
||||
No problem man, bevakasha.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|