Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Move next, previous arrows from navbar in displayimage or displeymedia function  (Read 3743 times)

0 Members and 1 Guest are viewing this topic.

allvip

  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Posts: 1362

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.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764

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".
Logged

allvip

  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Posts: 1362

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
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764

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
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 21 queries.