How to get the same "Language & Theme" option - Page 3 How to get the same "Language & Theme" option - Page 3
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

How to get the same "Language & Theme" option

Started by Themis, October 17, 2003, 12:53:05 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Gabriel Menini

Quote from: petardo on October 19, 2003, 08:26:31 PM
Quote from: mayoi 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:

starttable("100%"); ?>

...and I can't figure out what's going on...   ???
-

Joachim Müller


Gabriel Menini

Quote from: GauGau on May 30, 2004, 06:32:00 PM
Must bestarttable("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

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?
-

Joachim Müller

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

GauGau

Nubie

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