View Full Version : Display forum mods under forum description?
roni1015
11-04-2006, 09:38 AM
I am looking for a way to display the moderators of a particular forum underneath the forum name and description on the forum home page, similar to the way phpbb displays forum moderators. Does anyone if such a mod exists or if there is an easy way to do this?
RS_Jelle
11-04-2006, 12:48 PM
Just add the $forum[moderators] variable where you want in the forumhome_forumbit_level1_nopost template for example beneath the $forum[description] variable (use <br /> to put it on a new line) ;)
I think you have to turn on the moderator column option to get the variable to work (so you need to remove the moderator column from the templates).
roni1015
11-04-2006, 01:15 PM
Just add the $forum[moderators] variable where you want in the forumhome_forumbit_level1_nopost template for example beneath the $forum[description] variable (use <br /> to put it on a new line) ;)
Ok, that much I was able to do.
I think you have to turn on the moderator column option to get the variable to work (so you need to remove the moderator column from the templates).
But not sure where or how to remove that moderator column without totally messing up the boards. Can you advise?
RS_Jelle
11-04-2006, 03:04 PM
Just search for $vboptions['showmoderatorcolumn'] in the templates. That's the condition that controls it, so you can remove is easily ;)
roni1015
11-04-2006, 03:32 PM
Hmmmm, perhaps *you* could remove it easily....you give me far too much credit, though.:confused:
I found the following code in the forumhome template:
<!-- guest welcome message -->
<tr>
<td class="vbmenu2_control" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><center><phrase 1="$vboptions[bbtitle]">$vbphrase[welcome_to_the_x]</phrase></center></td>
</tr>
<tr>
<td colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>">
<phrase 1="faq.php$session[sessionurl_q]" 2="register.php$session[sessionurl_q]">$vbphrase[first_visit_message]</phrase>
</td>
</tr>
<!-- / guest welcome message -->
Is that what I remove? The whole thing?
RS_Jelle
11-04-2006, 04:57 PM
No, just look at the condition with that vBulletin option. So in this case this part of that code:
<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>
You can "read" this very easily in a normal way: if you use the moderator column, the value is 6, if you aren't using it, the value is 5.
So you change it to:
5
Because you want to enable the column (to get the variable), but you don't want it to show.
Like that you edit all the templates where you find this vBulletin option ;)
roni1015
11-04-2006, 07:44 PM
Ok, sheesh, I feel like a moron. I changed the colspan to colspan="5", added the forum moderator code above to the template mentioned ($forum[moderators]), and switched it to display the mods column. The result was the standard display of the standard moderator column down the side, that I didn't want. What the heck did I do wrong?? UGH.
Thank you very much for help by the way, I really do appreciate it. :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.