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 2 [3]   Go Down

Author Topic: Picture navigation plugin for cpg1.5.x  (Read 43811 times)

0 Members and 1 Guest are viewing this topic.

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Re: Theme 'mobile_light' for cpg1.5.x
« Reply #40 on: September 03, 2015, 11:11:57 am »

Another approach. Please open plugins/picture_navigation/codebase.php, find
Code: [Select]
    if (!$superCage->get->keyExists('slideshow')) {and replace with
Code: [Select]
    global $CONFIG;
    if (!$superCage->get->keyExists('slideshow') && $CONFIG['theme'] != 'mobile_light') {
Logged

mitko

  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 119
    • World of Lighthouses
Re: Re: Theme 'mobile_light' for cpg1.5.x
« Reply #41 on: September 03, 2015, 11:41:26 am »

Seems i found the problem, i didn't use the latest version of the plugin. Really sorry, shame on me  :-[
Now everything is working fine and i also can switch it off if necessary for this theme. Thank you Andre as usial for your kind support!

mitko

  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 119
    • World of Lighthouses
Re: Picture navigation plugin for cpg1.5.x
« Reply #42 on: September 03, 2015, 12:00:24 pm »

Problem with the plugin on the standard theme. See the pictures

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Picture navigation plugin for cpg1.5.x
« Reply #43 on: September 03, 2015, 12:09:21 pm »

Do you get the issue with the unmodified plugin or with one of my last 2 modifications?
Logged

mitko

  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 119
    • World of Lighthouses
Re: Picture navigation plugin for cpg1.5.x
« Reply #44 on: September 03, 2015, 12:21:34 pm »

Unmodified.

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Picture navigation plugin for cpg1.5.x
« Reply #45 on: September 03, 2015, 12:31:32 pm »

Works as expected in my gallery, but I haven't installed that amount of plugins like you. Please temporary uninstall your plugins one by one and check when it starts to work as expected to find the culprit.
Logged

mitko

  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 119
    • World of Lighthouses
Re: Picture navigation plugin for cpg1.5.x
« Reply #46 on: September 03, 2015, 03:50:37 pm »

Andre, disabled all plugins except this - same story. Could this be a reason that i slightly changed the single-image page (moved custom field and title above the image) plus some other minor things.

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Picture navigation plugin for cpg1.5.x
« Reply #47 on: September 03, 2015, 03:56:29 pm »

Please test with an unmodified theme, like curve or water_drop.

This code adds the buttons next to the image:
Code: [Select]
$('td.display_media').html($('td.display_media').html().replace('<tr>', '<tr>' + btn_prev).replace('</tr>', btn_next + '</tr>'));
Not sure how it should delete anything, as it just adds code. If you have a look at the HTML code of your intermediate-sized view (the browsers' built-in code viewer always display the actual HTML code, without any JavaScript processing), the picture should be there, as the whole picture navigation plugin is written in JavaScript.
Logged

mitko

  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 119
    • World of Lighthouses
Re: Picture navigation plugin for cpg1.5.x
« Reply #48 on: September 03, 2015, 04:02:09 pm »

I have a feeling that then the page loads the picture appears for the half-second and then disappears and instead i have double tittle and custom field. Strange behavior.

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Picture navigation plugin for cpg1.5.x
« Reply #49 on: September 03, 2015, 04:06:14 pm »

You have two td items with class "display_media". I assume this is the culprit. Try to remove that class from
Code: [Select]
                                        <td class="display_media" style="word-wrap: break-word"><h1 class="pic_title">
                                                Adriatic Sea / Golfo di Trieste / Monfalcone / Entrance Channel Lights on the naval chart provided by the Marina Militare Italiano - servizio Fari<br />Chart
                                        </h1></td>
Logged

mitko

  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 119
    • World of Lighthouses
Re: Picture navigation plugin for cpg1.5.x
« Reply #50 on: September 03, 2015, 04:30:29 pm »

Removed. Picture is showing now, but plugin doesn't work (it is activated - you can have a look)

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Picture navigation plugin for cpg1.5.x
« Reply #51 on: September 03, 2015, 04:36:35 pm »

You removed the class from the wrong element ;)
« Last Edit: September 03, 2015, 04:42:43 pm by Αndré »
Logged

mitko

  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 119
    • World of Lighthouses
Re: Picture navigation plugin for cpg1.5.x
« Reply #52 on: September 03, 2015, 04:41:13 pm »

Ahhh, silly me :) Thanks Andre, all is okay now!
Pages: 1 2 [3]   Go Up
 

Page created in 0.03 seconds with 20 queries.