prettyPhoto jquery lightbox prettyPhoto jquery lightbox
 

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

Main Menu

prettyPhoto jquery lightbox

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

Previous topic - Next topic

0 Members and 1 Guest 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.