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: Moving Previous & Next Arrows  (Read 4009 times)

0 Members and 1 Guest are viewing this topic.

ibd12c

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Moving Previous & Next Arrows
« on: March 12, 2006, 04:21:00 am »

In my theme.php, I have moved the Prev & Next arrows from the image nav bar ($template_img_navbar), and now have them one on each side of my intermediate image ($template_display_media). 

However, the paramaters no longer work:  ie...
<a href="{PREV_TGT}" class="navmenu_pic" title="{PREV_TITLE}"><img src="{LOCATION}images/prev.gif"  border="0px" align="middle" alt="{PREV_TITLE}" /></a>

I know that the code to assign these parametes is under function theme_html_img_nav_menu() in theme.php, but I just can't figure out where i need to copy it in order for the $template_display_media to pick it up. 

I've tried for days to figure this one out with no luck.  Could someone point me in the right direction???
« Last Edit: March 15, 2006, 04:38:20 pm by TranzNDance »
Logged

ibd12c

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Moving Previous & Next Arrows
« Reply #1 on: March 13, 2006, 02:47:22 pm »

anyone?  i still haven't figured this one out...
Logged

ibd12c

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Moving Previous & Next Arrows
« Reply #2 on: March 14, 2006, 03:15:10 pm »

ok, I just tried this:

copied "function theme_display_image" from sample to my theme.php, and was going to attempt to add params and a template_eval of some sort under this function to define the arrows under theme_display_image. 

however, when i copy this function straight from my sample theme.php into my new theme.php, it causes the site to stop working, only coming up with a blank white page (even on index.php).

what am I doing wrong now?
Logged

ibd12c

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Moving Previous & Next Arrows
« Reply #3 on: March 14, 2006, 03:20:07 pm »

i think PAVER's solution in this thread is exactly what i need (just under different function): 

http://forum.coppermine-gallery.net/index.php?topic=29122.0

can someone help me parse the variables i need in my function theme_display_image instead of where they are parsed now, function theme_html_img_nav_menu()  ??
Logged

ibd12c

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Moving Previous & Next Arrows
« Reply #4 on: March 15, 2006, 02:26:28 pm »

Please close post, I finally figured it out myself.

Thanks
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 20 queries.