Problem with pods, PWA+PHP and shadowbox

0

I'm using the PWA+PHP plugin in combination with shadowbox to display image galleries on a site. This all works fine, but I wanted to extend the galleries with pods. A created a gallery pod which just has the name and shortcode for the PWA+PHP gallery I want to display. My gallery works fine on the pods detail page except that the shadowbox functionality does not work. I've created two separate menu items one with a basic WP page (works fine). this just has the gallery shortcode on the page. The other with the same gallery short code loaded from a pods page/template.

I think the PWA-PHP plugin is adding a REL attribute to the image links, this is a requirement for shadowbox and missing from the Pods version. I cannot see any difference between the libraries loaded and no errors are being raised. I think the problem may be down to a race condition.

Any pointers would be gratefully received as achieving what I want without Pods is going to be a pain.

I'm using the latest version of everything (perhaps one behind on PODS).

WARNING: the galleries in question for a hunting site. The links above won't show anything too unpleasant, but browsing might well do.

asked Jul 8 '11 at 6:20

caroig

16

add comment
enter at least 15 characters

3 Answers

0

Thanks Scott. The culprit was shadowbox. It sets the REL attribute on page images and this either did not run on the pod page or ran before the images were loaded. I added a snippet of jQUery in my template to add in the RELs and this resolved the problem.

answered Jul 14 '11 at 2:31

caroig

16

add comment
enter at least 15 characters
0

Yeah, it's the REL attribute, looks like a bug with the plugin you're using, PWA+PHP gallery. If requires that it be on a post/page of some type to run the gallery properly. If they adjusted the code so that the REL attribute was sent out anyways (perhaps with a rel="shadowbox[sbpost-0];player=img;"), that would resolve the problem.

answered Jul 9 '11 at 3:44

sc0ttkclark

2936

add comment
enter at least 15 characters
0

I don't think PWA-PHP is involved. Shadowbox adds the rel attribute on all page images and I guess on the pods page it's running before the images are available. I've just added a bit of jQuery in the pods template to add in the rel and it all works fine. Thanks scott.

answered Jul 11 '11 at 8:36

caroig

16

add comment
enter at least 15 characters