Previous Thread
Next Thread
Print Thread
Hop To
Joined: Oct 2004
Posts: 21
K
stranger
stranger
K Offline
Joined: Oct 2004
Posts: 21
Upgrading from an ancient UBBT version to version 6.5, as per upgrade instructions, I had to remove all languages but english before starting the clicking the "Upgrade Area" link in UPGRADING.html. Now some old time users report login problems, most probably because they have set a no longer available language as their default?!

Is this possible, and if so, how can I apply english as default language for all current users?

Joined: Jun 2006
Posts: 742
enthusiast
enthusiast
Joined: Jun 2006
Posts: 742
This SQL Query

UPDATE w3t_Users
SET U_Language = 'english'


Joshua Pettit
Web Developer
www.ThreadsDev.net | www.JoshuaPettit.com
Joined: Oct 2004
Posts: 21
K
stranger
stranger
K Offline
Joined: Oct 2004
Posts: 21
Thanks Josh! Do you think the assumed cause for these login problems was right?

Doing a

SELECT COUNT(*)
FROM w3t_Users
WHERE U_Language = 'english'

gives 2332 results,
<> 'english' gives 511 results,
<> '' gives 2843 results,
on a board with 55988 members. Isn't that odd?

Based on this observation, isn't this a better query;

UPDATE w3t_Users
SET U_Language = 'english'
WHERE U_Language <> 'english'

Joined: Jun 2006
Posts: 742
enthusiast
enthusiast
Joined: Jun 2006
Posts: 742
Either would work fine. If you only have english, then my query forces everyone to english. Yours forces everyone to english that isn't already at english. Same thing. Yours is more work. But both should put everyone at english.

Yeah, if they have selected a language that doesn't exist, they'll have errors everywhere. They may need to ditch their cookies before they can login - as there's a cookie which stores langages too.


Joshua Pettit
Web Developer
www.ThreadsDev.net | www.JoshuaPettit.com

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
Is UBB.threads still going?
by Aaron101 - 04/01/2022 8:18 AM
Who's Online Now
0 members (), 868 guests, and 467 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)