Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: How do you allow viewer to change both the theme and lang  (Read 5862 times)

0 Members and 1 Guest are viewing this topic.

BoneFish

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
How do you allow viewer to change both the theme and lang
« 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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
How do you allow viewer to change both the theme and lang
« Reply #1 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
Logged

BoneFish

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
How do you allow viewer to change both the theme and lang
« Reply #2 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

Code: [Select]
<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>
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
How do you allow viewer to change both the theme and lang
« Reply #3 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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
How do you allow viewer to change both the theme and lang
« Reply #4 on: September 29, 2003, 11:11:05 am »

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
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 18 queries.