vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Listing Moderators On Forum Home (https://vborg.vbsupport.ru/showthread.php?t=63094)

TheFiringLine 03-28-2004 08:00 PM

Listing Moderators On Forum Home
 
Haven't found this in a search so I'm assuming it's not been done:
In VB2.x we had a hack that listed the Moderators along side each Forum...in an extra column.

Is anyone working on this?
Thanks-
Rich

Ryan Ashbrook 03-28-2004 08:05 PM

It's an option in the Admin CP. Forum Listing options I blieve.

TheFiringLine 03-28-2004 09:23 PM

Very Cool. Thanks.
It's in VBulletin options/Forum Listing
Rich

dfmafia 03-28-2004 09:55 PM

u can use the moderator drop down box to get it better looking

i had it one 1 test forum b4 i took it down

ill check it out again...its a different install than on vB2.3.x

dfmafia 03-28-2004 10:59 PM

1 Attachment(s)
i edited the code a bit to get it to work with vB3


in forumhome_forumbit_level2_post AND forumhome_forumbit_level1_post
find:
PHP Code:

        <if condition="$vboptions['showmoderatorcolumn']">
        <
td class="alt1"><div class="smallfont">$forum[moderators]&nbsp;</div></td>
        </if> 

replace with:
PHP Code:

    <if condition="$vboptions['showmoderatorcolumn']">
<
form><td class="alt1" valign="middle" align="right" nowrap>
<
SELECT NAME="newLoc" onChange="jumpPage(this.form.newLoc)" style="font-size: 7pt; background-color: #182029; font-family: Arial, Tahoma;" maxlength="20">
<
OPTION VALUE="#">moderators</OPTION>
<
OPTION VALUE="#">---------------------</OPTION>
$forum[moderators]</select></td></form>
    </if> 


thats how u get the drop down box

now i cant figure out how to get the moderator names in there

also u can get it in the forum display template:

in forumdisplay_moderator
find:
PHP Code:

<a href="member.php?$session[sessionurl]u=$moderator[userid]">$moderator[musername]</a

replace with:
PHP Code:

    <if condition="$vboptions['showmoderatorcolumn']">
<
form><class="alt1" valign="middle" align="right" nowrap>
<
SELECT NAME="newLoc" onChange="jumpPage(this.form.newLoc)" style="font-size: 7pt; background-color: #182029; font-family: Arial, Tahoma;" maxlength="20">
<
OPTION VALUE="#">moderators</OPTION>
<
OPTION VALUE="#">---------------------</OPTION>
$forum[moderators]</select></form

again its messed up...it lists each moderator next to a drop down box

i dont know enough about php and html to fix it...im still learning as i go

also u can change the background color


if any1 can get this to work i know it will be a great addition to all boards with more than 1 or 2 moderators

for an example of what i mean view my test forums:
http://filestore.dfmafia.net/vb3
or the attackment for the forumdisplay_moderator errors


All times are GMT. The time now is 10:08 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.01073 seconds
  • Memory Usage 1,735KB
  • 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
  • (4)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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