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

Reply
 
Thread Tools
Details »»

Version: , by GenSec GenSec is offline
Developer Last Online: Jun 2010 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 09-04-2001 Last Update: Never Installs: 2
 
No support by the author.

I wanted to show the list of "banned by moderators" members on my board. With vB2.03 It's very simple.

Find in memberlist.php
PHP Code:
if ($what=="datejoined") {
    
$orderby="joindate";
    
$direction="DESC";
  } 
Add the following below
PHP Code:
if ($what=="banned") {
    
$condition="usergroupid=[COLOR=red]your_banned_usergroupid[/COLOR]";
    
$orderby="lastpost";
    
$direction="DESC";
  } 
Change your_banned_usergroupid according with your data.
In my case your_banned_usergroupid=39
Then find in template "memberlist"
Code:
<td bgcolor="#DFDFDF"><smallfont><a href="memberlist.php?s=$session[sessionhash]&what=datejoined"><b>List by Date Joined</b></a></smallfont></td>
Add just right after
Code:
<td bgcolor="#DFDFDF"><smallfont><a href="memberlist.php?s=$session[sessionhash]&what=banned"><b>Banned</b></a></smallfont></td>
That' all folks!

It works here

P.S. Of course, you can use the same procedure to show any other of your usergroups in the memberlist.

Show Your Support

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

Comments
  #12  
Old 10-02-2001, 06:12 AM
JJR512's Avatar
JJR512 JJR512 is offline
 
Join Date: Oct 2001
Location: Glen Burnie, MD, USA
Posts: 710
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

My usergroupid is 98. Unless I've gone blind...This says 98, right? http://216.118.105.52/forums/admin/u...usergroupid=98

And this part from my memberlist.php is correct, right?
PHP Code:
  if ($what=="topposters") {
    
$orderby="posts";
    
$direction="DESC";
  }
  if (
$what=="datejoined") {
    
$orderby="joindate";
    
$direction="DESC";
  }

  if (
$what=="banned") {
    
$condition="98";
    
$orderby="lastpost";
    
$direction="DESC";
  }

  if (
$orderby=="" or ($orderby!="username" and $orderby!="posts" and $orderby!="joindate" and $orderby!="lastpost")) {
    
$orderby="username";
  } 
And this bit in my memberlist template is correct, right?
PHP Code:
<td bgcolor="{secondaltcolor}"><smallfont><a href="memberlist.php?s=$session[sessionhash]&what=datejoined"><b>List by Date Joined</b></a></smallfont></td>
<
td bgcolor="{secondaltcolor}"><smallfont><a href="memberlist.php?s=$session[sessionhash]&what=banned"><b>Banned</b></a></smallfont></td
What am I doing wrong?
Reply With Quote
  #13  
Old 10-02-2001, 06:16 AM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Code:
if ($what=="banned") {
    $condition="usergroupid=98";
    $orderby="lastpost";
    $direction="DESC";
  }
Reply With Quote
  #14  
Old 10-02-2001, 06:19 AM
GenSec GenSec is offline
 
Join Date: Oct 2001
Posts: 156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by JJR512
$condition="98";

What am I doing wrong?
You should to write
Quote:
$condition="usergroupid=98";
That's all
Reply With Quote
  #15  
Old 10-02-2001, 06:23 AM
JJR512's Avatar
JJR512 JJR512 is offline
 
Join Date: Oct 2001
Location: Glen Burnie, MD, USA
Posts: 710
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK, thanks!
Reply With Quote
  #16  
Old 10-02-2001, 06:27 AM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

GenSec, isn't your last post the same thing I posted 3 minutes earlier? j/k
Reply With Quote
  #17  
Old 10-02-2001, 06:38 AM
Delu
Guest
 
Posts: n/a
Default

Quote:
Originally posted by GenSec


Go to your admin CP -> Users Groups and Permissons -> Modify

You will see the list of your usergroups. Take mouse on [edit] or[list all users] options and look at status bar of your browser. You will find the id's of your usergroups. Something like http://......edit&usergroupid=NN

Change the code to:

PHP Code:
$condition="usergroupid=[COLOR=red]NN[/COLOR]"
1. how can i know what is the number ??? NN=??????
2. how do i move user to this list ?
Reply With Quote
  #18  
Old 10-02-2001, 06:46 AM
JJR512's Avatar
JJR512 JJR512 is offline
 
Join Date: Oct 2001
Location: Glen Burnie, MD, USA
Posts: 710
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

NN is a number that you will see at the very end of the hyperlink. You will see the hyperlink in your browser's status bar, as I explained in my own explanation in the message immediately preceding the one from which you just quoted.

If you do not have a status bar in your browser, see if there is one you can enable (in IE it may be turned off), or if you can't figure that out, then see if you can copy the link and paste it into the address bar or a text editor to see it. You can copy a link in IE, Internet Explorer, by pointing to it, right-click on it, and select Copy Shortcut.
Reply With Quote
  #19  
Old 10-02-2001, 07:42 AM
Delu
Guest
 
Posts: n/a
Default

10x 4 the help guys
all working
Reply With Quote
  #20  
Old 12-14-2001, 05:07 PM
squawell's Avatar
squawell squawell is offline
 
Join Date: Oct 2001
Posts: 681
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this is i'm looking for

thankz~~
Reply With Quote
  #21  
Old 07-23-2002, 12:26 PM
Kars10's Avatar
Kars10 Kars10 is offline
 
Join Date: Jun 2002
Location: Germany/Franken
Posts: 748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great Hack!!
Thank you for sharing!!
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 05:29 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.06699 seconds
  • Memory Usage 2,320KB
  • 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
  • (3)bbcode_code
  • (5)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
  • (1)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
  • (9)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