Welcome to Geeklog Thursday, December 14 2017 @ 03:58 pm EST


Status: offline

Euan

Forum User
Full Member
Registered: 22/04/2002
Posts: 292

Been messing around with the theme changer. See it on http://euans.net/blog/

Doesn't work yet - it will change when you push the "use permanently" link, but not just from the select box. This is a problem in lib-common.php (which always uses the saved value from $_CONF) but I haven't been able to fix it yet. I also stripped the browser check and haven't put it back yet, but if someone can work out the lib-common stuff that would be good.

Unless someone has already made one of these. Euan.


-- Heather Engineering -- No job too small

Anonymous

Anonymous
I have messed around with this myself. After much frustration, I just made a phpblock that changed the language and bounced the user to usersettings.php. Most of the code came straight out of usersettings.php. I was going to tweak usersettings.php to display a custom message when someone used the phpblock. Something like: "you changed your language settings. You can also customize many other aspects of this site. If you don't want to do this, click here to go back to where you just were" And then I would just use a little php code to link to the refering page. But, I would LOVE to see a plugin that works the way theme changer does! One question: will your language plugin work if the user is not logged in/doesn't even have a user account? Also, I know this is probably a dumb question, but can anyone explain why the browser detection stuff is in theme changer? What is browser specific in the code?

Status: offline

tingo

Forum User
Chatty
Registered: 05/06/2002
Posts: 57
Location:Oslo, Norway
Hmm, a language changer with flags on it would be nice. So visitors could change quickly between the native language and say, english. Hmm, I need to think about this more.

Status: offline

suvi

Forum User
Chatty
Registered: 20/11/2005
Posts: 44
Location:Zurich
did you made it?

All times are EST. The time is now 03:58 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content