I really hope that the developer of IBP 3.x have considered that issue.
IP.Board 2.3: Allow guests to choose a language
Started by Martin, Jan 30 2008 11:16 PM
24 replies to this topic
#21
Posted 14 October 2008 - 06:11 PM
#22
Posted 01 December 2008 - 03:35 PM
I keep having issues with language selection for guests. No matter what I choose, the language remain English.
Currently I have all my board completely translated to Russian and English - all menus, components etc. Everything works perfect for members, but not for guests.
I double checked this tutorial, but no effect.
Any ideas?
Currently I have all my board completely translated to Russian and English - all menus, components etc. Everything works perfect for members, but not for guests.
I double checked this tutorial, but no effect.
Any ideas?
#23
Posted 01 December 2008 - 07:49 PM
m4rtin, on Jan 31 2008, 07:51 PM, said:
Add "&cal_id=0" at the end of the links 
I also have some problems.I added this link but no luck i have to click or choose language twice for the change.
else
{
if( $ipsclass->member['id'] == 0 )
{
if( $ipsclass->my_getcookie( 'language' ) == 0 )
{
$ipsclass->my_setcookie( 'language', $ipsclass->vars['default_language'] );
}
}
}
Also i had to remove this new code for properly working of language selection other way language goes back to default after browsing 2 or 3 pages.Strange problems..
#24
Posted 01 December 2008 - 11:14 PM
It could be a problem with your browser. The cookie is set to expire in ONE year from the time it was added, so it can't just disappear for no obvious reasons. And the cookie it created is not default, so no other code in the standard source should mess with it.
The only think I see here, that might trigger this, is this line:
The only think I see here, that might trigger this, is this line:
if( $ipsclass->my_getcookie( 'language' ) == 0 )But the only time it will pass by that is if the cookie don't exist, or the language folder is named "0". To avoid that last one, replace the above line with:
if( $ipsclass->my_getcookie( 'language' ) === FALSE )Actually, just do the replace anyway. And place get someone else to confirm the issue you have, since it could - as I said, be a problem with your browser.
My: Modifications · Tutorials · Twitter

#25
Posted 11 March 2009 - 01:17 PM
This might be interesting for those webmasters, who are interested in multilinguality.
I've asked IPS Stuff, to get a solution for an issue, which I had adressed here.
JasonIPS was so friendly and has written some unsupported code for me.
It works, but unfortunately I have to push the button twice that the board language will switch.
Now I assume, that it could be any conflict with another piece of code I have added before.
Jasons code is very useful and I would like to get it fully working. Any idea what the reason could be that it is required to push the button two times?
Thanks for any feedback
I've asked IPS Stuff, to get a solution for an issue, which I had adressed here.
JasonIPS was so friendly and has written some unsupported code for me.
It works, but unfortunately I have to push the button twice that the board language will switch.
Now I assume, that it could be any conflict with another piece of code I have added before.
Jasons code is very useful and I would like to get it fully working. Any idea what the reason could be that it is required to push the button two times?
Thanks for any feedback
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users





Contributor










