Previous Thread
Next Thread
Print Thread
Hop To
Joined: Apr 2007
Posts: 3,940
Likes: 1
SD
Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
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

Joined: Oct 2006
Posts: 67
journeyman
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
Joined: Jul 2006
Posts: 4,057
Joined: Jul 2006
Posts: 4,057
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
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
spam issues
by ECNet - 03/19/2024 11:45 PM
Looking for a forum
by azr - 03/15/2024 11:26 PM
Editing Links in Post
by Outdoorking - 03/15/2024 9:31 AM
Question on barkrowler and the like
by Mors - 02/29/2024 6:51 PM
Member Permissions Help
by domspeak - 02/27/2024 6:31 PM
Who's Online Now
3 members (rootman, Gizmo, Nightcrawler), 562 guests, and 186 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)