vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   e-steki Banlist (https://vborg.vbsupport.ru/showthread.php?t=103190)

Lea Verou 12-17-2005 10:00 PM

e-steki Banlist
 
e-steki Banlist is a listing of all the users that are banned, with the reason provided, the bandate, the lift date and who banned them (you can hide all of them via the admincp if you want to) and additionally some little banning stats on the bottom (you can hide those too). It is fully phrased and has the ability to break the list into multiple pages.

Installation
1. Upload banlist.php to your forums root directory
2. Import the product XML
3. Done! Now you may add a link somewhere to www.yoursite.com/forum/banlist.php so that other people can visit it.

Don't forget to click install! By clicking install you will be notified of updates and you will also provide motivation to me to make more hacks. :p :)

I hope you enjoy it as I'm coding it since 7 in the morning (it's now 13:45!) :p

Yorixz 12-18-2005 09:49 AM

Looks very interesting, I'll try this out tomorrow!

Andyrew 12-18-2005 10:12 AM

Installed, but the setting for usergroups permitted works backwards, if i put in a usergroup id number they cannot view the list.
And if i dont put any id number in then they can view the list but also get this at the top of the forum.

Warning: Invalid argument supplied for foreach() in /banlist.php on line 90

Warning: Invalid argument supplied for foreach() in /banlist.php on line 100

Warning: array_count_values(): The argument should be an array in /banlist.php on line 122

Warning: arsort() expects parameter 1 to be array, null given in /banlist.php on line 123

Warning: Invalid argument supplied for foreach() in /banlist.php on line 124

Lea Verou 12-18-2005 10:15 AM

I will fix these shortly.
Meanwhile, perhaps you would like to click INSTALL?

(Let's see if bold, underlined, coloured, size 7 font does the job as some people still miss the button :()

Lea Verou 12-18-2005 10:21 AM

Quote:

Originally Posted by Andyrew
Installed, but the setting for usergroups permitted works backwards, if i put in a usergroup id number they cannot view the list.
And if i dont put any id number in then they can view the list but also get this at the top of the forum.


Warning: Invalid argument supplied for foreach() in /banlist.php on line 90

Warning: Invalid argument supplied for foreach() in /banlist.php on line 100

Warning: array_count_values(): The argument should be an array in /banlist.php on line 122

Warning: arsort() expects parameter 1 to be array, null given in /banlist.php on line 123

Warning: Invalid argument supplied for foreach() in /banlist.php on line 124

Are there any banned users to be displayed when these warnings appear?
What's the use of putting a banning list and making it public when there are no banned users yet? :confused:

Hasann 12-18-2005 10:22 AM

where is banbit template ? its left

Lea Verou 12-18-2005 10:26 AM

woops, I probably forgot to put it in the product! w8 2 minutes! :o :o

Lea Verou 12-18-2005 10:29 AM

Fixed :) Just overwrite the product XML. :)

Who rated it 1/5? Hey, whoever you are, if you have anything to say say it in the thread. Doing this and saying nothing is just LAME.

Andyrew 12-18-2005 10:38 AM

Quote:

Originally Posted by Michelle
Are there any banned users to be displayed when these warnings appear?
What's the use of putting a banning list and making it public when there are no banned users yet? :confused:

No there are no banned users yet, and i have not made it public yet.
Just testing it myself logging in as different usergroups.
Why should it give errors just because there are no users banned yet.
I will click install when it's working. :ermm:

Chill out :mad:

Lea Verou 12-18-2005 10:41 AM

Sorry for my tone. I haven't slept all night and I had a fight with someone a while ago :o

I didn't think of checking if there are any banned users :ermm: I took it for granted that there will be at least one :p
I will fix it though cause if I leave it will be a long time till I feel like coding again :p

Hasann 12-18-2005 10:43 AM

Quote:

Originally Posted by Andyrew
No there are no banned users yet, and i have not made it public yet.
Just testing it myself logging in as different usergroups.
Why should it give errors just because there are no users banned yet.
I will click install when it's working. :ermm:

Chill out :mad:

open banlist.php with wordpad and find

PHP Code:

define('THIS_SCRIPT''banned'); 

replace with

PHP Code:

define('THIS_SCRIPT''banlist'); 

search:

PHP Code:

$pagenav construct_page_nav($page$perpagecount($banned_array['username']), "banned.php?",""); 

replace with:

PHP Code:

$pagenav construct_page_nav($page$perpagecount($banned_array['username']), "banlist.php?",""); 


Lea Verou 12-18-2005 10:47 AM

Quote:

Originally Posted by Hasann
open banlist.php with wordpad and find

PHP Code:

define('THIS_SCRIPT''banned'); 

replace with

PHP Code:

define('THIS_SCRIPT''banlist'); 

search:

PHP Code:

$pagenav construct_page_nav($page$perpagecount($banned_array['username']), "banned.php?",""); 

replace with:

PHP Code:

$pagenav construct_page_nav($page$perpagecount($banned_array['username']), "banlist.php?",""); 


Damn, I had named it banned at the beginning and I forgot to change them when I came up with Banlist :(
Thanks Hasann!

Lea Verou 12-18-2005 10:51 AM

Should be fixed now, I'm going to eat :p

AshokForums.com 12-18-2005 11:23 AM

Rated it excellent.. You have 4 stars now :p

Nice feature to have, thanks..

Lea Verou 12-18-2005 11:32 AM

Quote:

Originally Posted by AshokForums.com
Rated it excellent.. You have 4 stars now :p

Nice feature to have, thanks..

Thank you!!! :D
At last something good :D
I had started to get dissapointed :(

Andyrew 12-18-2005 11:58 AM

Clicked install, all working fine now.
You can sleep in peace now, knowing that you made a great hack. :)

Lea Verou 12-18-2005 12:01 PM

Τhank you! :D
I try not to sleep though cause I'll spoil my whole scedule. Dunno if I'll last till the night though :(

Hasann 12-18-2005 12:05 PM

Clicked install michelle
thats g8 hack for all times ;)
thank you

Dan 12-18-2005 12:09 PM

Nice one Michelle ;) People are always wondering why certain people are banned so this will come in handy, now to try to get it to work a little better with AWS ;)

akanevsky 12-18-2005 12:46 PM

Very nice hack, Michelle. Really :)
[high]* akanevsky installs
[/high]

EDIT: Analysis:

CODE READABILITY: Not very readable (2)
WORKS: Nicely (5)
PRODUCT XML: Nice job prefixing all your variables with "banned". (5) Helps manage your stuff, doesn't it? ;)

Corriewf 12-18-2005 02:20 PM

Quote:

Originally Posted by Michelle
Thank you!!! :D
At last something good :D
I had started to get dissapointed :(

Your avatar is awesome! ;)

Oh and cool hack and stuffs....yup

Lea Verou 12-18-2005 02:38 PM

Quote:

Originally Posted by Psionic Vision
PRODUCT XML: Nice job prefixing all your variables with "banned". (5) Helps manage your stuff, doesn't it? ;)

I always do that, it's not the first time! But thanks anyway for your feedback :)

Thank you all guys! :D

akanevsky 12-18-2005 02:41 PM

Quote:

I always do that, it's not the first time!
Nope, in referrer statistics you have random prefixes or none at all ;)

Lea Verou 12-18-2005 02:43 PM

Quote:

Originally Posted by Psionic Vision
Nope, in referrer statistics you have random prefixes or none at all ;)

Do I? :o I thought I had "refstats_" in front of everything :confused:

Alien 12-18-2005 05:44 PM

Doesn't work for me whatsoever. :(

http://forums.wtf.com/banlist.php

I have over 200 banned users. Displays none, and gives me a division by 0 error?

Dan 12-18-2005 05:46 PM

Had same issue, it looks like it doesn't take in to account banned users from either a.) upgrades or b.) impexs

I just went through and rebanned everyone that was banned for the correct amount of time and gave a reason.

Alien 12-18-2005 05:54 PM

Quote:

Originally Posted by Dan
Had same issue, it looks like it doesn't take in to account banned users from either a.) upgrades or b.) impexs

I just went through and rebanned everyone that was banned for the correct amount of time and gave a reason.

Never mind, fixed. ;)

Lea Verou 12-18-2005 05:56 PM

This is line 1808, functions.php:
Code:

$show['pagenav'] = false;
So, it must be a problem with pagenav. :ermm:

btw, Alien, did you make those graphics yourself? They are amazing!
Which program did you use?

Lea Verou 12-18-2005 06:01 PM

Quote:

Originally Posted by Alien
Never mind, fixed. ;)

May I ask how, so that if anyone has the same problem solves it? :)

Lea Verou 12-18-2005 06:02 PM

Quote:

Originally Posted by Dan
Had same issue, it looks like it doesn't take in to account banned users from either a.) upgrades or b.) impexs

I just went through and rebanned everyone that was banned for the correct amount of time and gave a reason.

It should take into account everything that is in the userban table of your database :ermm:

crashys 12-18-2005 06:21 PM

my error:
Warning: Division by zero in /includes/functions.php on line 1815

http://vermelhices.com/forum/banlist.php
help me

Lea Verou 12-18-2005 06:27 PM

Oh of course!!!!!
You have to set a per page setting!
/me hits her head on the wall for not hinking about it earlier. I need sleeeeeep...

Dan 12-18-2005 06:29 PM

Quote:

Originally Posted by Michelle
It should take into account everything that is in the userban table of your database :ermm:

I know it does but "User has reached max warning limit" doesn't work to well to inform my members.

Lea Verou 12-18-2005 06:32 PM

Are you talking about a warning system hack? Does it automatically put that as a reason?
Well, you could always change that phrase to something more informative I guess, or put a "legend" at the bottom (something like a small glossary, hmm I like that idea! Then I wouldn't get questions like "what is trolling?" from members who saw the list :p)

Dan 12-18-2005 06:39 PM

Yea ;) I'm going to see if I can hack it in to show what they where last warned for to cause the ban instead of that.

Lea Verou 12-18-2005 06:43 PM

Yeah that would be nice :)
However for the past banned users do not unban and re-ban them to put a clearer reason as the ban-date will be lost and replaced with the current one.
Edit the reasons via phpmyadmin instead ;) (you probably know that already but I thought I should mention, just in case :))

Dan 12-18-2005 06:54 PM

I know but all my users that where banned are perma banned for multi accounts ;)

Lea Verou 12-18-2005 06:57 PM

Quote:

Originally Posted by Dan
I know but all my users that where banned are perma banned for multi accounts ;)

I meant the ban date, not the lift date. It will look kinda dictatoric if you seemed to have banned let's say 50 users at the same day! :p

Dan 12-18-2005 07:17 PM

Well the users of my site know and there was no ban date since I lost them during an impex ;)

Lea Verou 12-18-2005 07:19 PM

Oh. Well, I guess you can easily hack this to display "Unknown" for these dates, instead of a false one :)


All times are GMT. The time now is 05:53 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.01410 seconds
  • Memory Usage 1,836KB
  • 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
  • (8)bbcode_php_printable
  • (14)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