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 4:28 PM
Joined: Apr 2007
Posts: 3,940
SD Offline OP
Former Developer
OP Offline
Former Developer
Joined: Apr 2007
Posts: 3,940
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
SD #224977 03/27/2009 11:04 PM
Joined: Oct 2006
Posts: 67
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
arentzen #224981 03/28/2009 8:53 AM
Joined: Jul 2006
Posts: 4,062
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

Link Copied to Clipboard
ShoutChat Box
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Ubb 7.7.4 Gallery problems
by jjjjj - 05/25/2020 2:35 PM
7.7.4 error after php upgrade to php 7.0
by Ruben - 05/25/2020 1:10 PM
7.7.4 move group all, fails with a error
by Ruben - 05/24/2020 3:07 PM
Grid lines in forum topics list
by Steve C - 05/23/2020 12:09 PM
Who's Online Now
0 members (), 63 guests, and 36 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
3D Creations
3D Creations
by JAISP, December 30
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