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]   Go Down

Author Topic: [Solved] Silly question.... how to select another theme? (for users!)  (Read 3967 times)

0 Members and 1 Guest are viewing this topic.

cavallino

  • Coppermine newbie
  • Offline Offline
  • Posts: 18

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!
« Last Edit: July 10, 2011, 06:05:19 pm by lurkalot »
Logged

lurkalot

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 949
  • +Tinyportal Support team.
Re: Silly question.... how to select another theme? (for users!)
« Reply #1 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 
Code: [Select]
{THEME_SELECT_LIST}
You have to edit the template.html file for each theme you want the selector to appear. 

hope this helps.
« Last Edit: July 10, 2011, 01:37:08 pm by lurkalot »
Logged
Running SMF 2.1.4  / Tinyportal 3.0.0, bridged with Coppermine 1.6.25, plus cpmfetch 2.0.0

cavallino

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
Re: Silly question.... how to select another theme? (for users!)
« Reply #2 on: July 10, 2011, 11:42:09 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 
Code: [Select]
{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!
Logged

cavallino

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
Re: Silly question.... how to select another theme? (for users!)
« Reply #3 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...

Logged

lurkalot

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 949
  • +Tinyportal Support team.
Re: Silly question.... how to select another theme? (for users!)
« Reply #4 on: July 10, 2011, 01:41:09 pm »


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.
Logged
Running SMF 2.1.4  / Tinyportal 3.0.0, bridged with Coppermine 1.6.25, plus cpmfetch 2.0.0

cavallino

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
Re: Silly question.... how to select another theme? (for users!)
« Reply #5 on: July 10, 2011, 05:58:15 pm »

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

cavallino

  • Coppermine newbie
  • Offline Offline
  • Posts: 18

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!
Logged

lurkalot

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 949
  • +Tinyportal Support team.

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. ;)
Logged
Running SMF 2.1.4  / Tinyportal 3.0.0, bridged with Coppermine 1.6.25, plus cpmfetch 2.0.0
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 19 queries.