Previous / Next Image Arrows Previous / Next Image Arrows
 

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]

Main Menu

Previous / Next Image Arrows

Started by leemarquis, September 14, 2005, 10:44:13 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

leemarquis

I have been modifying the layout of the theme im using and i seem to have deleted something that was required for the previous/next image arrow buttons to work.  I have the lines of code which display the arrow images where I want them but when selected they say : The requested URL /coppermine/{NEXT_TGT} was not found on this server and similarly The requested URL /coppermine/{PREV_TGT} was not found on this server.

Anyone know what I need to add back in and where?

Thanks

Tranz

Please search for this topic, which has been discussed.

leemarquis

I've searched and only found info about adding arrows to album pages and film strips.  Could you point m eto the right place or let me know the code im missing?

Will be much appreciated.
Thanks

Nibbler

Check the code in displayimage.php, they should be in here:

    $params = array('{THUMB_TGT}' => $thumb_tgt,
        '{THUMB_TITLE}' => $lang_img_nav_bar['thumb_title'],
        '{PIC_INFO_TITLE}' => $lang_img_nav_bar['pic_info_title'],
        '{SLIDESHOW_TGT}' => $slideshow_tgt,
        '{SLIDESHOW_TITLE}' => $lang_img_nav_bar['slideshow_title'],
        '{PIC_POS}' => $pic_pos,
        '{ECARD_TGT}' => $ecard_tgt,
        '{ECARD_TITLE}' => $ecard_title,
        '{PREV_TGT}' => $prev_tgt,
        '{PREV_TITLE}' => $prev_title,
        '{NEXT_TGT}' => $next_tgt,
        '{NEXT_TITLE}' => $next_title,
        '{PREV_IMAGE}' => ($lang_text_dir=='LTR') ? 'prev' : 'next',
        '{NEXT_IMAGE}' => ($lang_text_dir=='LTR') ? 'next' : 'prev',
        );

leemarquis

Yes thanks, just realised that they do work when i put them at the top of the image in the nav bar.  Is there a way of putting them somewhere else and still working?!
Or even just to get them to centre in the nave bar with the following code they are left aligned?
// HTML template for the image navigation bar
$template_img_navbar = <<<EOT


               
<div allign="centre">

                <align="center" valign="middle" class="navmenu" width="1">
                        <a href="{PREV_TGT}" class="navmenu_pic" title="{PREV_TITLE}"><img src="images/prev.gif" width="16" height="16" border="0" align="middle" alt="{PREV_TITLE}" /></a>

                         <align="centre" valign="middle" class="navmenu" width="0">
                        <a href="{THUMB_TGT}" class="navmenu_pic" title="{THUMB_TITLE}"><img src="images/backtoimages.jpg" width="120" height="16" align="middle" border="0" alt="{THUMB_TITLE}" /></a>

                <align="center" valign="middle" class="navmenu" width="1">
                        <a href="{NEXT_TGT}" class="navmenu_pic" title="{NEXT_TITLE}"><img src="images/next.gif" width="16" height="16" border="0" align="middle" alt="{NEXT_TITLE}" /></a>
</div>

EOT;