Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Moderator Dropdown Listing Details »»
Moderator Dropdown Listing
Version: 1.00, by Feran Feran is offline
Developer Last Online: Nov 2004 Show Printable Version Email this Page

Version: 3.0.0 Rating:
Released: 01-19-2004 Last Update: Never Installs: 11
 
No support by the author.

Yeah, I found it kinda annoying how having multiple moderators for one forum would make things rather ugly and cluttery and jumble up my front page. So, I made this nifty little hack ^_^

Features:
- Upon choosing a moderator, it will link to that moderator's profile
- A link to showgroups.php

Download, install, enjoy. Only one edit!! 8)

PHP Code:
Open includes/functions_forumlist.phpfind this:

//////////////////////////////////////////////////////////////////

                // get moderators ( this is why we needed cache_moderators() )
                
if ($vboptions['showmoderatorcolumn'])
                {
                    
$showmods = array();
                    
$listexploded explode(','$forum['parentlist']);
                    foreach (
$listexploded AS $parentforumid)
                    {
                        if (!isset(
$imodcache["$parentforumid"]))
                        {
                            continue;
                        }
                        foreach(
$imodcache["$parentforumid"] AS $moderator)
                        {
                            if (
$showmods["$moderator[userid]"] === true)
                            {
                                continue;
                            }

                            
$showmods["$moderator[userid]"] = true;
                            if (!isset(
$forum['moderators']))
                            {
                                eval(
'$forum[\'moderators\'] = "' fetch_template('forumhome_moderator') . '";');
                            }
                            else
                            {
                                eval(
'$forum[\'moderators\'] .= ", ' fetch_template('forumhome_moderator') . '";');
                            }
                        }
                    }
                    if (!isset(
$forum['moderators']))
                    {
                        
$forum['moderators'] = '';
                    }
                }


//////////////////////////////////////////////////////////////////

Replace it with this:

//////////////////////////////////////////////////////////////////

                // get moderators ( this is why we needed cache_moderators() )
                
if ($vboptions['showmoderatorcolumn'])
                {
                    
$showmods = array();
                    
$listexploded explode(','$forum['parentlist']);
                    foreach (
$listexploded AS $parentforumid)
                    {
                        if (!isset(
$imodcache["$parentforumid"]))
                        {
                            continue;
                        }
                        foreach(
$imodcache["$parentforumid"] AS $moderator)
                        {
                            if (
$showmods["$moderator[userid]"] === true)
                            {
                                continue;
                            }

                            
$forum['moderators'] .= "<option value='{$moderator[userid]}'>{$moderator[username]}</option>";
                        }

                    }

$modhack_head = <<< CONTENT

<script>
<!--
function moddrophack_redir(tparam)
{
    if (tparam != -1) {
        location.href = 'member.php?userid=' + tparam;
    }
    else {
        location.href = 'showgroups.php';
    }
}
// -->
</script>

<form method="post">

<select id="moddrophack" onchange="moddrophack_redir(this.options[selectedIndex].value)">
<option value="-1">--------------</option>

CONTENT;

$modhack_foot '<option value="-1">View All Mods</option></select></form>';

                    if (!isset(
$forum['moderators']))
                    {
                        
$forum['moderators'] = '';
                    }
                    else {
                        
$forum['moderators'] = $modhack_head $forum['moderators'] . $modhack_foot;
                    }
                } 

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 04-30-2004, 09:05 AM
aloha aloha is offline
 
Join Date: Jan 2004
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Slip-DCC
<_<
Can you pleasssse do this?
Your going to force me to have to do it myself...thats not a pretty site when a lazy ass like me does something useful.

LMAO
Reply With Quote
  #23  
Old 03-12-2005, 12:51 PM
Alfi Alfi is offline
 
Join Date: Feb 2005
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmm, I dont know why, but it works on the main forums, but not on sudforums. Does anyone else face the same problem?

Lol, it could be just me, I installed it at 4 in the morning :P
Reply With Quote
  #24  
Old 05-16-2005, 02:20 PM
FuZE FuZE is offline
 
Join Date: Sep 2002
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Will This Work On 3.0.7?
Reply With Quote
  #25  
Old 05-20-2005, 04:44 PM
HarryBO HarryBO is offline
 
Join Date: Jan 2003
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thx very nice Add on!
Reply With Quote
Reply


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 03:02 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04104 seconds
  • Memory Usage 2,273KB
  • Queries Executed 19 (?)
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)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (4)postbit
  • (5)postbit_onlinestatus
  • (5)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_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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete