Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

Reply
 
Thread Tools
Details »»

Version: , by Kier Kier is offline
Developer Last Online: May 2011 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 03-14-2001 Last Update: Never Installs: 7
 
No support by the author.

Updated to Version 2.0 16-3-2001
(v2 includes bug fixes and full avatar support)

This is a complete rewrite of my super-moderators listing hack for Me2Be...



This new version shows all members of the Administrators, Super-Moderators and Moderators groups. Note that moderators do not have to be placed in a new usergroup for this hack to work.

Users have their online status and location displayed, along with a PM link. Moderators also have the forums they moderate displayed. There is an option in the script to enable avatar support.

Installation is almost completely automatic, through an install script (supplied). Upload showmods.php to your forums directory, and install_showmods.php to your forums/admin folder.

If you want to disable avatars, open the showmods.php script and set $showavatars to "no". (If you have disabled avatars in the control panel, they will not be shown anyway).

Then run the install script (admin/install_showmods.php) each time you upgrade your board to a new version of vbulletin, in order to add the necessary templates to the master template set.

You should run the install script if you are upgrading from the previous version too, it will perform the necessary steps to upgrade the global templates.

You can then add a link to "showmods.php?s=$session[sessionhash]" to any of your other templates.

Show Your Support

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

Comments
  #12  
Old 03-15-2001, 11:27 AM
Guest
 
Posts: n/a
Default

wow! another brilliant hack!
Reply With Quote
  #13  
Old 03-15-2001, 12:01 PM
Guest
 
Posts: n/a
Default

Quote:
Originally posted by Ryan Little
Forums that have administrative moderators are shown more than once under the moderators table. This could become very annoying if an administrator moderated more than one forum.

Is there any way to prevent this from happening? See attachment.
Got the same Problem
Reply With Quote
  #14  
Old 03-15-2001, 01:35 PM
Guest
 
Posts: n/a
Default

cool
Reply With Quote
  #15  
Old 03-15-2001, 02:05 PM
Guest
 
Posts: n/a
Default

Quote:
Originally posted by pipi
i got problem is as below.
Fatal error: Call to unsupported or undefined function foreach() in /web1/users/909090/docs/forums/showmods.php on line 78
How did you get hold of that version? The version downloadable above does not use the foreach() function at all.
Reply With Quote
  #16  
Old 03-15-2001, 03:33 PM
Guest
 
Posts: n/a
Default

Got same prob with admin = mod and listing all forums x times.....

and would also like the avatar thing and the title + posts
Reply With Quote
  #17  
Old 03-15-2001, 03:46 PM
Guest
 
Posts: n/a
Default

Just incase anyone wants it, I took 2 mins and make a View List link next to my Moderator column. It underlines on mouseover like the categories.

Open FORUMHOME Template. Find:
PHP Code:
<td valign=bottom><smallfont COLOR="#afa3c5"><B>Moderator</B></smallfont
Under it add:
PHP Code:
<!--- Veiw Mod List --->
|&
nbsp;<b><a href="showmods.php?s=$session[sessionhash]target="_blank"><smallfont COLOR="#FFFFFF">View List</a></smallfont>
<!--- /
Veiw Mod List ---> 
snyx
(i just wanna help)
Reply With Quote
  #18  
Old 03-15-2001, 03:50 PM
Guest
 
Posts: n/a
Default

I'm getting this error

Parse error: parse error in /home/sites/home/web/forum/showmods.php on line 72

any ideas?
Reply With Quote
  #19  
Old 03-15-2001, 03:56 PM
Guest
 
Posts: n/a
Default

Quote:
Originally posted by upgrader
I'm getting this error

Parse error: parse error in /home/sites/home/web/forum/showmods.php on line 72

any ideas?
find:
Code:
	if ($modforums[$user[userid]] == "")
		eval("\$modforums[".$user[userid]."] .= \"".gettemplate("showmods_forumbit")."\";");
	else {
		eval("\$modforums[".$user[userid]."] .= \"".gettemplate("showmods_forumsplit")."\";");
		eval("\$modforums[".$user[userid]."] .= \"".gettemplate("showmods_forumbit")."\";");
		}
try change it to:
Code:
	if ($modforums[$user[userid]] == "") {
		eval("\$modforums[".$user[userid]."] .= \"".gettemplate("showmods_forumbit")."\";");
	} else {
		eval("\$modforums[".$user[userid]."] .= \"".gettemplate("showmods_forumsplit")."\";");
		eval("\$modforums[".$user[userid]."] .= \"".gettemplate("showmods_forumbit")."\";");
		}
Reply With Quote
  #20  
Old 03-15-2001, 04:24 PM
Guest
 
Posts: n/a
Default

Not putting the brackets around a one line if/else is valid. I would guess (without looking at the code) that your problem is that you need to change eval("$modforums to eval("\$modforums
Reply With Quote
  #21  
Old 03-15-2001, 04:38 PM
Guest
 
Posts: n/a
Default

<font color="red">DO NOT</font> copy the code in The Sisko's post above.

The vB PHP parsing feature has a problem with some escaped characters, so if you put \$ into a [ PHP ] block, it will be printed out as $.

The code in showmods.php already has those $ symbols escaped.

[edit] - now that The Sisko has changed hos post to use [ code ] tags instead of [ php ] tags, go ahead and try the modification if you like... although I can't see that it would make a difference, as leaving out the braces for a single statement in a loop is perfectly legal syntax in PHP
Reply With Quote
Reply

Thread Tools

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 04:38 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.04461 seconds
  • Memory Usage 2,280KB
  • 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
  • (2)bbcode_code
  • (2)bbcode_php
  • (3)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
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (1)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