forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 themes (visuals) => Topic started by: brynn on September 24, 2013, 12:36:44 pm

Title: themes selectable by users?
Post by: brynn on September 24, 2013, 12:36:44 pm
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   :)
Title: Re: themes selectable by users?
Post by: lurkalot on September 24, 2013, 12:48:43 pm
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 (http://inkscapecommunity.com/ic_gallery/index.php?theme=curve)
Inkscape Theme (http://inkscapecommunity.com/ic_gallery/index.php?theme=ic_gallery_theme)
Title: Re: themes selectable by users?
Post by: brynn on September 24, 2013, 05:45:12 pm
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?
Title: Re: themes selectable by users?
Post by: phill104 on September 24, 2013, 07:40:45 pm
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.
Title: Re: themes selectable by users?
Post by: Αndré on September 27, 2013, 09:29:57 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.
Title: Re: themes selectable by users?
Post by: brynn on October 09, 2013, 09:58:44 pm
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  :)
Title: Re: themes selectable by users?
Post by: brynn on October 09, 2013, 10:08:01 pm
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?
Title: Re: themes selectable by users?
Post by: Niecher on October 09, 2013, 10:23:32 pm
Yes

Regards.
Title: Re: themes selectable by users?
Post by: brynn on October 10, 2013, 01:00:23 pm
Awesome!

Thanks  :)