joi, 20 mai 2010

BBcode Picasa Slideshow

După lupte seculare care au durat vreo 3 nopţi, am reuşit să încropesc un tag [picasa] pentru phpBB.

BBcode Usage:

[picasa]http://picasaweb.google.com/{INTTEXT}/{IDENTIFIER2}#[/picasa]

HTML replacement:

<script type="text/javascript"
src="http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js">
</script>
<div id="piks{INTTEXT}{IDENTIFIER2}"> <script>
var flashvars = {
feed: "http%3A%2F%2Fpicasaweb.google.com%2Fdata%2Ffeed%2Fapi%2Fuser%2F{INTTEXT}%2Falbum%2F{IDENTIFIER2}%3Falt%3Drss%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{INTTEXT}{IDENTIFIER2}", "600", "450", "9.0.0", "",
flashvars, params);
</script>
</div>

Şi varianta cooliris:

BBcode Usage:

[cooliris]http://picasaweb.google.com/{INTTEXT}/{IDENTIFIER2}#[/cooliris]

HTML replacement:

<script type="text/javascript"
src="http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js">
</script>
<div id="wall{INTTEXT}{IDENTIFIER2}"> <script>
var flashvars = {
feed: encodeURIComponent("api://picasaweb.google.com/?user={INTTEXT}&album={IDENTIFIER2}")
};
var params = {
allowFullScreen: "true",
allowscriptaccess: "always"
};
swfobject.embedSWF("http://apps.cooliris.com/embed/cooliris.swf",
"wall{INTTEXT}{IDENTIFIER2}", "600", "450", "9.0.0", "",
flashvars, params);
</script>
</div>

Le puteţi vedea la lucru aici.

luni, 15 februarie 2010

Going Live

Bine aţi venit pe minunatul meu blog. După pauza publicitară, voi difuza tot felul de materiale despre mountain biking, hărţi digitale, gps, antrenament şi în general tot ce-mi trece prin cap.