vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Display forum mods under forum description? (https://vborg.vbsupport.ru/showthread.php?t=130748)

roni1015 11-04-2006 09:38 AM

Display forum mods under forum description?
 
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

Quote:

Originally Posted by RS_Jelle
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.

Quote:

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:

Code:

<!-- 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:
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:
Code:

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. :)


All times are GMT. The time now is 01:09 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
  • Page Generation 0.02741 seconds
  • Memory Usage 1,726KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete