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 28052 times)

0 Members and 1 Guest are viewing this topic.

Gabriel Menini

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 5
    • Guarani Aquifer System Project
Re: hi, i still got a problem [parse error in anycontent.php on line 16]
« Reply #40 on: May 29, 2004, 07:26:41 am »

Quote from: mayo
i just installed coppermine 1.2.0 RC2 and changed anycontent.php, but nothing changed as you can see at www.vilafoto.wz.cz.
What else should I do to let my user change language and theme on the "fly"?
Can anybody help,
Thanx Mayo
You have to configure cpm to display anycontent on the main page.
e. g.: menu config ==> The content of the main page ==> anycontent/catlist/alblist/random,1
petardo

Petardo, I have modified the default anycontent.php with the code provided and did the change in the configuration section.

I am running Coppermine 1.2.1_standalone and I'm getting the following error where it's supposed to be the anycontent.php stuff:

Parse error: parse error in /physical/path/to/coppermine/anycontent.php on line 16

Line 16 shows:

Code: [Select]
starttable("100%"); ?>
...and I can't figure out what's going on...   ???
Logged
-

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: hi, i still got a problem [parse error in anycontent.php on line 16]
« Reply #41 on: May 30, 2004, 06:32:00 pm »

Must be
Code: [Select]
starttable("100%"); ?>GauGau
Logged

Gabriel Menini

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 5
    • Guarani Aquifer System Project
Re: hi, i still got a problem [parse error in anycontent.php on line 16]
« Reply #42 on: May 31, 2004, 01:14:57 am »

Must be
Code: [Select]
starttable("100%"); ?>GauGau

Thanks, GauGau...

But, talking about the last (more clear) code posted in this thread, I guess I have to re-format all the code like

Code: [Select]
starttable("100%"); ?>
<tr>
               <td class="tableb">
                               <?php print cpg_show_flags&#40;&#41;; ?>
               </td>
</tr>
<?php endtable&#40;&#41;; ?>

...to its correspondent ASCII characters like quotes or % sign?   :(

Am I right?
Logged
-

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: How to get the same "Language & Theme" option
« Reply #43 on: May 31, 2004, 07:28:06 am »

Replace &#40; with ( and &#41; with )

GauGau
Logged

Nubie

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Re: How to get the same "Language & Theme" option
« Reply #44 on: June 05, 2004, 02:47:56 pm »

just to let you know..
I've set up coppermine with the flag code but it didn't work properly on my pc maybe due to the $_SERVER["script_name"] value..

so I've made a change..

//get the url and all vars except $lang
//this is like it was
//$cpg_current=$_SERVER["SCRIPT_NAME"]."?";

//this is the replaced version
$cpg_current=$_SERVER['REQUEST_URI']."?";

now all works fine even on a remote server!
hope this is useful..

bye
Logged
Pages: 1 2 [3]   Go Up
 

Page created in 0.019 seconds with 18 queries.