coppermine-gallery.com/forum

Support => cpg1.5.x Support => cpg1.5 themes (visuals) => Topic started by: cavallino on July 10, 2011, 10:35:23 AM

Title: [Solved] Silly question.... how to select another theme? (for users!)
Post by: cavallino on July 10, 2011, 10:35:23 AM
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!
Title: Re: Silly question.... how to select another theme? (for users!)
Post by: 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.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.
Title: Re: Silly question.... how to select another theme? (for users!)
Post by: cavallino on July 10, 2011, 11:42:09 AM
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!
Title: Re: Silly question.... how to select another theme? (for users!)
Post by: cavallino on July 10, 2011, 11:46:01 AM
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...

Title: Re: Silly question.... how to select another theme? (for users!)
Post by: lurkalot on July 10, 2011, 01:41:09 PM
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.
Title: Re: Silly question.... how to select another theme? (for users!)
Post by: cavallino on July 10, 2011, 05:58:15 PM
Problem solved,
it was more likely a cookies/cache problem :)
Title: Re: [Solved] Silly question.... how to select another theme? (for users!)
Post by: 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!
Title: Re: [Solved] Silly question.... how to select another theme? (for users!)
Post by: lurkalot on July 12, 2011, 08:39:10 PM
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. ;)