Previous Thread
Next Thread
Print Thread
Hop To
[FIXED for 7.5.3] 7.5.2 - Ban wordlets only valid 1 time #224953 03/27/2009 3:28 PM
Joined: Apr 2007
Posts: 3,938
SD Offline OP
Former Developer
OP Offline
Former Developer
Joined: Apr 2007
Posts: 3,938
The language string $ubbt_lang['YOU_BANNED'] is really only valid one time..

That is when the user 1st gets banned.. This is prolly because the generic.php (language) is loaded properly to be able to inform them once..

After that, the check_ban routine in html.inc.php has no wordlets loaded and the only thing that the user sees is the ban reason..

Solution: load generic.php according to the users language, so the wordlets are populated..

Temp fix (not recommended for stock): hardwire load generic in the routine..

PHP Code
require_once("{$config['FULL_PATH']}/languages/english/generic.php"); 
right before the triggers require..

it 'works', but is hardwired to english lang.. frown

Re: 7.5.2 - Ban wordlets only valid 1 time [Re: SD] #224977 03/27/2009 10:04 PM
Joined: Oct 2006
Posts: 67
arentzen Offline
journeyman
Offline
journeyman
Joined: Oct 2006
Posts: 67
Thank you sir D

But when I ban an Ip address, the banned IP still got a page with no words.

I moved your suggested line to the top of file html.inc.php, and then the banned message appears.

PHP Code
require_once("{$config['FULL_PATH']}/languages/danish/generic.php");  




trosfrihed.dk
Custom Ubb 7.5.2
Re: 7.5.2 - Ban wordlets only valid 1 time [Re: arentzen] #224981 03/28/2009 7:53 AM
Joined: Jul 2006
Posts: 4,062
Mark S Offline
Offline
Joined: Jul 2006
Posts: 4,062
i created a dummy account while testing some stuff 7.4.2
and if i refreshed my screen as a banned member i could
see nothing, go no where only my style sheet would be
visible.

I would have to close my browser and re-visit to see the
message again. ( Sorry Log in again ) after closing.


BOOM !! Version v7.6.1.1
People who inspire me Isaac ME Gizmo

Forum Search
ShoutChat Box
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
UBB Dev
by JAISP - 11/03/2019 11:01 AM
Exceeded Number of attachments
by rbrtgrmn - 11/02/2019 9:57 PM
Forum New User Registration
by kf6zpl - 10/25/2019 10:45 AM
Having issue with redirects to UBB classic URLs
by amciotola - 10/16/2019 12:11 AM
Unable to save General settings
by amciotola - 10/13/2019 3:23 AM
Who's Online Now
0 registered members (), 62 guests, and 377 spiders.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Amusing Terain Scenics
Amusing Terain Scenics
by isaac, August 19
Sky places
Sky places
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Snapshot build 20191023)