News:

CPG Release 1.6.28
added submissions from {406man}
cleaned up a few PHP (8.4) deprecations
fixed PHP deprecation in calendar
removed security vulnerability
(please upgrade when possible)

Main Menu

How do you allow viewer to change both the theme and lang

Started by BoneFish, September 29, 2003, 04:36:39 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

BoneFish

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://coppermine-gallery.com/forum/index.php?topic=74

except for the lang part

Joachim Müller

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

BoneFish

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>

Joachim Müller


Joachim Müller

in the 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