The Scribd Embed code in Latest Wordpress version
So after reading Roshan’s Post about security risk in the previous versions of Wordpress , i followed his recommendations and upgraded my WordPress to the latest on using the easy Automatic Upgrade Plugin . The upgrade was quick it was not all automatic. I had to manually activate some of my plugins and the lightbox script which i had used for photo zooming also got wrong somewhere and my Main Blog page was messed up for sometimes . I then removed lightbox codes from my blog then it was all fine.
I thought everything was fine now but later noticed the the scribd document which i had embedded in my blog as a post was also messed up . The document was actually coming twice . I went though the Scribd embed code and tried some tricks and it worked actually they use this king of long code as embed code
<div style=”display:none”><script>document.write(’<noscript>’);</script></div> <object codebase=”http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0″ id=”embedded_flash_2628442_1k51nq_object” name=”embedded_flash_2628442_1k51nq_object” classid=”clsid:d27cdb6e-ae6d-11cf-96b8-444553540000″ align=”middle” height=”500″ width=”530″> <param name=”movie” value=”http://documents.scribd.com/ScribdViewer.swf?document_id=2628442&access_key=key-13te2da4vntxmlj0oxfn&page=7&version=1″> <param name=”quality” value=”high”> <param name=”play” value=”true”> <param name=”loop” value=”true”> <param name=”scale” value=”showall”> <param name=”wmode” value=”opaque”> <param name=”devicefont” value=”false”> <param name=”bgcolor” value=”#ffffff”> <param name=”menu” value=”true”> <param name=”allowFullScreen” value=”true”> <param name=”allowScriptAccess” value=”always”> <param name=”salign” value=”"> <embed src=”http://documents.scribd.com/ScribdViewer.swf?document_id=2628442&access_key=key-13te2da4vntxmlj0oxfn&page=7&version=1″ quality=”high” pluginspage=”http://www.macromedia.com/go/getflashplayer” play=”true” loop=”true” scale=”showall” wmode=”opaque” devicefont=”false” bgcolor=”#ffffff” name=”embedded_flash_2628442_1k51nq_object” menu=”true” allowfullscreen=”true” allowscriptaccess=”always” salign=”" type=”application/x-shockwave-flash” align=”middle” height=”500″ width=”530″></embed> </object> <div style=”display:none”> </noscript> <script type=”text/javascript” src=’http://www.scribd.com/javascripts/view.js’></script></div> <div id=’embedded_flash_2628442_1k51nq’ style=”width:100%;height:100%”> <span style=”display:none”>Read this doc on Scribd: <a href=”http://www.scribd.com/doc/2628442/hidden-images”>hidden images</a></span> </div> <div style=”display:none”><script type=”text/javascript”> var scribd_doc = new scribd.Document(2628442, ‘key-13te2da4vntxmlj0oxfn’); scribd_doc.addParam(’height’, 500); scribd_doc.addParam(’width’, 530); scribd_doc.addParam(’page’, 7); scribd_doc.addParam(’mode’, ’slideshow’); scribd_doc.write(’embedded_flash_2628442_1k51nq’);</script></div>
but if you excerpt this much of code from the above long code it works and one scribd document will appear.
<embed src=”http://documents.scribd.com/ScribdViewer.swf?document_id=2628442&access_key=key-13te2da4vntxmlj0oxfn&page=7&version=1″ quality=”high” pluginspage=”http://www.macromedia.com/go/getflashplayer” play=”true” loop=”true” scale=”showall” wmode=”opaque” devicefont=”false” bgcolor=”#ffffff” name=”embedded_flash_2628442_1k51nq_object” menu=”true” allowfullscreen=”true” allowscriptaccess=”always” salign=”" type=”application/x-shockwave-flash” align=”middle” height=”500″ width=”530″></embed>




