Picture navigation plugin for cpg1.5.x - Page 3 Picture navigation plugin for cpg1.5.x - Page 3
 

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

Picture navigation plugin for cpg1.5.x

Started by Αndré, November 30, 2010, 06:12:09 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Αndré

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

mitko

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

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

Αndré

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

mitko


Αndré

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.

mitko

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é

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

This code adds the buttons next to the image:
$('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.

mitko

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é

You have two td items with class "display_media". I assume this is the culprit. Try to remove that class from
                                        <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>

mitko

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

Αndré

#51
You removed the class from the wrong element ;)

mitko

Ahhh, silly me :) Thanks Andre, all is okay now!