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
  #12  
Old 01-24-2004, 09:01 PM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

see the big [vB3.0.0] in the version number?

its a big arsed no nothing for vB3 will work with vB2

try vbulletintemplates.com for a vB2 version of moderator drop downs
Reply With Quote
  #13  
Old 01-24-2004, 09:06 PM
SunderlandJ SunderlandJ is offline
 
Join Date: Dec 2003
Location: UK
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just thought that I would make my post clear that the problem I am having is for version 3.0 and not the 2x
Reply With Quote
  #14  
Old 01-29-2004, 07:49 PM
sjau sjau is offline
 
Join Date: Apr 2003
Location: Switzerland
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there now a fix for 3.0.0 RC 3?
Reply With Quote
  #15  
Old 01-29-2004, 09:24 PM
alshehi alshehi is offline
 
Join Date: Nov 2003
Location: Uae
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

>>...
Reply With Quote
  #16  
Old 02-06-2004, 04:02 PM
AN-net's Avatar
AN-net AN-net is offline
 
Join Date: Dec 2003
Location: AnimationTalk.com
Posts: 2,367
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yeah this doesnt work with rc3, someone should edit the version to vb3 gama or whatever this hack works with
Reply With Quote
  #17  
Old 02-10-2004, 12:39 AM
Feran's Avatar
Feran Feran is offline
 
Join Date: Oct 2003
Location: San Diego, CA (USA)
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by AN-net
yeah this doesnt work with rc3, someone should edit the version to vb3 gama or whatever this hack works with
Rofl, that sucks. I'll have to look into it <.< Um, i'll fix it by tomorrow.
Reply With Quote
  #18  
Old 02-13-2004, 03:21 PM
Papino Papino is offline
 
Join Date: Sep 2003
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

no fix yet? im very interested to this nice hack..


pls Feran
Reply With Quote
  #19  
Old 02-22-2004, 04:37 AM
Solid-Snake Solid-Snake is offline
 
Join Date: Oct 2003
Location: Ohio
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<_<
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.
Reply With Quote
  #20  
Old 02-22-2004, 06:38 AM
gmarik's Avatar
gmarik gmarik is offline
 
Join Date: May 2002
Location: Mocsow
Posts: 1,288
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

who neeeds them anyway ...
Reply With Quote
  #21  
Old 02-24-2004, 01:09 AM
LordJMann LordJMann is offline
 
Join Date: Jan 2003
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For everybody who was waiting for a template version of this, and that works with the latest version of vB3, check this out:

http://www.vbulletintemplates.com/mo...6831#post46831

Enjoy!
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 11:23 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.04900 seconds
  • Memory Usage 2,339KB
  • Queries Executed 25 (?)
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
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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