![]() |
How do I put the "Moderated by" in the Forum desrciption like on the vb.org forums.
|
it is actually very simple, not actually a hack, but a template modification...
1. Login to Admin Panel 2. Select "Modify" in the Template Section 3. Expand List 4. Expand "Forum Home Page Templates" 5. Edit/Change Original (depending on previous edit or not) template "forumhome_moderator" 6. Change "forumhome_moderator" (from the default) to Code:
Moderated By: <a href="member.php?s=$session[sessionhash]&action=getinfo&userid=$moderator[userid]">$moderator[username]</a> 7. Repeat step 5 on "forumhome_forumbit_level2_post" 8. In "forumhome_forumbit_level2_post" find "$forum[description]" after that add Code:
<br><b>$forum[moderators]</b> James P.S. looks a bit different from vb.org's layout, to remove the bold print take out the bold tags in the second code segment, and to change the layout of the list (such as to add the [] for example) edit the "forumhome_moderator" template as you wish. |
I did it like that but if you have more then one moderator for a forum, the Moderated By part shows up twice. How can I get it to show up once but with all of the moderator names for that forum?
|
I get the same problem...
Plus - How do you make it display a newthread link? Satan |
@Boofo :
I figured out how to change it... Keep the "forumhome_moderators" as the default, and edit the "forumhome_forumbit_level2_post" Do as he says, and find "$forum[description]" after that add : Code:
<br><b>Moderated by:</b> [$forum[moderators]] Now...How do you do the new thread? Satan |
Quote:
Won't work like that. Then it will show Moderated By: even when there are no mods for that forum. :) Nick had it fixed once, but I took the code out when he left me with it and started over again. Guess I should have left it in, huh? :) The new thread thing I haven't played with yet. I will see what I can come up with but it should work just like the hack for the forum titles in the last post column, only in a different place. |
Can anyone please help us here with the Moderated By on forum home? I want to have it only show up when there are moderators for the particular forum and list ALL of the moderators instead of doing a Moderated By for each moderator.
|
Quick and dirty:
in index.php find PHP Code:
PHP Code:
|
You'll probably want to repeat the file edit in forumdisplay.php
|
This is what I have in my root/index.php:
Code:
if ( !isset($forum['moderators']) ) { [Moderated By: whomever, noone] |
All times are GMT. The time now is 01:40 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|