Welcome, Guest. Please Login or Register.
May 10, 2025, 04:46:03 AM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  Multiple languages for guests « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Multiple languages for guests  (Read 659 times)
AtReM
Noobie
*
Posts: 4


I'm a llama!

Multiple languages for guests
« on: January 04, 2003, 02:54:35 AM »
Reply with quote

Hi,

I would like to show guests the forum in different languages on my site.
In SP1 I used the language.mod and the &language= parameter.
How is this solved now that the language is set in user's profiles?

thnx
AtReM
Logged
David
Destroyer Dave
Global Moderator
YaBB God
*****
Posts: 5761


I'm not a llama!

WWW
Re:Multiple languages for guests
« Reply #1 on: January 04, 2003, 08:18:14 AM »
Reply with quote

Cool idea!  I'd go post this as a mod idea or get someone to move this thread to the mod ideas board.
Logged

AtReM
Noobie
*
Posts: 4


I'm a llama!

Re:Multiple languages for guests
« Reply #2 on: January 15, 2003, 08:10:35 PM »
Reply with quote

Maybe it is easier to have two different yabbse folders with different language settings in them, while they are both pointing to the same MySQL database (and use the same Sources, YabbImages, etc. folders).

NE1 tried this?
Logged
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:Multiple languages for guests
« Reply #3 on: January 15, 2003, 09:01:45 PM »
Reply with quote

That would work fine...

-[Unknown]
Logged
tdodnz
Sr. Member
****
Posts: 275


Asleep zzzzz (Snore Snore)

ICQ - 166370583cnd_nz@go.com WWW
Re:Multiple languages for guests
« Reply #4 on: January 17, 2003, 09:02:16 AM »
Reply with quote

ok sorry bout the dissapearing act.

But what i would use would be add it to the database where the guest ip is put in and have it select what language and display it.
I
t is autoset to the default language on load of the index then they can select what language they want at the bottom of index.php and then that updates the dbase.

Which is called by the load user lang, its a small mod, not to hard just an if statement where it loads the userlang or something along those lines.

All users to your site even if there guests load the lang from the same place, but registered users have what one they want listed so its used.

This means you will just need to replace the bit that says if (!lang) do default to do whats in the db for this ip.

Well atleast I think this is how it works  ;)
Logged
Gobalopper
Mod Team
YaBB God
*****
Posts: 993


Cookie Monster

WWW
Re:Multiple languages for guests
« Reply #5 on: January 17, 2003, 09:09:48 AM »
Reply with quote

Somehow there are two of these threads with the exact same name in the same board?

In the other one I suggested using a input tag to store the guests preference. Since 1.5 uses sessions I suppose once it is set you could keep that info stored in a session variable or just write out the current language into an input tag for every page load if the user is a guest.
Logged
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:Multiple languages for guests
« Reply #6 on: January 17, 2003, 07:50:12 PM »
Reply with quote

Yeah, I really don't think it's a good idea to cluter up the database with this information.

-[Unknown]
Logged
tdodnz
Sr. Member
****
Posts: 275


Asleep zzzzz (Snore Snore)

ICQ - 166370583cnd_nz@go.com WWW
Re:Multiple languages for guests
« Reply #7 on: January 17, 2003, 10:32:31 PM »
Reply with quote

still same diff u just call it from the session instead of going default do the session instead if its set
Logged
AtReM
Noobie
*
Posts: 4


I'm a llama!

Re:Multiple languages for guests
« Reply #8 on: February 12, 2003, 02:23:03 AM »
Reply with quote

QuoteMaybe it is easier to have two different yabbse folders with different language settings in them, while they are both pointing to the same MySQL database (and use the same Sources, YabbImages, etc. folders).
I changed my YaBBSE like this (needed a few changes more) and it works. You can see it at http://www.the-basement-site.com.
Guests going to the forum on the english version of the site get english and the (default) dutch guests in dutch.
Email me if U want help doing something similar.
Logged
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  Multiple languages for guests « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.044 seconds with 20 queries.