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)
-   -   Banned Users List (with reason/date) (https://vborg.vbsupport.ru/showthread.php?t=35979)

supreemball 03-10-2002 10:00 PM

Banned Users List (with reason/date)
 
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 :)

sleepbirdcyp 03-11-2002 01:03 AM

Great!!!

SaintDog 03-11-2002 05:28 AM

Nice hack, great job!

Will this seperate onto multiple pages or will it continue all on one page (if yes to one page, could you make it to where after 10-20 members, it would split to multiple pages?).

SaintDog

Lesane 03-11-2002 07:50 AM

Nice hack, well done.

Floris 03-11-2002 10:40 AM

Way cool :) fnx :)

Dalius 03-11-2002 03:10 PM

Good job!

ExcErr 03-11-2002 03:23 PM

may be some screenshots?

Dalius 03-11-2002 04:01 PM

I got a feature Request, it's probably easy

can you add the Ban Thingy from the Mod CP to the Admin CP?

supreemball 03-11-2002 06:13 PM

Quote:

Originally posted by SaintDog
Nice hack, great job!

Will this seperate onto multiple pages or will it continue all on one page (if yes to one page, could you make it to where after 10-20 members, it would split to multiple pages?).

SaintDog

as of now there unfortunately isn't any page seperation.. not sure if wired (who released it) will add this or not..

excerr: view www.somethingleet.com/forum/showbanned.php for the demo.

dalius: all you would do in the admin cp (a bit different from the mod cp) is change the user status to Banned in the User editor, and then go down to the bottom to the added Custom Profile fields and fill in the "Banned for" and "Banned until" fields, and then click submit. :)

Dalius 03-11-2002 08:08 PM

Ah, thanks supreem

dawl 03-12-2002 10:58 PM

I get an empty page even though I have 2 members in the "Banned" group...any ideas ?

69-FLy-gUy 03-13-2002 05:09 AM

same here...

Bald Bouncer 03-13-2002 07:56 AM

Quote:

Originally posted by dawl
I get an empty page even though I have 2 members in the "Banned" group...any ideas ?
open up showbanned.php and find

PHP Code:

        $banreasonfieldselectusergroup.titleuser.usernameuser.useriduser.invisibleuser.receivepm,
        
user.usergroupiduser.lastactivityuser.lastvisit$banuntilfieldselect
        FROM usergroup
        LEFT JOIN user ON 
(usergroup.usergroupid user.usergroupid)
        
LEFT JOIN userfield ON (userfield.userid user.userid)
        
WHERE usergroup.showgroup AND usergroup.usergroupid 15 

change 15 to your banned usergroup ;)

Robert9 03-13-2002 12:53 PM

Quote:

basically.. add two fields to user profile for the reason of banning, and the length of the ban.

create a new user group called "Banned" (exact name/case required) and set permissions as you wish
(most likely you would set them all to 'No')

edit your config.php and add

-----------V
wherever i want??

//set fieldid's of banreason field and banuser field
$banreasonfieldid=10;
$banuntilfieldid=11;

-----------^

to the bottom of it, replacing '10' and '11' with the fieldid's of the reason and until field respectively.



Red= i don't understand, can somebody post an example code, because i don't know, how to make 2 new fields!
Green= Question by me
thx in adnace

DoDgE

69-FLy-gUy 03-13-2002 09:45 PM

in your admin CP... go to add under User Profile Fields..

then once the two profiles are created... look at the ID's of each one.. then edit it as requested for the config.php file.....

69-FLy-gUy 03-13-2002 09:54 PM

i tried editing the showbanned. but it still isn't working. very weird.

dawl 03-13-2002 10:21 PM

same here

69-FLy-gUy 03-13-2002 10:42 PM

dawl.. if you get it workin, let me know=)

dawl 03-14-2002 11:23 AM

sure will - i'm chalking it up to being sick, i'm obviously missing something simple...the fever has the brain garbled LOL I'll keep tinkering and let you know.

fonzerelli_79 03-14-2002 11:44 AM

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'

Robert9 03-14-2002 11:52 AM

it worked nice, THX!

Bald Bouncer 03-14-2002 12:00 PM

Quote:

Originally posted by 69-FLy-gUy
i tried editing the showbanned. but it still isn't working. very weird.
have you done what I said?? get the usergroup number and place it at that part in showbanned.php??

worked for me! ;)

dawl 03-14-2002 12:31 PM

sure did, i'm clueless here, i've looked over showbanned.php a dozen times and can find nothing wrong, the usergroup is set to what it should be, I verified I had the right group # about 10 times LOL I still get a blank page...strange, very strange.

Bald Bouncer 03-14-2002 12:53 PM

LMK were your forum is and I'll take a look if you want

Barret 03-14-2002 03:05 PM

Quote:

Originally posted by 69-FLy-gUy
in your admin CP... go to add under User Profile Fields..

then once the two profiles are created... look at the ID's of each one.. then edit it as requested for the config.php file.....

Looks like neat hack but I can`t get the ids. :(

irn-bru 03-14-2002 05:56 PM

I get a blank page on showbanned.php.
I have made the changes to the showbanned.php
usergroupid to reflect the banned user group, number 10.

I also checked the profile fields on the db and they
match up with what I put in the config.php , so np there.

But blank page?

irn-bru 03-14-2002 06:12 PM

ah ha heres a tip :)

Viewable on Show Group=YES

In the install txt its written "(most likely you would set them all to 'No'"

This might be the problem, if anyone is still haveing them try this :)

Kewl hack...

edit: any help in getting banned users off the forum leaders
page . thanx

69-FLy-gUy 03-14-2002 07:21 PM

put it is yes? i will try it

EDIT-> Yup it works.... i tested it..

You have to put showable on groups as yes

Whome 03-15-2002 11:18 AM

Thank you...very useful :)

Barret 03-15-2002 09:39 PM

How do you get the id of the new usergroups?

cerebro 03-16-2002 05:22 PM

Put the mouse over the EDIT link in the User CP / User Profile Field

and you will see
......action=edit&profilefieldid=5
There you have the ID...5 in this case!

That is the way i use...good luck

cerebro 03-16-2002 05:35 PM

in the Template showbanned

in the line

<table align="center"><tr><td>
$groupbits
<table cellpadding=0 cellspacing=0 border=0 bgcolor="{tablebordercolor}" align="center" width=100%><tr><td>
</td></tr></table>

You forget the " " to the width=100%
and in the other template to!

Correct that, and add a better install.txt

Thanks!

Capt PPRuNe 03-20-2002 02:06 PM

Why does it have to show up on 'Show Groups'? Is there a way to prevent that from happening? I understand why it has to be set to 'Yes' in the control panel.

Also, where do I edit either the templates or sripts so that when a moderator is in their own forum the option to ban shows up in the 'Admin Options' drop down menu?

Is there a way for a moderator to unban someone after they have banned someone? :paranoid:

Jawelin 03-20-2002 05:40 PM

Great hack!

Just a question (or extension? ) : How could I avoid banned users be able to modify - accessing the userCP - their own email or password or some other data ? Above all, email... ;)
Some banned user changed email to a non-existing one just to re-subscribe with the old one. Neither he would create another account !!!

Thanks

Jawelin 03-22-2002 08:13 PM

^BUMP^

datatec 03-29-2002 01:13 AM

Hey sounds really brilliant - does it work on 2.2.4 ?!?!?!?

Thanks in advance

kidney 03-30-2002 03:39 AM

If anyone need to add by who the person was banned by let me know I will release it if it's needed by someone else.
Example: http://forum.dishwacker.com/showbanned.php

Marshalus 03-30-2002 04:10 AM

I think that is needed.

Jawelin 03-30-2002 07:30 AM

Quote:

Originally posted by kidney
If anyone need to add by who the person was banned by let me know I will release it if it's needed by someone else.
Example: http://forum.dishwacker.com/showbanned.php

Here I'm !!! :)
Besides, I asked also for a general feature: how to avoid a banned user could access to his post (editing and deleting them) and his UserCP to change email or something else... ??

Thanks.
I'll wait for your upgraded version

kidney 03-31-2002 11:43 PM

here it is.....
https://vborg.vbsupport.ru/showthrea...threadid=36819


All times are GMT. The time now is 04:44 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.01223 seconds
  • Memory Usage 1,818KB
  • 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_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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