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";


All times are GMT. The time now is 01:46 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.02576 seconds
  • Memory Usage 1,738KB
  • 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
  • (3)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
  • (10)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