Advanced search  

News:

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

Pages: [1]   Go Down

Author Topic: themes selectable by users?  (Read 2745 times)

0 Members and 1 Guest are viewing this topic.

brynn

  • Coppermine frequent poster
  • ***
  • Country: us
  • Offline Offline
  • Gender: Female
  • Posts: 198
    • Inkscape Commmunity
themes selectable by users?
« 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   :)
Logged

lurkalot

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 905
  • +Tinyportal Support team.
Re: themes selectable by users?
« Reply #1 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
Inkscape Theme
« Last Edit: September 24, 2013, 01:04:01 pm by lurkalot »
Logged
Running SMF 2.0.15  / Tinyportal 1.6.4, bridged with Coppermine 1.6.06, plus cpmfetch 2.0.0

brynn

  • Coppermine frequent poster
  • ***
  • Country: us
  • Offline Offline
  • Gender: Female
  • Posts: 198
    • Inkscape Commmunity
Re: themes selectable by users?
« Reply #2 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?
Logged

Phill Luckhurst

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4687
    • Windsurf.me
Re: themes selectable by users?
« Reply #3 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.
Logged
It is a mistake to think you can solve any major problems just with potatoes.

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15759
Re: themes selectable by users?
« Reply #4 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.
Logged

brynn

  • Coppermine frequent poster
  • ***
  • Country: us
  • Offline Offline
  • Gender: Female
  • Posts: 198
    • Inkscape Commmunity
Re: themes selectable by users?
« Reply #5 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  :)
Logged

brynn

  • Coppermine frequent poster
  • ***
  • Country: us
  • Offline Offline
  • Gender: Female
  • Posts: 198
    • Inkscape Commmunity
Re: themes selectable by users?
« Reply #6 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?
Logged

Niecher

  • LocalSupporter
  • Coppermine frequent poster
  • ***
  • Country: es
  • Offline Offline
  • Gender: Male
  • Posts: 191
Re: themes selectable by users?
« Reply #7 on: October 09, 2013, 10:23:32 pm »

Yes

Regards.
Logged

brynn

  • Coppermine frequent poster
  • ***
  • Country: us
  • Offline Offline
  • Gender: Female
  • Posts: 198
    • Inkscape Commmunity
Re: themes selectable by users?
« Reply #8 on: October 10, 2013, 01:00:23 pm »

Awesome!

Thanks  :)
Logged
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 22 queries.