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 [2] 3   Go Down

Author Topic: How to get the same "Language & Theme" option  (Read 28049 times)

0 Members and 1 Guest are viewing this topic.

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
How to get the same "Language & Theme" option
« Reply #20 on: November 30, 2003, 07:09:35 pm »

and heres the result, much more pleasing;
(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fwww.langportrd.f2s.com%2Fimages%2FScreenShot005.jpg&hash=823f0ec16e456d4bb8975d1132ebc6128bfe5d79)
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
How to get the same "Language & Theme" option
« Reply #21 on: November 30, 2003, 07:20:30 pm »

oops, double post, sorry  :oops:
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

street

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
How to get the same "Language & Theme" option
« Reply #22 on: December 12, 2003, 03:12:08 pm »

Hello
Just installed this on a test server, sure seems like a uber pc of software

now on to my question

has there been any work done on a mod for this  yet?

If not has there been a reworked anycontent.php file made?

as i am a real beginner at this im not sure what to do.

Are there detailed instructions from point a to point z.

this really looks like a wonderful option to have.
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
How to get the same "Language & Theme" option
« Reply #23 on: December 12, 2003, 05:11:11 pm »

What do you want, language selection, theme selection, or both?

its easy whichever you want
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

street

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
How to get the same "Language & Theme" option
« Reply #24 on: December 12, 2003, 07:23:50 pm »

Hello again
yes id like to have both if possble
seems like a good idea to have some language selection
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
How to get the same "Language & Theme" option
« Reply #25 on: December 12, 2003, 08:05:46 pm »

I will send you full details by IM.
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

nirre

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
How to get the same "Language & Theme" option
« Reply #26 on: January 06, 2004, 11:16:47 am »

casper: how did you get the little space between the flags ? what tag did you change ?

TIA  :D
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
How to get the same "Language & Theme" option
« Reply #27 on: January 06, 2004, 06:07:36 pm »

Hi Nirre,

in anycontent, find this code;
Code: [Select]
foreach ($language_name as $key => $value)
        {
          $cpg_flag_return.= '<a href="' . $cpg_current . $key . '" class="menu"><img src="images/flags/' . $country_code_flag[$key] . '.gif" width="16" height="10" border="0" alt="" title="' . $value .'" '.$flagborder.' /></a>';
         


and change it to this;
Code: [Select]
foreach ($language_name as $key => $value)
        {
          $cpg_flag_return.= '&emsp;<a href="' . $cpg_current . $key . '" class="menu"><img src="images/flags/' . $country_code_flag[$key] . '.gif" width="16" height="10" border="1" alt="" title="' . $value .'" '.$flagborder.' /></a>&emsp;


As you can see, I've just added a space (&emsp) before and after each flag, and also a border of 1, which I had set to the same colour as my background.

I have now removed the word 'Language' so just the flags show, and put up slightly bigger flags, which you can see if you visit my site (below).
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

nirre

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
How to get the same "Language & Theme" option
« Reply #28 on: January 07, 2004, 08:54:49 am »

real strange  :roll:

when i use the code above the whole anycontent block dissapears ???  :roll:

im a novice at this - sorry
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
How to get the same "Language & Theme" option
« Reply #29 on: January 07, 2004, 11:19:27 am »

Nirre,

You can IM me your anycontent.php, and I'll have a look.
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

antonio

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 27
    • http://www.orrego.net
Flags Alignement & Links
« Reply #30 on: January 09, 2004, 06:43:56 pm »

Hello Everyone,

I would like to know if you help me with the below. I would like to have the flags to be aligned in the center of the page instead of the left.

(anycontent.php) I've removed the theme selector but when doing so, I get a table line I can't seem to remove at the left.

Presently this is what I have:
http://www.orrego.net/vladimir/works/

How can I add additional links on top of the page?...meaning the grey top border below the title.

Await your comments...and thanking you in advance, Antonio 8)
Logged

mikis

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
    • http://mikis.org
Re: Flags Alignement & Links
« Reply #31 on: January 09, 2004, 07:13:55 pm »

Quote from: "antonio"

I would like to know if you help me with the below. I would like to have the flags to be aligned in the center of the page instead of the left.


Try this: open file anycontent.php, look for line:
Code: [Select]
<td class="tableb">

and change it to
Code: [Select]
<td class="tableb" align="center">

Quote

How can I add additional links on top of the page?...meaning the grey top border below the title.


Open file "themes/(name of your theme)/template.html", find word "{MAIN_MENU}" and add links next to it.
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
How to get the same "Language & Theme" option
« Reply #32 on: January 09, 2004, 07:32:59 pm »

HI,
for part one, look at this thread, where it is explained how to get rid of the empty cell, and to centre the flags; http://forum.coppermine-gallery.net/index.php?topic=621&start=15.

for part 2, you can place extra links by adding them in themes/yourtheme/theme.php.  The links are near the top of the page, and you can add / remove as you like.

Please only post one question per thread  :wink:
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

antonio

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 27
    • http://www.orrego.net
Parse error
« Reply #33 on: January 09, 2004, 10:00:43 pm »

Im trying to edit and remove the table border however Im getting a parse error.

The center code is fine.

this my anycontent.php: Please advise me if there is anything wrong..

Code: [Select]
<?php 
// ------------------------------------------------------------------------- // 
// Coppermine Photo Gallery 1.2.0                                            // 
// ------------------------------------------------------------------------- // 
// Copyright (C) 2002,2003 Gregory DEMAR <gdemar@wanadoo.fr>                 // 
// http://www.chezgreg.net/coppermine/                                       // 
// ------------------------------------------------------------------------- // 
// Updated by the Coppermine Dev Team                                        // 
// see /docs/credits.html for details                                        // 
// ------------------------------------------------------------------------- // 
// This program is free software; you can redistribute it and/or modify      // 
// it under the terms of the GNU General Public License as published by      // 
// the Free Software Foundation; either version 2 of the License, or         // 
// (at your option) any later version.                                       // 
// ------------------------------------------------------------------------- // 
starttable("100%"); ?>

<tr>
      <td class="tableb" align="center">
            <?php print cpg_show_flags(); ?>
      </td>
</tr>
<?php endtable(); ?>

<?php 

function cpg_show_flags() 

// ------------------------------------------------------------------------- // 
//  ChooseLanguageByFlag.mod v1.3 for Coppermine Photo Gallery 1.1.0 (final) // 
//  by GauGau (Joachim Mueller) http://gaugau.de/                            // 
// ------------------------------------------------------------------------- // 
// ---edit below vars---                                                     // 
$choice"flag"
//edit this: choose between "flag" (pictures of flags), "list" (dropdown box) and "both" 

$number_of_rows=1
// edit this value: how many rows of flags should be shown (it makes sense to// 
// have more than 1 row if you have you coppermine navigation not on top of  // 
// the page (horizontally) but on the side of the gallery (vertically).      // 
// Usually (with most themes) this value can be set to 1                     // 

$border_flag_color "#000000"
//do you want a border around your flag? Set the color here, leave blank if  // 
// you don't want a border. Use color codes that css understands, e.g.       // 
// "#FF0000" or "red".                                                       // 
// For more details on color codes, check                                    // 
// http://www.w3.org/TR/REC-CSS1#color-units/                                // 

$translate_language "Language:&nbsp;&nbsp;"
$select_theme "Theme:&nbsp;&nbsp;"
// edit this: translate "Sprache" to the word "language" in your country or  // 
// whatever text you want to appear in front of the flags/dropdown box       // 

// Use below arrays to specify which countries should show up. The expression// 
// in brackets must be the name of the language file (without the ".php" at  // 
// the end). The first array specifies the "realname" of the language, the   // 
// second arry must contain the country code (see the folder /images/flags)  // 
// and must correspond to the image. Example: if you want the stars and      // 
// stripes turn up instead of the union jack, use                            // 
// $language_name['english'] = 'English'; $country_code_flag['english'] = 'gb'; 

$language_name['spanish']   = 'Castellano (Spanish)'$country_code_flag['spanish']= 'es'
$language_name['english']   = 'English';              $country_code_flag['english']  = 'gb';
$language_name['french'] = 'Francais (French)';            $country_code_flag['french'] = 'fr';
$language_name['italian'] = 'Italiano';                    $country_code_flag['italian'] = 'it';
 


// -------------------------------------------------------------------------   // 
//---------don't edit below this line unless you know hat you're doing-------- // 
// -------------------------------------------------------------------------   // 
global $CONFIG,$USER
// get the current language 
$cpg_current_language=$CONFIG['lang']; 
if(
$USER['lang']!=""){$cpg_current_language=$USER['lang'];} 
if(
$_GET['lang']!=""){$cpg_current_language=$_GET['lang'];} 

$cpg_current_theme=$CONFIG['theme']; 
if(
$USER['theme']!=""){$cpg_current_theme=$USER['theme'];} 
if(
$_GET['theme']!=""){$cpg_current_theme=$_GET['theme'];} 

//get the url and all vars except $lang 
$cpg_current=$_SERVER["SCRIPT_NAME"]."?"
foreach (
$_GET as $key => $value) { 
    if (
$key!="lang"){$cpg_current.= $key "=" $value "&";} 

$cpg_current.="lang="

//get the url and all vars except $theme 
$cpg_theme=$_SERVER["SCRIPT_NAME"]."?"
foreach (
$_GET as $key => $value) { 
    if (
$key!="theme"){$cpg_theme.= $key "=" $value "&";} 

$cpg_theme.="theme="
//set the border 
if ($border_flag_color!=""

$flagborder='style="border-width:1px; border-color:'.$border_flag_color.'; margin:0px;"'


if(
$choice=="flag" || $choice=="both"
//----------------flags start 
$cpg_flags_total=count($language_name); 
$cpg_flags_cols=ceil($cpg_flags_total/$number_of_rows); 
$cpg_flag_return='<style type="text/css"><!-- .winzig {font-size:9px} --></style>'

if (
$number_of_rows!=1$cpg_flag_return.= '<hr />'
$cpg_flag_return.= '<span class="winzig">' $translate_language .'</span>'
if (
$number_of_rows!=1) {$cpg_flag_return.='<br />';}else{$cpg_flag_return.='';} 
$cpg_flag_return.= ''
$cpg_flags_counter=1
foreach (
$language_name as $key => $value
        { 
          
$cpg_flag_return.= '<a href="' $cpg_current $key '" class="menu"><img src="images/flags/' $country_code_flag[$key] . '.gif" width="16" height="10" border="0" alt="" title="' $value .'" '.$flagborder.' /></a>'
          if(
$cpg_flags_counter==$cpg_flags_cols){$cpg_flag_return.="</td>  <!--  <td class='tableb'>";$cpg_flags_counter=0;}  
          
$cpg_flags_counter++;  
        } 

//----------------flags end 

if($choice=="list" or $choice=="both"
//----------------list start 
if ($number_of_rows==and $choice=="both"){$cpg_flag_return .='';} 
$cpg_flag_return.="<form name=\"choose_language\" action=\"" $cpg_current $key"\" method=\"get\" style=\"margin-top:0px;margin-bottom:0px\"><span class=\"winzig\">"
if (
$choice=="list"

if (
$number_of_rows!=1) {$cpg_flag_return .= '<hr />' $translate_language;}else{$cpg_flag_return.='';} 

$cpg_flag_return.=$translate_language "<select name=\"lang\" size=\"1\" onchange=\"if (this.options[this.selectedIndex].value) window.location.href='".$cpg_current."' + this.options[this.selectedIndex].value;\">"
foreach (
$language_name as $key => $value

  
$cpg_flag_return.='<option value="' $key '"'
  if(
$key==$cpg_current_language){$cpg_flag_return.=' selected';} 
  
$cpg_flag_return.='>' $value '</option>'

$cpg_flag_return.= '</select></span></td><td class="tableb">'
//----------------list end 

if ($number_of_rows==1){$cpg_flag_return.='<!--foo</td></tr></table>-->';} 

$cpg_flag_return.=''

return 
$cpg_flag_return
//--- def function cpg_show_flags end 



function cpg_ascii_onoff() 

$cpg_current=$_SERVER["SCRIPT_NAME"]."?"
foreach (
$_GET as $key => $value) { 
    if (
$key=="ascii"){ 
                       
$ascii_exist=1
                       if (
$value==1){$value=0;}else{$value=1;} 
                      } 
    
$cpg_current.= $key "=" $value "&"

if(
$ascii_exist!=1){$cpg_current.="ascii=1";} 
$cpg_current rtrim($cpg_current "&"); 
return 
$cpg_current

?>
« Last Edit: May 31, 2004, 07:30:40 am by GauGau »
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
How to get the same "Language & Theme" option
« Reply #34 on: January 09, 2004, 10:16:05 pm »

please post the actual message of the parse error, and post a link to your site.
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

antonio

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 27
    • http://www.orrego.net
Parse Error
« Reply #35 on: January 09, 2004, 10:24:18 pm »

Error Message:

Parse error: parse error, unexpected '}' in /home/virtual/site25/fst/var/www/html/vladimir/works/anycontent.php on line 118

I verified this line..and all is ok. I don't see what the problem is.

Link:
http://www.orrego.net/vladimir/works/
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
How to get the same "Language & Theme" option
« Reply #36 on: January 09, 2004, 10:39:16 pm »

OK, you have not just commented out the themes, but removed several bits that the code needs (I think).  I see you only want flags, no theme choice, and you want them centered.  This is the same as I have.

Try the following code, and see if it is what you want.

Code: [Select]
<?php 
// ------------------------------------------------------------------------- // 
// Coppermine Photo Gallery 1.2.0 // 
// ------------------------------------------------------------------------- // 
// Copyright (C) 2002,2003 Gregory DEMAR <gdemar@wanadoo.fr> // 
// http://www.chezgreg.net/coppermine/ // 
// ------------------------------------------------------------------------- // 
// Updated by the Coppermine Dev Team // 
// see /docs/credits.html for details // 
// ------------------------------------------------------------------------- // 
// This program is free software; you can redistribute it and/or modify // 
// it under the terms of the GNU General Public License as published by // 
// the Free Software Foundation; either version 2 of the License, or // 
// (at your option) any later version. // 
// ------------------------------------------------------------------------- // 
starttable("100%"); ?>

<tr>
<td class="tableb" align="center">
<?php print cpg_show_flags(); ?>
</td>
</tr>
<?php endtable(); ?>

<?php 

function cpg_show_flags() 

// ------------------------------------------------------------------------- // 
// ChooseLanguageByFlag.mod v1.3 for Coppermine Photo Gallery 1.1.0 (final) // 
// by GauGau (Joachim Mueller) http://gaugau.de/ // 
// ------------------------------------------------------------------------- // 
// ---edit below vars--- // 
$choice"flag"
//edit this: choose between "flag" (pictures of flags), "list" (dropdown box) "both" or "none" 

$theme_choice"none"
//edit this: choose between "pulldown" (dropdown box), "links" (horisontal list of links) or "none" 


$number_of_rows=1
// edit this value: how many rows of flags should be shown (it makes sense to// 
// have more than 1 row if you have you coppermine navigation not on top of // 
// the page (horizontally) but on the side of the gallery (vertically). // 
// Usually (with most themes) this value can be set to 1 // 

$border_flag_color "#000000"
//do you want a border around your flag? Set the color here, leave blank if // 
// you don't want a border. Use color codes that css understands, e.g. // 
// "#FF0000" or "red". // 
// For more details on color codes, check // 
// http://www.w3.org/TR/REC-CSS1#color-units/ // 

$translate_language "Language:&nbsp;&nbsp;"
$select_theme "Theme:&nbsp;&nbsp;"
// edit this: translate "Sprache" to the word "language" in your country or // 
// whatever text you want to appear in front of the flags/dropdown box // 

// Use below arrays to specify which countries should show up. The expression// 
// in brackets must be the name of the language file (without the ".php" at // 
// the end). The first array specifies the "realname" of the language, the // 
// second arry must contain the country code (see the folder /images/flags) // 
// and must correspond to the image. Example: if you want the stars and // 
// stripes turn up instead of the union jack, use // 
// $language_name['english'] = 'English'; $country_code_flag['english'] = 'gb'; 

$language_name['spanish'] = 'Castellano (Spanish)'$country_code_flag['spanish']= 'es'
$language_name['english'] = 'English'$country_code_flag['english'] = 'gb'
$language_name['french'] = 'Francais (French)'$country_code_flag['french'] = 'fr'
$language_name['italian'] = 'Italiano'$country_code_flag['italian'] = 'it'



// ------------------------------------------------------------------------- // 
//---------don't edit below this line unless you know hat you're doing-------- // 
// ------------------------------------------------------------------------- // 
global $CONFIG,$USER
// get the current language 
$cpg_current_language=$CONFIG['lang']; 
if(
$USER['lang']!=""){$cpg_current_language=$USER['lang'];} 
if(
$_GET['lang']!=""){$cpg_current_language=$_GET['lang'];} 

$cpg_current_theme=$CONFIG['theme']; 
if(
$USER['theme']!=""){$cpg_current_theme=$USER['theme'];} 
if(
$_GET['theme']!=""){$cpg_current_theme=$_GET['theme'];} 

//get the url and all vars except $lang 
$cpg_current=$_SERVER["SCRIPT_NAME"]."?"
foreach (
$_GET as $key => $value) { 
if (
$key!="lang"){$cpg_current.= $key "=" $value "&";} 

$cpg_current.="lang="

//get the url and all vars except $theme 
$cpg_theme=$_SERVER["SCRIPT_NAME"]."?"
foreach (
$_GET as $key => $value) { 
if (
$key!="theme"){$cpg_theme.= $key "=" $value "&";} 

$cpg_theme.="theme="
//set the border 
if ($border_flag_color!=""

$flagborder='style="border-width:1px; border-color:'.$border_flag_color.'; margin:0px;"'


if(
$choice=="flag" || $choice=="both"
//----------------flags start 
$cpg_flags_total=count($language_name); 
$cpg_flags_cols=ceil($cpg_flags_total/$number_of_rows); 
$cpg_flag_return='<style type="text/css"><!-- .winzig {font-size:9px} --></style>'

if (
$number_of_rows!=1$cpg_flag_return.= '<hr />'
$cpg_flag_return.= '<span class="winzig">' $translate_language .'</span>'
if (
$number_of_rows!=1) {$cpg_flag_return.='<br />';}else{$cpg_flag_return.='';} 
$cpg_flag_return.= ''
$cpg_flags_counter=1
foreach (
$language_name as $key => $value
        { 
          
$cpg_flag_return.= '&emsp;<a href="' $cpg_current $key '" class="menu"><img src="images/flags/' $country_code_flag[$key] . '.gif" width="24" height="13" border="1" alt="" title="' $value .'" '.$flagborder.' /></a>&emsp;

'

          if(
$cpg_flags_counter==$cpg_flags_cols){$cpg_flag_return.="</td><!--<td class='tableb'>";$cpg_flags_counter=0;} 
          
$cpg_flags_counter++; 
        } 
//----------------flags end 

if($choice=="list" or $choice=="both"
//----------------list start 
if ($number_of_rows==and $choice=="both"){$cpg_flag_return .='';} 
$cpg_flag_return.="<form name=\"choose_language\" action=\"" $cpg_current $key"\" method=\"get\" style=\"margin-top:0px;margin-bottom:0px\"><span class=\"winzig\">"
if (
$choice=="list"

if (
$number_of_rows!=1) {$cpg_flag_return .= '<hr />' $translate_language;}else{$cpg_flag_return.='';} 

$cpg_flag_return.=$translate_language "<select name=\"lang\" size=\"1\" onchange=\"if (this.options[this.selectedIndex].value) window.location.href='".$cpg_current."' + this.options[this.selectedIndex].value;\">"
foreach (
$language_name as $key => $value

$cpg_flag_return.='<option value="' $key '"'
if(
$key==$cpg_current_language){$cpg_flag_return.=' selected';} 
$cpg_flag_return.='>' $value '</option>'

$cpg_flag_return.= '</select></span></td><td class="tableb">'
//----------------list end 

if ($theme_choice== "links"
// start links menu 
$cpg_flag_return.='<span class="winzig">' .$select_theme
$cpg_flag_return.='<a href="'.$cpg_theme.'default">Default</a> | '
$cpg_flag_return.='<a href="'.$cpg_theme.'blue_tatoo">Blue Tatoo</a> | '
$cpg_flag_return.='<a href="'.$cpg_theme.'eyeball">Eyeball</a> | '
$cpg_flag_return.='<a href="'.$cpg_theme.'fruity">Fruity</a> | '
$cpg_flag_return.='<a href="'.$cpg_theme.'hardwired">Hardwired</a> | '
$cpg_flag_return.='<a href="'.$cpg_theme.'hsocuk">HSOCUK</a> | '
$cpg_flag_return.='<a href="'.$cpg_theme.'igames">Igames</a> | ';
$cpg_flag_return.='<a href="'.$cpg_theme.'mac_ox_x">Mac OS X</a> | '
$cpg_flag_return.='<a href="'.$cpg_theme.'project_vii">Project VII</a> | '
$cpg_flag_return.='<a href="'.$cpg_theme.'rainy_day">Rainy Day</a> | '
$cpg_flag_return.='<a href="'.$cpg_theme.'water_drop">Water Drop</a> | '
$cpg_flag_return.='<a href="'.$cpg_theme.'xxx">Reset theme</a>'
$cpg_flag_return.='</span>'

$cpg_flag_return.="</form>"

// end  links menu 

else if ($theme_choice== "pulldown"){ // start pul-down menu 
$cpg_flag_return.="<form name=\"choose_theme\" action=\"" $cpg_theme."&theme=\" method=\"get\" style=\"margin-top:0px;margin-bottom:0px\"><span class=\"winzig\">"

$theme_name['default'] = 'Default'

$cpg_flag_return.=$select_theme "<select name=\"theme\" size=\"1\" onchange=\"if (this.options[this.selectedIndex].value) window.location.href='".$cpg_theme."' + this.options[this.selectedIndex].value;\">"

foreach (
$theme_name as $key => $value

  
$cpg_flag_return.='<option value="' $key '"'
  if(
$key==$cpg_current_theme){$cpg_flag_return.=' selected';} 
  
$cpg_flag_return.='>' $value '</option>'

$cpg_flag_return.= '</select></span>'

// end pul-down menu 

if ($number_of_rows==1){$cpg_flag_return.='<!--foo</td></tr></table>-->';} 

$cpg_flag_return.=''

return 
$cpg_flag_return
//--- def function cpg_show_flags end 



function cpg_ascii_onoff() 

$cpg_current=$_SERVER["SCRIPT_NAME"]."?"
foreach (
$_GET as $key => $value) { 
if (
$key=="ascii"){ 
$ascii_exist=1
if (
$value==1){$value=0;}else{$value=1;} 

$cpg_current.= $key "=" $value "&"

if(
$ascii_exist!=1){$cpg_current.="ascii=1";} 
$cpg_current rtrim($cpg_current "&"); 
return 
$cpg_current

?>

This is based on your code for languages.
« Last Edit: May 31, 2004, 07:29:59 am by GauGau »
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

antonio

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 27
    • http://www.orrego.net
Parse Error
« Reply #37 on: January 09, 2004, 10:46:00 pm »

Thank you so much...all works fine now..
Logged

Danielw11

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
i need help with making select theme
« Reply #38 on: March 01, 2004, 03:34:47 am »

i didn't understand the hack were users can select there own theme
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: i need help with making select theme
« Reply #39 on: March 01, 2004, 07:35:20 am »

Quote from: "Danielw11"
i didn't understand the hack were users can select there own theme
then why don't you reply to the thread you're referring to instead of starting a new thread? I merged your separate posting with this thread.
What exactly doesn't work for you?

GauGau
Logged
Pages: 1 [2] 3   Go Up
 

Page created in 0.045 seconds with 18 queries.