coppermine-gallery.com/forum

Support => Older/other versions => cpg1.3.x Support => Topic started by: leemarquis on September 14, 2005, 10:44:13 PM

Title: Previous / Next Image Arrows
Post by: leemarquis on September 14, 2005, 10:44:13 PM
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
Title: Re: Previous / Next Image Arrows
Post by: Tranz on September 14, 2005, 10:46:36 PM
Please search for this topic, which has been discussed.
Title: Re: Previous / Next Image Arrows
Post by: leemarquis on September 14, 2005, 10:54:44 PM
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
Title: Re: Previous / Next Image Arrows
Post by: Nibbler on September 14, 2005, 11:32:40 PM
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',
        );
Title: Re: Previous / Next Image Arrows
Post by: leemarquis on September 14, 2005, 11:37:34 PM
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;