vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Who was banned (https://vborg.vbsupport.ru/showthread.php?t=27424)

JJR512 10-02-2001 06:12 AM

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?

Admin 10-02-2001 06:16 AM

Code:

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


GenSec 10-02-2001 06:19 AM

Quote:

Originally posted by JJR512
$condition="98";

What am I doing wrong?

You should to write
Quote:

$condition="usergroupid=98";
That's all

JJR512 10-02-2001 06:23 AM

OK, thanks! :)

Admin 10-02-2001 06:27 AM

GenSec, isn't your last post the same thing I posted 3 minutes earlier? :D j/k ;)

Delu 10-02-2001 06:38 AM

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 ?

JJR512 10-02-2001 06:46 AM

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.

Delu 10-02-2001 07:42 AM

10x 4 the help guys :)
all working :) :) :)

squawell 12-14-2001 05:07 PM

this is i'm looking for

thankz~~

Kars10 07-23-2002 12:26 PM

Great Hack!!
Thank you for sharing!! ;)


All times are GMT. The time now is 06:01 AM.

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.01282 seconds
  • Memory Usage 1,748KB
  • 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
  • (1)bbcode_code_printable
  • (3)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete