PDA

View Full Version : Miscellaneous Hacks - Banned Users List


Eric
04-11-2009, 10:00 PM
NOTE: This mod is marked "unsupported", but I'll try my best (as time permits) to help those who have marked as installed.



What is this!?
This modification will allow you show a page containing all of your banned users. I suppose you could think of this as a public "Wall of Shame", per say. ;)


Check the screenshots to see exactly what is displayed.


Current Version
1.0.2



Features flagged for future version(s):

Looking for suggestions




Will this work on x.x.x ??
Unless otherwise stated, this will work on all 3.8 versions. I've not tested this on anything earlier than 3.8.



Sounds cool. How do I install?

Upload everything inside the "upload" directory of the zip file to your forums.

banned.php => To your FORUM ROOT directory
functions_bannedusers_list.php => To your FORUM_ROOT/includes directory

Login to your Admin Control Panel and go to "Plugins & Products" -> "Manage products"

Click on "Add/Import product"
Browse for "product-bannedusers.xml" (included in the zip file), and click "Import"
If upgrading from an older version, then set "Allow Overwrite" to "Yes".

In your admin control panel go to vBulletin Options => Banned Users List

Edit the Usergroups that you do not want to show the banned members list to.

Optional: Only if the auto template injection does not work, as the template hooks were not found.

In the "navbar" template, find:

$template_hook[navbar_quick_links_menu_pos3]

Below it, add:

<if condition="$vboptions['bannedusers_enabled'] AND $vboptions['bannedusers_hidefrom'] AND !is_member_of($bbuserinfo, $vbptions['bannedusers_hidefrom'])"><tr><td class="vbmenu_option"><a href="./banned.php?$session[sessionurl]">$vbphrase[bannedusers_text]</a></td></tr></if>






Upgrade

Login to your Admin Control Panel
Go to "Plugins & Products" -> "Manage products"
Click on "Add/Import product"
Browse for "product-bannedusers.xml" (included in the zip file)
Set "Allow Overwrite" to "Yes", and click "Import"

Specifically from 1.0.0 to 1.0.1 and later:

If you are using the auto template edit in 1.0.1, find and remove the following from your navbar template:

<if condition="$vboptions[bannedusers_enabled]"><td class="vbmenu_control"><a href="./banned.php?$session[sessionurl]">$vbphrase[bannedusers_text]</a></td></if>
If you do not want auto template edits, replace the above code in the navbar template with:

<if condition="$vboptions['bannedusers_enabled'] AND $vboptions['bannedusers_hidefrom'] AND !is_member_of($bbuserinfo, $vbptions['bannedusers_hidefrom'])"><tr><td class="vbmenu_option"><a href="./banned.php?$session[sessionurl]">$vbphrase[bannedusers_text]</a></td></tr></if>




Changelog
v1.0.2 - August 20th, 2010
-- Backported some changes from the vBulletin 4 version of this mod.

v1.0.1 - August 5th, 2009
-- Added: AdminCP option of usergroups that are not allowed to view the banned members list.
-- Added: Template edits can now be done automatically if enabled.

v1.0.0 - April 12th, 2009
-- Initial Release



If you use this modification, please mark as >> INSTALLED (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=211019) <<, TY!



NOTE: This mod is marked "unsupported", but I'll try my best (as time permits) to help those who have marked as installed.

Eric
04-12-2009, 06:34 PM
~ reserved ~

Jasem
04-12-2009, 07:19 PM
Nice work, thank you!

Installed

redlabour
04-12-2009, 08:23 PM
This would be very dangerous for Webmasters in Europe. European Law is very restrictive about privacy Rights.

GoTTi
04-12-2009, 09:24 PM
This would be very dangerous for Webmasters in Europe. European Law is very restrictive about privacy Rights.

that made me laugh

Xeder
04-12-2009, 10:54 PM
Is it possible to add an IP column?:)

Eric
04-12-2009, 11:28 PM
This would be very dangerous for Webmasters in Europe. European Law is very restrictive about privacy Rights.
Mmk, well, then all I can say is don't use it. :)

Is it possible to add an IP column?:)
Maybe in the next version, only displayed for Admin's/Mod's

J105C
04-14-2009, 08:02 AM
This would be very dangerous for Webmasters in Europe. European Law is very restrictive about privacy Rights.
? Add a condition under your Terms of Service. Problem fixed :up:

supLaditOz
04-24-2009, 09:44 PM
Thanks.

i added this on my Quick Links :D Pretty cool

ouch
04-25-2009, 04:52 PM
Added and working , nice n easy.............many thanks.

pjaco
04-25-2009, 05:24 PM
Thanks,will try this one

dutchbb
04-28-2009, 06:51 PM
How can we order the list by date and hide the ban reason for members please?

VonDoom
05-08-2009, 11:05 PM
*click* Installed works great and is perfect for some things the team is dealing with at the moment. Thanks

steven s
05-08-2009, 11:15 PM
All my banned are spammers.
If I had to ban so many members I think I'd close my board.

But this might be useful to display members from a specific usergroup.

Eric
05-09-2009, 08:32 PM
A new version is in the works :) No ETA atm though.

christ0pher
05-09-2009, 10:17 PM
Does anyone know how to fix for vbadvanced? On my front page it goes to wrogn url? instead of "forums/banned.php" it just goes to "banned.php"?

Thanks
Christopher

RedDevil
05-09-2009, 10:55 PM
Installed - Can you add group view permissions in future update.

Works fine on my VB Advanced portal. check url settings in vbadvanced settings pages

captkirk685
05-27-2009, 10:02 PM
I can't get my registered users to be able to see it, I have checked all settings everywhere and don't see how to get registered users to see the banned list. I logged in under my regular account on my board and it says I don't have permission to view the page.

captkirk685
05-27-2009, 10:10 PM
I can't get my registered users to be able to see it, I have checked all settings everywhere and don't see how to get registered users to see the banned list. I logged in under my regular account on my board and it says I don't have permission to view the page.

Sorry I figured this out right after I posted this. You have to enter the usergroups that are able to see the list.

pjaco
06-03-2009, 07:18 PM
Nice thanks

denman75
06-07-2009, 05:38 PM
nice mod ,tnx

Eric
08-05-2009, 02:43 PM
v1.0.1 - August 5th, 2009
-- Added: AdminCP option of usergroups that are not allowed to view the banned members list.
-- Added: Template edits can now be done automatically if enabled.

senadxxx
08-05-2009, 11:03 PM
I do not know what's happening, but what you tests after all members and usergrupe can see this"Banned Users List" has provided a solution

Loget
12-22-2009, 03:38 PM
Hey,

I was wondering whether the ''Banned by'' column is removable?

Thanks.

metalguy639
02-05-2010, 10:03 PM
Installed this but no matter what I do it dose not show the list to only administrators. I want it to show to admins only. I tried putting the usergroup ids in the box, I tried it without any IDs in the box and so on. It still shows to everyone except unregistered or not logged in guests.

Eric
08-20-2010, 07:26 AM
Hmm, been a while ;)

I'll check out the code and may backport some changes I've made to the vB4 version.

Eric
08-20-2010, 05:11 PM
v1.0.2 - August 20th, 2010
-- Backported some changes from the vBulletin 4 version of this mod.

Radthekid
09-01-2010, 08:16 AM
I love this, the only think that I do not like too much is the fact that the "Banned Users" link shows up for everybody in the Quick Links.

How would I make it so it only shows up for those that have permissions to see it?

ricardoNJ
05-28-2013, 08:06 AM
Nice...