themes selectable by users? themes selectable by users?
 

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

Main Menu

themes selectable by users?

Started by brynn, September 24, 2013, 12:36:44 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

brynn

Hi Friends,
In this part of the manual:  http://documentation.coppermine-gallery.net/en/configuration.htm#admin_theme_theme it says the following.

"Usually, your visitors are not aware of your gallery's capabilities to use individual themes nor do they know what themes are available on your server (unless you have deliberately enabled the theme selector dropdown feature)...."

"(unless you have deliberately enabled the theme selector dropdown feature)" would seem to indicate that there is some way to enable a dropdown menu by which users can select a theme that's different from the default, if they want.

I can't seem to find where to do this, which leads me to think I've misunderstood it.  Can someone clear me up on this please?

Thank you very much   :)

lurkalot

#1
Brynn, check this post for the answer. http://forum.coppermine-gallery.net/index.php/topic,76188.msg367716.html#msg367716

Or as you use a portal, you can add a gallery theme change block as I have on my sites.  ;)

You just need links in the block, for example,

http://inkscapecommunity.com/ic_gallery/index.php?theme=curve

http://inkscapecommunity.com/ic_gallery/index.php?theme=ic_gallery_theme

Or in other words,

Curve Theme
Inkscape Theme
Running SMF 2.1.4  / Tinyportal 3.0.1, bridged with Coppermine 1.6.25, plus cpmfetch 2.0.0

brynn

Ok, I know exactly what you're describing with the new block with links to the themes.  However, I don't have any portal blocks on my gallery page.  Although I guess it wouldn't hurt to have it on the forum portal index page.

So if I were much more knowledgeable about how my forum's pages/themes are made, I could make a gallery theme for every forum theme that I offer?!

Ok, so your instructions at the link you referenced, it says "....you just need to add this token to each themes template.php file to make it display."

Would that be -- add the token to template.html file or theme.php file?  And also, where in the file should I put it?  If I were very, very, very clever, could I make it look like the drop down menus in classic_w_drop?

phill104

Please take a look at your other long thread. I have created a theme including your portal for you though it needs a little adjustment css wise. With a little advice you can add a selector in there.
It is a mistake to think you can solve any major problems just with potatoes.

ΑndrĂ©

Quote from: brynn on September 24, 2013, 05:45:12 PM
add the token to template.html file or theme.php file?  And also, where in the file should I put it?
To answer just this question: insert the {THEME_SELECT_LIST} token anywhere in your template.html file.

brynn

Sorry for the delay.  I've got the theme changer installed.  Now I just need to put a couple more themes into.

Thank you very much  :)

brynn

Whoops!  Sorry, one more question  :o

I guess I would need to put {THEME_SELECT_LIST} in the template.html file, for each theme?  Because otherwise, once someone changes the theme, they can't change it back.  Right?

Niecher


brynn