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
Banned Users List (with reason/date) Details »»
Banned Users List (with reason/date)
Version: 1.00, by supreemball supreemball is offline
Developer Last Online: Aug 2006 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 03-10-2002 Last Update: Never Installs: 99
 
No support by the author.

here it is, the Banned Users List hack, originally done by my host wired @ www.xirgo.com but he gave me rights to release it here..

basically this hack lists all banned users along with a reason for each user being banned, as well as the date they should be unbanned. this is VERY convenient for my mods over at my forum, as there was always talk of wondering who was banned and why, and with this hack this talk shall cease to exist. this is also great just to get your bannings organized and see how many users are banned in the first place.

a live demo of this hack is viewable on my forum: www.somethingleet.com/forum/showbanned.php ..

also when a mod bans someone from the mod cp, the reason and date is asked. the date doesn't have to be in a date format, it can be just 'forever' or something.

this hack has only been completely tested on vb2.2.2.. as of tomorrow it will be tested on vb2.2.4 when i upgrade my forum.

let me know what you guys think

Show Your Support

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

Comments
  #42  
Old 04-11-2002, 03:48 AM
Slynderdale Slynderdale is offline
 
Join Date: Mar 2002
Location: New York State
Posts: 576
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok, if you still want the banned list without having the users show in thw show groups remove usergroup.showgroup = 1 so it looks like this. remember to change 9 to your banned usergroup

PHP Code:
// get banned users**********************************************************
$users $DB_site->query("
    SELECT
        
$banreasonfieldselect, usergroup.title, user.username, user.userid, user.invisible, user.receivepm,
        user.usergroupid, user.lastactivity, user.lastvisit, 
$banuntilfieldselect
        FROM usergroup
        LEFT JOIN user ON (usergroup.usergroupid = user.usergroupid)
        LEFT JOIN userfield ON (userfield.userid = user.userid)
        WHERE usergroup.usergroupid = 9
    "
); 
Reply With Quote
  #43  
Old 04-12-2002, 07:32 AM
Webdude? Webdude? is offline
 
Join Date: Jan 2002
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by fonzerelli_79
i get this dtatbase error

Database error in vBulletin 2.2.0:

Invalid SQL:
SELECT
userfield.field10, usergroup.title, user.username, user.userid, user.invisible, user.receivepm,
user.usergroupid, user.lastactivity, user.lastvisit, userfield.field11
FROM usergroup
LEFT JOIN user ON (usergroup.usergroupid = user.usergroupid)
LEFT JOIN userfield ON (userfield.userid = user.userid)
WHERE usergroup.showgroup = 1 AND usergroup.usergroupid = 10

mysql error: Unknown column 'userfield.field10' in 'field list'
Anyone have an answer to this? I get the same thing.
Reply With Quote
  #44  
Old 04-16-2002, 01:00 AM
streamzone streamzone is offline
 
Join Date: Nov 2001
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

have a question on this i have installed it but the thing is, the page shows up but it doesnt list any person i have added too the banned group on the showbanned page any ideas what i might be?
Reply With Quote
  #45  
Old 04-16-2002, 03:16 AM
Slynderdale Slynderdale is offline
 
Join Date: Mar 2002
Location: New York State
Posts: 576
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Webdude?


Anyone have an answer to this? I get the same thing.
When you made the new profile fields did you put them in numerical order from the last profile field, so if the original ones were 1 2 3 4 and you added a new one and names it 10 youll get the error so give it the value after the last one so if the original ones were 1 2 3 4 names the new ones 5 6 and change it in the config file, i had the same problem and this fixed it
Reply With Quote
  #46  
Old 04-16-2002, 03:21 AM
Slynderdale Slynderdale is offline
 
Join Date: Mar 2002
Location: New York State
Posts: 576
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by streamzone
have a question on this i have installed it but the thing is, the page shows up but it doesnt list any person i have added too the banned group on the showbanned page any ideas what i might be?
ok try this, find where you added this

PHP Code:
// get banned users**********************************************************
$users $DB_site->query("
    SELECT
        
$banreasonfieldselect, usergroup.title, user.username, user.userid, user.invisible, user.receivepm,
        user.usergroupid, user.lastactivity, user.lastvisit, 
$banuntilfieldselect
        FROM usergroup
        LEFT JOIN user ON (usergroup.usergroupid = user.usergroupid)
        LEFT JOIN userfield ON (userfield.userid = user.userid)
        WHERE usergroup.showgroup = 1 usergroup.usergroupid = [EDIT ME]

    "
); 
remove usergroup.showgroup = 1 so it looks like this
PHP Code:
// get banned users**********************************************************
$users $DB_site->query("
    SELECT
        
$banreasonfieldselect, usergroup.title, user.username, user.userid, user.invisible, user.receivepm,
        user.usergroupid, user.lastactivity, user.lastvisit, 
$banuntilfieldselect
        FROM usergroup
        LEFT JOIN user ON (usergroup.usergroupid = user.usergroupid)
        LEFT JOIN userfield ON (userfield.userid = user.userid)
        WHERE usergroup.usergroupid = [EDIT ME]
    "
); 
now the banned usergrop can be hidden from the forum leader section and still show up in the banned usergroup, see where it says [EDIT ME] change that to the banned usergroup number
Reply With Quote
  #47  
Old 04-16-2002, 03:45 AM
Slynderdale Slynderdale is offline
 
Join Date: Mar 2002
Location: New York State
Posts: 576
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you wanna show who banned them, in the showbanned.php first install the hack then after you installed it follow the text in the next post, the screen shot is below
Reply With Quote
  #48  
Old 04-16-2002, 03:52 AM
Slynderdale Slynderdale is offline
 
Join Date: Mar 2002
Location: New York State
Posts: 576
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Heres the instructions
Reply With Quote
  #49  
Old 05-12-2002, 09:37 AM
inetd inetd is offline
 
Join Date: Nov 2001
Posts: 332
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What for it is necessary to create new group Banned if is Banned by Moderators?
Reply With Quote
  #50  
Old 05-12-2002, 10:59 AM
inetd inetd is offline
 
Join Date: Nov 2001
Posts: 332
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

When Administrator or Super Moderator ban users, in showbanned.php don't show By Who.
Help me please!
And: add unban to mod CP - good suggestion. Please make this
Reply With Quote
  #51  
Old 05-12-2002, 07:47 PM
Slynderdale Slynderdale is offline
 
Join Date: Mar 2002
Location: New York State
Posts: 576
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by inetd
When Administrator or Super Moderator ban users, in showbanned.php don't show By Who.
Help me please!
And: add unban to mod CP - good suggestion. Please make this
ill make unban too, but if you use the admin cp, yoiu muest put in your name and when manualy in the account, if you use the mod cp, it adds your account to why you ban them manually, and i have it so if a mod banns some one it sets there user title to banned by moderator, it doesnt matter what the usergroup has
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 02:51 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.05394 seconds
  • Memory Usage 2,321KB
  • 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_php
  • (4)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
  • (4)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
  • (11)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