[Solved] Silly question.... how to select another theme? (for users!) [Solved] Silly question.... how to select another theme? (for users!)
 

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

[Solved] Silly question.... how to select another theme? (for users!)

Started by cavallino, July 10, 2011, 10:35:23 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

cavallino

Hello... I've tried to go everywhere in setting, to see if there was any field for this...
but nothing.

My question is... I have six templates in the themes folder...
I want to see a toggle menu where USERS can select the template they want,
I remember there was something like that in the old cpg, but in this 1.5.x i cannot find it...

Can you help me? Thanks and sorry for the silly question!

lurkalot

The dropdown theme selector was dropped from 1.5.12 but you can add it back by editing the template.html and adding the theme list token  {THEME_SELECT_LIST}

You have to edit the template.html file for each theme you want the selector to appear. 

hope this helps.
Running SMF 2.1.4  / Tinyportal 3.0.1, bridged with Coppermine 1.6.25, plus cpmfetch 2.0.0

cavallino

Quote from: lurkalot on July 10, 2011, 10:59:17 AM
The dropdown theme selector was dropped from 1.5.12 but you can add it back by editing the template.php and adding the theme list token  {THEME_SELECT_LIST}

You have to edit the template.php file for each theme you want the selector to appear. 

hope this helps.

Thanks for your info.... but maybe you meant to add it by editing each template file ---> template.html ? not php...
I added it there, and it shows up!

cavallino

I have noticed a little problem.....
I am using a phpbb2 bridge, but I don't know if this behaviour happens also in a stand-alone cpg environment.

When any user change the template from that dropdown menu, added by the code above,
then the template chosen becomes the active template for everyone.

It doesn't memorize the choice for different users? One change the template, and it changes also the default? Very strange...


lurkalot

Quote from: cavallino on July 10, 2011, 11:42:09 AM

but maybe you meant to add it by editing each template file ---> template.html ? not php...


Correct, sorry for the mistake.  I have corrected my post. ;)

We'll need a link to your gallery, so we can see what's happening.
Running SMF 2.1.4  / Tinyportal 3.0.1, bridged with Coppermine 1.6.25, plus cpmfetch 2.0.0

cavallino

Problem solved,
it was more likely a cookies/cache problem :)

cavallino

lurkalot,
I disturb you again for another thing...
do you know where can I find the CSS part relative to the function {THEME_SELECT_LIST} ?
there's a bad gray background in the toggle cell menu I would like to change, cause it doesn't fit well my theme...
where should I find the css to modify it? :( I tried but I have no clue...
Hope you or someone else can help!

lurkalot

Quote from: cavallino on July 12, 2011, 05:19:18 PM
lurkalot,
I disturb you again for another thing...
do you know where can I find the CSS part relative to the function {THEME_SELECT_LIST} ?
there's a bad gray background in the toggle cell menu I would like to change, cause it doesn't fit well my theme...
where should I find the css to modify it? :( I tried but I have no clue...
Hope you or someone else can help!

I would recommend you use the Firebug addon in Firefox.  This should tell you what part of the code to change. ;)
Running SMF 2.1.4  / Tinyportal 3.0.1, bridged with Coppermine 1.6.25, plus cpmfetch 2.0.0