Advanced search  

News:

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

Pages: [1]   Go Down

Author Topic: Display Theme List not available  (Read 2029 times)

0 Members and 1 Guest are viewing this topic.

BruceS

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Display Theme List not available
« on: April 15, 2013, 06:46:30 am »

This item is not showing up in Admin Config. (to enable or not)
There are the 5 standard themes installed.
(1.5.18)
Logged

lurkalot

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 824
  • +Tinyportal Support team.
Re: Display Theme List not available
« Reply #1 on: April 15, 2013, 08:43:24 am »

The theme select dropdown was removed from 1.5.xx because a lot of people don't need it, if using one particular theme. 

The function is still built it though, you just need to add this token to each themes template.php file to make it display.
Code: [Select]
{THEME_SELECT_LIST}
More info about the tokens here, http://documentation.coppermine-gallery.net/en/theme_template.htm

Hope this helps.  ;)
Logged
Running SMF 2.0.13  / Tinyportal 1.2, bridged with Coppermine 1.5.34, plus cpmfetch 2.0.0

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15369
Re: Display Theme List not available
« Reply #2 on: April 15, 2013, 10:49:30 am »

Some more information about that token:
In older versions of Coppermine, all themes used to contain the placeholder token {THEME_SELECT_LIST}. This token used to be replaced with a list of the available themes and only if the corresponding option in coppermine's config used to be checked (by default, the option used to be unchecked). This has changed in cpg1.5.x: if your custom theme's template.html contains the token {THEME_SELECT_LIST}, the corresponding output will be displayed no matter what, as the option in coppermine's config has been dropped.

Therefore, if you use a theme that was designed for cpg1.4.x, the theme selector will show after the upgrade to cpg1.5.x even if you had the display turned off before. If this bothers you, just remove the template placeholder token {THEME_SELECT_LIST}.
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 22 queries.