Advanced search  

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]

Pages: [1]   Go Down

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

0 Members and 1 Guest are viewing this topic.

allvip

  • Global Moderator
  • Coppermine addict
  • *****
  • Country: 00
  • Offline Offline
  • Posts: 1290

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: 15759

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

  • Global Moderator
  • Coppermine addict
  • *****
  • Country: 00
  • Offline Offline
  • Posts: 1290

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: 15759

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.055 seconds with 21 queries.