Announcement

#1 2005-04-14 01:17:06

dpdev
Member
2005-04-07
57

Quick Language Changer

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

 

#2 2005-04-14 07:45:39

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13791

Re: Quick Language Changer

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

 

#3 2005-04-14 12:25:37

dpdev
Member
2005-04-07
57

Re: Quick Language Changer

hi,
I ll try to find time tonight too to do the readme file and send it to you
thx

Offline

 

#4 2005-04-14 23:35:29

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13791

Re: Quick Language Changer

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

 

#5 2005-04-15 00:30:13

Colums
Member
2005-03-29
56

Re: Quick Language Changer

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

 

#6 2005-04-15 07:47:52

dpdev
Member
2005-04-07
57

Re: Quick Language Changer

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

 

#7 2005-04-15 18:56:50

Colums
Member
2005-03-29
56

Re: Quick Language Changer

It's OK now.

Good job thanks

Offline

 

#8 2005-04-16 00:16:15

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13791

Re: Quick Language Changer

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

 

#9 2005-04-16 00:54:39

dpdev
Member
2005-04-07
57

Re: Quick Language Changer

that's done.
thx

Damien

Offline

 

#10 2005-04-25 10:58:56

pinpon1
Member
Bruxelles
2005-04-24
190

Re: Quick Language Changer

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.


Seb.

Offline

 

#11 2005-04-25 16:30:56

vimages
Member
2004-03-27
2116

Re: Quick Language Changer

very nice mod, i have installed it on my web site,

many thanks fo this very good work.!!!!!

eric.

Offline

 

#12 2005-04-25 17:43:58

dpdev
Member
2005-04-07
57

Re: Quick Language Changer

>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:

Code:

#-----[ 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

 

#13 2005-04-25 20:48:16

pinpon1
Member
Bruxelles
2005-04-24
190

Re: Quick Language Changer

OK, thank you.

It's in order.

Seb.


Seb.

Offline

 

#14 2005-04-26 11:59:16

Gweltas
Former Piwigo Team
Lyon en théorie
2003-12-04
547

Re: Quick Language Changer

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

 

#15 2005-04-26 12:29:36

dpdev
Member
2005-04-07
57

Re: Quick Language Changer

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

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact