News:

CPG Release 1.6.31
Minor maintenance release
Clean up remaining remnants of the .net CPG website
Improved installer_stub compatibility with various server configurations

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 0 Guests 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