prettyPhoto jquery lightbox prettyPhoto jquery lightbox
 

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

prettyPhoto jquery lightbox

Started by allvip, November 22, 2013, 07:11:33 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

allvip

I want to add prettyPhoto to coppermine:

1.I replaced in function theme_html_picture:


"$pic_html = "<a href=\"javascript:;\" onclick=\"MM_openBrWindow('displayimage.php?pid=$pid&amp;fullsize=1','" . uniqid(rand()) . "','scrollbars=yes,toolbar=no,status=no,resizable=yes,width=$winsizeX,height=$winsizeY')\">"


with:


$pic_html = "<a rel=\"prettyPhoto[pp_gal]\" href=\"{$CONFIG['fullpath']}{$CURRENT_PIC_DATA['filepath']}{$CURRENT_PIC_DATA['filename']}\">";


at both positions.

2. added rel=\"prettyPhoto[pp_gal]\" to:


$pic_html = "<a href=\"{$picture_url}\" rel=\"prettyPhoto[pp_gal]\" target=\"_blank\" class=\"document_link\" ><img src=\"".$pic_thumb_url."\" border=\"0\" class=\"image\" /></a><br />" . $LINEBREAK;


3. template.html I included the prettyPhoto js and css and added before </body>:


<script type="text/javascript" charset="utf-8">
  $(document).ready(function(){
    $("a[rel^='prettyPhoto']").prettyPhoto();
  });
</script>


but is not loading the next image when I click the next arrow (is loading the same image).


allvip

I think something should be diffrent in:



href=\"{$CONFIG['fullpath']}{$CURRENT_PIC_DATA['filepath']}{$CURRENT_PIC_DATA['filename']}\">";



but I don't know what.tryed many options.

Niecher

For Fullsize perhaps it is best to set prettyPhoto for a single image.

Regards.

allvip

yes,but this way is no fun.
thanks anyway.

allvip

for who wants to use prettyPhoto for a single image:

delete all [pp_gal] from the code.this way prev,next arrows and prettyPhoto filmstrip won't show.

Αndré

If you expect help you should at least describe what you third party code should do and how it is supposed to work.

allvip

already did  that: is not loading the next image when I click the next arrow (is loading the same image)

demo: http://www.allvip.us/prettyphoto/index.html

I want it to work like in demo Unusual sizes or at Gallery but it works like in demo Picture alone

I shoud add prettyphoto to intermediare image not to full size - I thinks that was my mistake.

I will try it again when I will have more time.


Αndré

I assume it doesn't load the next image, as the script doesn't know that there are other images. I guess you'd need to apply your changes to the thumbnail pages to load several images.