Post by iPokemon on Sept 4, 2011 20:15:07 GMT -5
Global Footer
No editing required!
[photobucket]Direct Link to Slide Show[/photobucket]
No editing required!
<script type="text/javascript">
<!--
/* Photobucket Slide Show UBBC Tag
By iPokemon
Thanks to SubDevo for helping with the parsing!
Not in any way calling Photobucket our own
Do not redistribute or call your own
mods by wormo - attempt 3
http://bytemecodes.proboards.com/
*/
if (true) {
if(document.postForm) {
document.postForm.color.parentNode.innerHTML+='<a href="javascript:add(\'[photobucket]\',\'[/photobucket]\')"><img src="http://i29.tinypic.com/2a6qtu1.png" border="0" /></a>';
}
//Replacement Portion
if(pb_action.match(/(calendar|pm|pre)view|search2|display/i)){
var td = document.getElementsByTagName('td'); var matCH=/\[photobucket\](.+?)\[\/photobucket\]/gi;
for(l=0;l<td.length;l++){
if (td[l].width=="80%"&&td[l].innerHTML.match(matCH)) {
td[l].innerHTML = td[l].innerHTML.replace(matCH, function pbsld_replace(imp, extrct) {
var slideshowU = extrct;
if(slideshowU.indexOf(".pbw")!=-1){
var ns=slideshowU.replace(/\s+?/,'').replace("s","w"),nx=ns.split(".com"),start=nx[0]+".com";
slideshowU=start+"/pbwidget.swf?pbwurl="+escape(start+nx[1].split("?")[0]+nx[1].split("=")[2]);
}else{
var ns=slideshowU.replace("s","feed"),nx=encodeURIComponent(ns.slice(0,ns.indexOf("?"))+"feed.rss");
slideshowU='http://static.pbsrc.com/flash/rss_slideshow.swf" flashvars="rssFeed='+nx;
}
return '<div style="width:480px; text-align: center;"><embed type="application/x-shockwave-flash" wmode="transparent" src="'+slideshowU+'" height="270" width="480"><a href="http://photobucket.com/slideshows" target="_blank"><img src="http://pic.photobucket.com/slideshows/btn.gif" style="float:left;border-width: 0;" ></a></div>';
});
}
}
}
}
//-->
</script>
[photobucket]Direct Link to Slide Show[/photobucket]