PDA

View Full Version : BB Code Enhancements - Picasaweb Album Slideshow - bbcode


hiker
05-26-2010, 10:00 PM
I assume this will work on previous versions of vbulletin as well.

I run an Outdoor Community and a lot of my members are using Picasaweb to store their photos. Rather than having them show a few photos and then link to the album for "the rest of the photos", I really needed a way to bring a slideshow into the post.

I would love to find a way to just copy and paste the entire album url between some tags, but after searching up and down the internet (even in all of the corners) I could not find an exact method of doing that. If anybody knows a solution that would make my mod obsolete, I'd love to have it.

So this method will require the user to enter their picasaweb user id in the Options box, and then the album id/name in between the tags.

This is my first mod posted, I hope my instructions are complete.

As for support? Hmmm... since I'm such a noob, I'm gonna say NO, because I'm not that much of a problem solver yet. Hopefully the community will chime in on questions and problems.

Thanks.

Title: Picasaweb Slideshow

Tag: picasa

Replacement:
HTML Code:
<script type="text/javascript"
src="http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js">
</script>
<div id="piks{option}{param}"> <script>
var flashvars = {
feed: "http%3A%2F%2Fpicasaweb.google.com%2Fdata%2Ffeed%2F api%2Fuser%2F{option}%2Falbum%2F{param}%3Falt%3Drs s%26kind%3Dphoto%26hl%3Den_US",
RGB: "0x000000"
};
var params = {
pluginspage: "http://www.macromedia.com/go/getflashplayer",
allowscriptaccess: "always"
};
swfobject.embedSWF("http://picasaweb.google.com/s/c/bin/slideshow.swf",
"piks{option}{param}", "600", "450", "9.0.0", "",
flashvars, params);
</script>
</div>

Example: SanJuanRiverMay1418

Description: Embeds a picasaweb slideshow into a post

Use {option}: Yes

Button Image: (upload my attached "picasa.gif" if you like)

Remove Tag If Empty: Yes

Disable BB Code Within This BB Code: No

Disable Smilies Within This BB Code: No

Disable Word Wrapping Within This BB Code: No


I've made a tutorial video for my members here, along with an example slideshow:
http://www.bogley.com/forum/showthread.php?39410-Embed-Picasa-Slideshows-(picasaweb)

I just made a Flickr slideshow bbcode mod here:
https://vborg.vbsupport.ru/showthread.php?t=243368

sgbmad
05-27-2010, 06:55 AM
Great code but produces Internal Server Error when save the bbcode.

toejam
05-27-2010, 01:50 PM
Thanks, works great.

Been waiting for someone to do something with picasa.

I have this working on 3.7.3

hiker
05-27-2010, 02:18 PM
Great code but produces Internal Server Error when save the bbcode.

Sorry to hear that. Are you seeing this in the post, or in your BBcode manager screen? Are you using my same example code?

hiker
05-27-2010, 02:50 PM
I am on vb 4.0.2 by the way.

grc
07-04-2010, 09:50 PM
Thanks for this. It works great.

I wonder if there's a switch to turn auto-start off on the slide shows. If the slide show is several posts deep in a thread a person reading the posts might not even see it till it is half over.

hiker
07-05-2010, 07:58 PM
Google inserts the following code if you turn the autoplay off:

&noautoplay=1

but I'm trying to figure out how to place that in the BB code.

The full example of an embedded Picasa slideshow is:

<embed type="application/x-shockwave-flash" src="http://picasaweb.google.com/s/c/bin/slideshow.swf" width="288" height="192" flashvars="host=picasaweb.google.com&hl=en_US&feat=flashalbum&RGB=0x000000&feed=http%3A%2F%2Fpicasaweb.google.com%2Fdata%2Ffe ed%2Fapi%2Fuser%2Fjustinmcfarland0%2Falbumid%2F548 8801968857494177%3Falt%3Drss%26kind%3Dphoto%26hl%3 Den_US" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>

And with autoplay turned off, it's:

<embed type="application/x-shockwave-flash" src="http://picasaweb.google.com/s/c/bin/slideshow.swf" width="288" height="192" flashvars="host=picasaweb.google.com&noautoplay=1&hl=en_US&feat=flashalbum&RGB=0x000000&feed=http%3A%2F%2Fpicasaweb.google.com%2Fdata%2Ffe ed%2Fapi%2Fuser%2Fjustinmcfarland0%2Falbumid%2F548 8801968857494177%3Falt%3Drss%26kind%3Dphoto%26hl%3 Den_US" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>

I tried a few things, but I broke the slideshow. I'll keep messing around with it and will hopefully get back to you. Fortunately at this time, the users can use the navigation arrows to go back and forth in the slideshow if they've gotten lost.

xug
07-06-2010, 11:56 AM
Have you found a solution for the autoplay off?

hiker
09-21-2010, 02:10 AM
Bump, there seems to be an issue with this right now, I'll get back to you when I find a solution. Thanks.

hiker
10-07-2010, 03:06 PM
Bump, there seems to be an issue with this right now, I'll get back to you when I find a solution. Thanks.

The issue is fixed. thanks. It was actually caused by a non related modification that affected google code.

Toorak Times
02-04-2013, 06:09 AM
Picasa have changed their urls, any ideas on how to make this work?

ar15dcm
03-12-2013, 11:21 AM
Ditto this would be nice to have