|
#1
|
|||
|
|||
|
Language Cookie
Hi folks, it's been a long time since I was around.
I am back to tinkering with the language issues and have run into a problem. My wife's site, for which I originally developed the code for the multilingual pixelpost, has grown a bit. It now is a mix of Joomla and Pixelpost, and we are trying to make them work together. We would like to set it up so that when a user selects a language on one part of the site, that language choice remains when switching to the other part of the site. The problem is that JoomFish (Joomla's multilingual extension) and Pixelpost use different cookie structures to store the language settings. I have tried hacking both sets of codes but for the life of me I can't get the two to work together. Joomla sets the cookie name as 'jfcookie[lang]' Pixelpost sets it as 'lang' Any thoughts on how to make this work? Thanks Rob |
|
#2
|
||||
|
||||
|
I don't know if this would work or not, but it's sure worth a try.
What if you added something like this to the bottom of your pixelpost.php file (located in the includes directory: PHP Code:
__________________
Jay Williams | A Different View |
|
#3
|
|||
|
|||
|
Thanks Jay. I will try it out this weekend.
Rob |
|
#4
|
|||
|
|||
|
Based on a quick install, it doesn't work. The page comes back blank, so maybe there is a glitch somewhere in the syntax. I'll tinker with it this weekend.
Thanks again. Rob |
|
#5
|
||||
|
||||
|
I would just change the links from Joomla to Pixelpost and vice versa. Add a simple get variable to the URL: &lang=$_COOKIE['jfcookie']['lang'] of every PP link in Joomla and do that vice versa in the Links from Pixelpost to Joomla: &lang=$_COOKIE['lang']
Just check if the language abbreviations are the same in both systems, otherwise you need a check/replace for that |
| Post Reply |
| Thread Tools | |
|
|