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: Split navigation elements in theme files only  (Read 2746 times)

0 Members and 1 Guest are viewing this topic.

pnear

  • Contributor
  • Coppermine novice
  • ***
  • Offline Offline
  • Posts: 35
    • http://www.thenears.com
Split navigation elements in theme files only
« on: January 07, 2005, 05:10:35 pm »

I'm creating a new theme, using hardwired as the base.

I have a need to split up some of the navigation elements.  I would like "Last Image" and "Next Image" above the image, and the ability to start a slideshow, send an ecard, and other elements below the image. 

Let's use slideshow as the example... 

I've moved the element "{SLIDESHOW_TGT}" from $template_img_navbar to $template_display_picture.  That doesn't work, as that element seems to be parsed in the core code as specific functions to the template.

I've examined "function theme_display_image" and it appears that I can change the order of template sections (ie I can move the entire navigation section below the image) but not split the navigation elements.

Can anyone think of a way to do this using only the theme package?  I'd like to be able to redistribute the theme, so changes to the core code are undesirable.

Background:  I'm picking up PHP as I go along, be gentle.  I'm wondering if I could copy some PHP code from displayimage.php to theme.php in order to parse the navigation elements there, but that's beyond my knowledge level right now.

Theme I'm trying to port:  http://binarybonsai.com/kubrick/
URL of my dev theme:  http://www.thenears.com/coppermine/index.php?theme=kubrick

Thanks,
Pete
Logged

nickmuldoon

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Re: Split navigation elements in theme files only
« Reply #1 on: January 08, 2005, 09:38:44 am »

Hey Pete,

I am looking for just such a theme for Coppermine. It looks as though you have done a fantastic job so far.

Unfortunately I cannot give you any pointers regarding the code but I would love it if you could send me a copy of the theme once it is complete.

My site is at http://noodlum.org/ and http://noodlum.org/cpg and with the Kubric theme it would be complete.

Thanks Pete,
Nick
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Split navigation elements in theme files only
« Reply #2 on: January 08, 2005, 01:15:44 pm »

@pnear: if you decide to share your theme, zip it and attach it to your posting here on the board (using "Additional options" when composing the message), a moderator will move it accordingly.

Joachim
Logged

pnear

  • Contributor
  • Coppermine novice
  • ***
  • Offline Offline
  • Posts: 35
    • http://www.thenears.com
Re: Split navigation elements in theme files only
« Reply #3 on: January 09, 2005, 03:39:57 pm »

I'd be happy to send it along for redistribution GauGau.  Might post it up in "beta" format first to see if anyone wants to help clean it up.  The code looks very much like a hack at this point.
Logged
Pages: [1]   Go Up
 

Page created in 0.014 seconds with 20 queries.