Quick Language Changer can be usefull for those who want to allow visitor or registered user to easily and quickly change language on PWG website, just clicking on national flag images.
this MOD adds flags in the PWG left menu. When user clicks on it, it saves the chosen language in a cookie for non logged visitor, and in the database for logged user, and reload the homepage with the new language.
to download it: **Broken link**
You can find additional national flags on : **Broken link**
Have a look on my PWG demo&test website **Broken link**
Last edited by dpdev (2005-04-24 16:59:27)
Offline
I'll try to find some time tonight to add your MOD to the **Broken link**. Can you write the README file ? 'based on "random" MOD example)
Offline
hi,
I ll try to find time tonight too to do the readme file and send it to you
thx
Offline
I think you missed the code for instanciate "qlc" block in category.php, didn't you ? (I'm packaging your MOD thanks to your mail)
Offline
I'm very interesting by this new function.
I've tied to make the modifications but it don't woks.
Did you forget something ?
PS : I'm using the clear template too
Last edited by Colums (2005-04-15 00:30:31)
Offline
zorglub and Colums you're right. i missed the qcl block code in category.php.
I fixed the code above in this topic.
thx
Last edited by dpdev (2005-04-15 08:15:15)
Offline
QLC MOD added to the download manager :-) (you should edit the first post of this topic)
You can find additional national flags on http://jimmac.musichall.cz/i.php?i=flags
Offline
Hi !,
I have a problem with this MOD.
I change all necessary file and I copy the icon in the good folder.
But, I'm not the flag above menu.
You see my site there : http://www.detiege.net/essai/index.php
Thanks
Seb.
Offline
very nice mod, i have installed it on my web site,
many thanks fo this very good work.!!!!!
eric.
Offline
>pinpon
having a quick look on your template source files (http://www.detiege.net/essai/template/d … tegory.tpl), QLC code doesn't appear.
don't forget to edit your category.tpl file like this:
#-----[ OPEN ]------------------------------------------ # template/default/category.tpl # #-----[ FIND ]------------------------------------------ # <div class="titreMenu"> <a href="{U_HOME}">{L_CATEGORIES}</a> </div> # #-----[ BEFORE, ADD ]------------------------------------------ # <div class="qlc"> <!-- BEGIN qlc --> <a href="{qlc.URL}" > <img src="{qlc.IMGURL}" alt="{qlc.ALT}" title="{qlc.TITLE}" class="qlcLink"/> </a> <!-- END qlc --> </div>
vimages>
you're welcome :)
Damien
Offline
OK, thank you.
It's in order.
Seb.
Offline
Sorry to ask, but it's only because I'm too lazy to download your code :)
Are you keeping track of the user choice in a cookie or in database in the SESSION table?
Offline
Language choice is stored in a cookie for not logged users and in the 'phpwebgallery_users' table ('language' cell) for those who are logged in. The database structure is not altered
Damien
Last edited by dpdev (2005-04-26 12:31:03)
Offline