vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Display Ban Reason on Error Page? (https://vborg.vbsupport.ru/showthread.php?t=62313)

eoc_Jason 03-09-2004 03:45 PM

Display Ban Reason on Error Page?
 
Well I switched to vB3 maybe a week or so ago, however now whenever a user is banned, they just get the generic error page. So obviously I get a LOT of emails every time a user is temp-banned, asking what happened to their account, then I have to explain why and how much longer they will be banned... an extreme pain.

When I was running vB2, I had the temp-ban hack installed, which gave them a reason and time left... but vB3 doesn't seem to have this feature.

I tried searching but couldn't find a hack that would display those two simple features (ban reason and time left). Has one been made yet, or am I going to have to go making this for myself?

If one hasn't been made, does anyone else find this missing feature as annoying as I do? *sigh*

eoc_Jason 03-09-2004 06:19 PM

Well, I got tired of waiting, so I made a quicky hack, basically if the user is banned it displays a page telling them they are banned, and for how long.

It's just one function, one template addition, and about 3 lines of code in the functions.php file if anyone is interested.

eoc_Jason 04-01-2004 04:01 PM

1 Attachment(s)
Here's the instructions since someone requested them...

1 template addition
1 function addition
1 template change

Like I said, it was quick and dirty, but it works... better than a banned user getting the generic "no permissions" page...

allan grossman 04-01-2004 04:15 PM

Quote:

Originally Posted by eoc_Jason
Here's the instructions since someone requested them...

1 template addition
1 function addition
1 template change

Like I said, it was quick and dirty, but it works... better than a banned user getting the generic "no permissions" page...

I just changed mine to where it reads 'you're banned because you pissed admin off - here's how to contact him to resolve the situation'.

:D

RCK 05-17-2004 06:09 PM

Very nice hack !
you should submit it to vB3 team :)

Keyser S?ze 06-09-2004 11:57 PM

what about adding who banned them, since it does list that

RCK 06-10-2004 08:29 AM

to get rid off blood war :devious:

msimplay 06-10-2004 09:25 AM

Thank you i installed it
and its great :D

ps you should release this as i'm sure more people would find this useful

ps could u edit it slightly to include permenant bans
coz it looks silly when saying you are banned

Quote:

test, looks like you broke one or more rules. You were banned on 10-06-2004 for forever.

The ban will be automatically lifted never.

There is currently forever remaining.

After your ban time expires you will once again be able to access the forum.

If you have any questions as to why you were banned, feel free to PM or email the staff.
would be better if it says

you are permenantly banned
If you have any questions as to why you were banned, feel free to PM or email the staff.

for that screen

Keyser S?ze 06-24-2004 06:44 PM

this is good and i have it installed but can anyone make it so mods/admins can type in a reason for the temp ban and have that display on the error page? this current is just a general with the time

also to temp ban for only X hours would be great too

DannyITR 09-03-2004 04:44 PM

I get this error when I upload the modofied functions.php

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home2/public_html/forums/includes/functions.php on line 1864


line 1864 is this but it's nowhere near where I did the modification:

Quote:

$debughtml .= " (<a href=\"" . htmlspecialchars_uni(SCRIPTPATH) . iif(strpos(SCRIPTPATH, '?') '?')=== false, '?', '?','&amp;') . "tempusage=1\">Template Usage</a>) (<a href=\"" . htmlspecialchars_uni(SCRIPTPATH) . iif(strpos(SCRIPTPATH, '?') '?')=== false, '?', '?','&amp;') . "explain=1\">Explain</a>)<br />\n";

MartynJ 09-20-2004 01:37 PM

I get teh same error on line 1864

beano33 09-21-2004 05:24 AM

Rather than do a hack, I created a special forum for the banned:

Village of the Banned
You're here because you were banned. If you need clarification start a thread and a moderator will respond.

Permissions are set so it can only be viewed by banned members, admins, mods & supermods, and when a member is banned that's the ONLY forum they can view so they know they're banned. Banned members can only see and reply to their own threads. I rarely get email involving bannings since I set this up 3 months ago. You can set the policy anyway that's best for you, but mine is that only the mod who did the actual banning should respond, and if they're not around an admin will handle it.

MartynJ 09-25-2004 12:25 PM

Quote:

Originally Posted by beano33
Rather than do a hack, I created a special forum for the banned:

Village of the Banned
You're here because you were banned. If you need clarification start a thread and a moderator will respond.

Permissions are set so it can only be viewed by banned members, admins, mods & supermods, and when a member is banned that's the ONLY forum they can view so they know they're banned. Banned members can only see and reply to their own threads. I rarely get email involving bannings since I set this up 3 months ago. You can set the policy anyway that's best for you, but mine is that only the mod who did the actual banning should respond, and if they're not around an admin will handle it.

Can you tell me the exact steps you went through to make this possible? Each time I try to do this I make the forum etc, and when I ban someone they get the no permission screen, even though the permissions are set. Does this apply to temp bans, or people I've specifically moved to the banned usergroup? The reason I'm asking is that mods can't specifically ban people, they can only temp ban them

rjerina 09-25-2004 06:49 PM

Quote:

Originally Posted by MartynJ
Can you tell me the exact steps you went through to make this possible? Each time I try to do this I make the forum etc, and when I ban someone they get the no permission screen, even though the permissions are set. Does this apply to temp bans, or people I've specifically moved to the banned usergroup? The reason I'm asking is that mods can't specifically ban people, they can only temp ban them

instead of banning them, change the banned group to only have access to that forum. hide the forum from the rest of the users though. when you want to "ban" someone, put them in the banned group.

MartynJ 09-25-2004 08:25 PM

That's all very well, but when a moderator places a temp ban on someone it moves them to the usergroup that during setup was explicitly named as a banned user group, therefore all they ever see are no permissions. For the village of the banned to work, admins have to manually move users over to that group, which makes all the modertors redundant since I'm not about to grant admin access to all my moderators.

beano33 09-25-2004 10:06 PM

Quote:

Originally Posted by MartynJ
Can you tell me the exact steps you went through to make this possible? Each time I try to do this I make the forum etc, and when I ban someone they get the no permission screen, even though the permissions are set. Does this apply to temp bans, or people I've specifically moved to the banned usergroup? The reason I'm asking is that mods can't specifically ban people, they can only temp ban them

Banned users all go into the same usergroup, "Banned by Moderators" so it applies to all bans (temp or perm). Here's the way I did it:

1) Setup new forum with No Parent, named it Village of the Banned and stuck it on the bottom of my board.

2) Under Forums & Moderators click on Forum Permissions, find your ban forum and click Deny All. Then add permissions for the specific usergroups you want to be able to use the forum and set their privileges however you prefer.

That's all there is to it. I'm guessing yours isn't working right because you made it a subforum. If you make it a subforum you also have to add permissions for the banned usergroup to it's parent forum.

MartynJ 09-26-2004 05:49 PM

Nah I'll tell you what it was... my pervious Usergroup "Banned" had permissions set to no for everything, so the usergroup permission were taking priority over the forum permissions.

joeychgo 09-26-2004 06:00 PM

Id like to see this hack myself.....

MartynJ 09-26-2004 06:37 PM

Quote:

Originally Posted by joeychgo
Id like to see this hack myself.....[/SIZE]

In my opinion the solution using a forum is far better than a hack. No code to add, nothing. :)

eoc_Jason 10-04-2004 12:55 PM

This shouldn't even have to be a hack... A "ban reason" should of been implemented as a base feature in vB3... I don't know why they don't have it yet... I'm sure every forum admin is tired of people emailing them asking why they get banned...

|Jordan| 07-21-2005 11:21 PM

eoc_Jason, your Ban Info hack doesn't work (at least for me) in 3.0.7 Any chance of an update?

|Jordan| 02-15-2007 02:25 AM

This mod is really really fubared.

A couple of my members occasionally get the message that they were banned. When i go to check in admincp, they are not in banned group. I just disabled the hack and one of them who was just having this problem again was able to get in.

Any ideas why its doing this? I'm using VB 3.0.17


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.01213 seconds
  • Memory Usage 1,785KB
  • 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
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (22)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete