SmugMug Gallery Bar for Wordpress stopped working (fixed)

carruth98carruth98 Registered Users Posts: 3 Beginner grinner
I have been using the Smugmug Gallery Bar for Wordpress that lets me insert photos from Smugmug directly into my Wordpress blog posts, but it has not been working correctly since the album keys were added.
Normally, it gives a list of albums and then when you choose an album it gives you thumbnails of all the pictures in the album for you to choose what to put in your blog post. After the security fix (discussed in many places) it was giving the album key (5 characters) instead of the Album name. I finally found time to figure it out and fixed it.
If anyone is having the same problem then you need to edit brool_smugmug.php in the wordpress plugins directory. Change line 117 to be: $rv[$v["attributes"]["ID"]] = $vals[$i+3]["value"];
instead of :$rv[$v["attributes"]["ID"]] = $vals[$i+1]["value"];

Note the change from +1 to +3
NOw it works and I get a list of albums that I can choose from to add pictures to my posts. Yeah.
Sign In or Register to comment.