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)
-   -   Terry's Show Banned Users List Hack (https://vborg.vbsupport.ru/showthread.php?t=70293)

djjeffa 03-31-2005 12:38 AM

anyway to edit the list for like if we un ban someone?

garrynewman 03-31-2005 03:30 PM

I added this so you can update the banlist by banning the user again (It deletes all entries for that user rather than having duplicates).

In: modcp/banning.php

After:

//Terry's Banned User List Hack

Add:

Quote:

$DB_site->query("
DELETE FROM " . TABLE_PREFIX . "banlist WHERE userid=$user[userid]");

garrynewman 04-01-2005 12:19 PM

And another - to remove them from the list when you remove their ban manually via the control panel..

In: modcp/banning.php

Before:

// check we got a record back and that the returned user is in a banned group

Add:

Quote:

// garry: we don't care whether they're banned or not - just take
// them off the banlist of they're on it.

$DB_site->query("DELETE FROM " . TABLE_PREFIX . "banlist WHERE userid=$userid");

bigcurt 04-05-2005 01:14 AM

I am still trying to get this to work I will pay a little for someone to get this to work 4 me please.

Redbbs Team 04-10-2005 07:12 AM

thanks

mechanicvirus 04-26-2005 11:50 PM

I'm having trouble with users who were banned but not anymore, they still show up on the list and I even tried that code.

djjeffa 04-27-2005 01:51 AM

the duplacate user one works good on new bans but the unban one dont seem to be working also is there anyway to get in the db to clean up the old bans?

mechanicvirus 05-02-2005 12:18 AM

Still no way to get it so it removes users that were unbanned?

rapcriminals 05-05-2005 04:45 AM

installs ;)

MP3 05-05-2005 08:54 AM

nice hack


All times are GMT. The time now is 02:33 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.01040 seconds
  • Memory Usage 1,729KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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