Move next, previous arrows from navbar in displayimage or displeymedia function Move next, previous arrows from navbar in displayimage or displeymedia function
 

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

Move next, previous arrows from navbar in displayimage or displeymedia function

Started by allvip, July 07, 2015, 09:20:50 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

allvip

How can I move the next, previous arrows from navbar in displayimage or displeymedia function?
Andre helped me to something similiar in this topic  Return to the thumbnails page under filmstrip http://forum.coppermine-gallery.net/index.php/topic,76738.0.html.
I can not use  Picture navigation plugin for cpg1.5.x http://forum.coppermine-gallery.net/index.php/topic,68456.0.html. I replaced the tables with divs and the plugin is not working with divs.
I want to have a design like in this attachment http://forum.coppermine-gallery.net/index.php/topic,77938.msg376689.html#msg376689 for the intermediare image.

Thanks.

Αndré

The probably easiest way is to adjust the picture navigation plugin. Have a look at picture_navigation.js. Expecting that you don't use the panorama viewer plugin and haven't changed the CSS classes of the navbar buttons, it should be enough to adjust that line:
$('td.display_media').html($('td.display_media').html().replace('<tr>', '<tr>' + btn_prev).replace('</tr>', btn_next + '</tr>'));
to something like
$('div.display_media').html($('div.display_media').html().replace('<div>', '<div>' + btn_prev).replace('</div>', btn_next + '</div>'));
to add the buttons next to the image. Of course you also need to replace the "td" in btn_prev and btn_next with "div".

allvip

I tryed and is not working. I removed all tables from displayimage.php page, floated the divs to the left etc. so the plugin is no longer possible to use.
Ideal with be to be able to move the arrows from navbar function in displayimage or displeymedia function (if is possible) like I did with Return to the thumbnails page button http://forum.coppermine-gallery.net/index.php/topic,76738.0.html

Αndré