PDA

View Full Version : Forums without MOds Hack


huss
10-03-2001, 07:38 PM
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.

Admin
10-03-2001, 07:45 PM
In index.php, replace this:
if ( !isset($forum['moderators']) ) {
$forum['moderators'] = ' ';
}
with this:
if ( !isset($forum['moderators']) ) {
eval("\$forum['moderators'] = \"".gettemplate('forumhome_nomoderator')."\";");
}

Now create a template named 'forumhome_nomoderator' and put whatever you want in there.

By the way, this also works in forumdisplay.php for sub-forums.

huss
10-03-2001, 07:51 PM
Thanks.

Here's rooting for peace back home btw.

huss
10-03-2001, 08:11 PM
Looks great. Follow up question: what if i wanna do the same thing in the (modreated by: a;dlkfalj) area of forumdisplay?

Admin
10-03-2001, 08:18 PM
Do the same thing for forumdisplay.php.

eva2000
10-03-2001, 08:22 PM
nice hack.. :)

huss
10-03-2001, 08:29 PM
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.

Admin
10-03-2001, 08:33 PM
Replace:
if ( isset($moderatorslist) ) {
eval("\$moderatedby = \"".gettemplate('forumdisplay_moderatedby')."\";");
} else {
$moderatedby='';
}
with this:
if ( isset($moderatorslist) ) {
eval("\$moderatedby = \"".gettemplate('forumdisplay_moderatedby')."\";");
} else {
eval("\$moderatedby = \"".gettemplate('forumdisplay_nomoderatedby')."\";");
}
and create 'forumdisplay_nomoderatedby' template. :)

huss
10-03-2001, 08:35 PM
Toda Raba doooood.

Admin
10-03-2001, 08:39 PM
No problem man, bevakasha. :)

eva2000
10-03-2001, 08:52 PM
Originally posted by FireFly
No problem man, bevakasha. :) bevakasha ?? :confused:

huss
10-03-2001, 08:54 PM
Toda: Thanks
Toda Raba: Thanks a lot
Bevakasha (in this context): Your welcome
Bevakasha (in other context): Please

Your first Hebrew lesson:)

Admin
10-03-2001, 08:55 PM
ani ohev et vBulletin. :)

huss
10-03-2001, 08:59 PM
He really likes the software! ;-)

eva2000
10-03-2001, 09:15 PM
Originally posted by Huss
Toda: Thanks
Toda Raba: Thanks a lot
Bevakasha (in this context): Your welcome
Bevakasha (in other context): Please

Your first Hebrew lesson:) oh i see :)

Toda :D

Admin
10-03-2001, 09:28 PM
[QUOTE]Originally posted by Huss
He really likes the software! ;-)