The nextgen gallery plugin does that for you… I cant seem to get it working on my newest project fully – but I used it last week on a clients site and it worked very nicely.
Thread Starter
bohoe
(@bohoe)
Hi Muten
Thanks, but I dont need a gallery.
All I want is the lightbox script to work on 2.5.1
Is there anybody there that has the plugin ‘Lightbox 2’ or ‘Add lightbox’ working on a 2.5.1?
Can anyone, including the gurus, let me know where to add rel=”lightbox[ID-OF-THE-POST]” in my WP files so I can add the lightbox script outside the plug-ins structure, in the html head, and force the links to use it?
I would love you forever!
Thread Starter
bohoe
(@bohoe)
I found this post in the forums http://wordpress.org/support/topic/171903?replies=5
I actually had to Google it, as WP forums’ search wasnt really helpful. Will try it and come back here to let everyone know if it works.
Cross your code!
Thread Starter
bohoe
(@bohoe)
Nop, it doesnt work.
Lightbox and 2.5.1 are no good friends.
Thread Starter
bohoe
(@bohoe)
Ok, there was an issue with Ajax Comments posting. Once that plug-in was off, all worked.
I added
//mafro lightbox mod
list($url, $w, $h) = wp_get_attachment_image_src($id, "full", $icon);
$post_id = get_the_ID();
return "<a href='$url' title='$post_title' rel='lightbox[$post_id]'>$link_text</a>";
to my wp-includes/post-template.php
Bohoe: right, but where did you add this in the post-template.php and what did you replace?