forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 themes (visuals) => Topic started by: allvip on July 07, 2015, 09:20:50 pm

Title: Move next, previous arrows from navbar in displayimage or displeymedia function
Post by: allvip on July 07, 2015, 09:20:50 pm
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 (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 (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 (http://forum.coppermine-gallery.net/index.php/topic,77938.msg376689.html#msg376689) for the intermediare image.
 
Thanks.
Title: Re: Move next, previous arrows from navbar in displayimage or displeymedia function
Post by: Αndré on July 08, 2015, 09:15:08 am
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:
Code: [Select]
$('td.display_media').html($('td.display_media').html().replace('<tr>', '<tr>' + btn_prev).replace('</tr>', btn_next + '</tr>'));to something like
Code: [Select]
$('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".
Title: Re: Move next, previous arrows from navbar in displayimage or displeymedia function
Post by: allvip on July 08, 2015, 07:21:01 pm
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 (http://forum.coppermine-gallery.net/index.php/topic,76738.0.html)
Title: Re: Move next, previous arrows from navbar in displayimage or displeymedia function
Post by: Αndré on July 10, 2015, 12:46:28 pm
Please have a look at an older release (e.g. the initial release) of the plugin. It used PHP to create the buttons and link targets: http://sourceforge.net/p/coppermine/code/8058/tree/branches/cpg1.5.x/plugins/picture_navigation/codebase.php