coppermine-gallery.com/forum

Support => Older/other versions => cpg1.1.X Support (standalone) => Topic started by: BoneFish on September 29, 2003, 04:36:39 AM

Title: How do you allow viewer to change both the theme and lang
Post by: BoneFish on September 29, 2003, 04:36:39 AM
How do you set it up like the old chezgreg demo and surfer dude http://surfdude.student.utwente.nl/fotos/  now has so that a user may change both the theme and language in simple to use interface ?


EDIT - it seems to be answered here http://forum.coppermine-gallery.net/index.php?topic=74

except for the lang part
Title: How do you allow viewer to change both the theme and lang
Post by: Joachim Müller on September 29, 2003, 07:53:00 AM
we're planning to build this feature in: clickable flags for language selection. For the momet, you can use the var "lang", e.g. http://coppermine.sourceforge.net/demo/?lang=greek will display the demo in greek...

GauGau
Title: How do you allow viewer to change both the theme and lang
Post by: BoneFish on September 29, 2003, 08:28:01 AM
thank you gaugau here is what i did and it seems to be working fine i just added it to the template.html file for the theme i'm using

<form name="form1">
            <select name="menu1" onChange="MM_jumpMenu('parent',this,0)">
            <option value="">Select Language
            <option value="/?lang=french">French
            <option value="/?lang=finnish">Finnish
            <option value="/?lang=german">German
            <option value="/?lang=english">English
            <option value="/?lang=greek">Greek
            <option value="/?lang=dutch">Dutch
            <option value="/?lang=spanish">Spanish
            <option value="/?lang=danish">Danish
           
            </select>
          </form>
Title: How do you allow viewer to change both the theme and lang
Post by: Joachim Müller on September 29, 2003, 09:20:45 AM
while the new release isn't out, you may want to take a look at the modification http://prdownloads.sourceforge.net/coppermine/ChooseLanguageByFlag.zip?download

GauGau
Title: How do you allow viewer to change both the theme and lang
Post by: Joachim Müller on September 29, 2003, 11:11:05 AM
in the demo (http://coppermine.sourceforge.net/demo/), the languages and themes are now also selectable (see bottom or top of each theme).

Just before anybody asks: no, this is not part of a mod, nor can I release something that will make this on your gallery as well - I just set this up in a matter of minutes to be available on the board - it's far from good coding, it just works...

It will be included in a future version of coppermine (if not in the next, then later :wink: ) as an admin-option...

GauGau