vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Exclude certain users from Forum Leaders (https://vborg.vbsupport.ru/showthread.php?t=78705)

Jolten 03-23-2005 10:00 PM

Exclude certain users from Forum Leaders
 
What's this do?
This mini-hack allows you to prevent certain users from showing up on the Forum leaders page.

This was a requested Hack.

Time to install = Less than 5 minutes.
Files to edit = 1
templates to edit = 0
Queriest to run = 0
Database alterations = 0


installation
Open showgroups.php and find:
PHP Code:

if ($user['userid']) 

replace with:
PHP Code:

if (($user['userid']) && (!in_array($user['userid'], array(X,X)))) 

Replace X, X with the user ids you wish to exclude from the forum leaders. Separate id numbers with a comma
Save, Upload and you're done.

There shouldn't be a need for much support, but if it's required I'll handle it exclusively in this thread.

TCattitude 03-24-2005 05:46 PM

Nice :D

Allan 03-24-2005 05:51 PM

not badly, thank you :)

alwafi 03-25-2005 01:10 AM

plz can i see the example

thanx

jugo 03-25-2005 02:13 AM

Quote:

Originally Posted by alwafi
plz can i see the example

thanx


LOL.....Sorry...I had to laugh don't mean to laugh AT you...just the whole range of posts.

Jolten 03-25-2005 03:19 AM

Quote:

Originally Posted by alwafi
plz can i see the example

thanx

There's no example to show. This removes a given user from your Forum Leaders page. Look at your page, imagine a user not showing up there, that's your example.

wrongful 03-26-2005 01:32 PM

Maybe someone can help me out here.

I was trying to make this an admin control panel option as such

Code:


if (($user['userid']) && (!in_array($user['userid'], array($vboptions['disallowedonshowgroups']))))

It works whn I just type in one userid, but when I enter more than one userid into the vboption box I created such as (272,654,12) it doesn't work at all. Does anyone have any ideas?

Deaths 03-26-2005 01:45 PM

That's a typical copypaste error ;)

Use this code:

PHP Code:

$dmembers  $vboptions['disallowedonshowgroups'];
$pusers explode(","$dmembers);

if ((
$user['userid']) && (!in_array($user['userid'], $pusers))) 

;)

wrongful 03-26-2005 02:01 PM

Quote:

Originally Posted by Deaths
That's a typical copypaste error ;)

Thanks, that did the trick.

Deaths 03-26-2005 02:06 PM

No problem :)


All times are GMT. The time now is 12:21 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.01272 seconds
  • Memory Usage 1,737KB
  • 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