Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
  #1  
Old 11-04-2006, 09:38 AM
roni1015 roni1015 is offline
 
Join Date: Dec 2005
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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?
Reply With Quote
  #2  
Old 11-04-2006, 12:48 PM
RS_Jelle RS_Jelle is offline
 
Join Date: Jul 2005
Posts: 1,276
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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).
Reply With Quote
  #3  
Old 11-04-2006, 01:15 PM
roni1015 roni1015 is offline
 
Join Date: Dec 2005
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #4  
Old 11-04-2006, 03:04 PM
RS_Jelle RS_Jelle is offline
 
Join Date: Jul 2005
Posts: 1,276
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just search for $vboptions['showmoderatorcolumn'] in the templates. That's the condition that controls it, so you can remove is easily
Reply With Quote
  #5  
Old 11-04-2006, 03:32 PM
roni1015 roni1015 is offline
 
Join Date: Dec 2005
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmmmm, perhaps *you* could remove it easily....you give me far too much credit, though.

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?
Reply With Quote
  #6  
Old 11-04-2006, 04:57 PM
RS_Jelle RS_Jelle is offline
 
Join Date: Jul 2005
Posts: 1,276
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #7  
Old 11-04-2006, 07:44 PM
roni1015 roni1015 is offline
 
Join Date: Dec 2005
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:01 PM.


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.02775 seconds
  • Memory Usage 2,207KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete