2010-09-23, 02:00 PM
(This post was last modified: 2010-09-23, 03:22 PM by Ahelnor Vyaeh.)
For those who want to embed documents from Scribd.com
Title: Scribd
Regular Expression: \[scribd\](.*?);(.*?)\[/scribd\]
Replacement:
In order for this code to work you will have to enter both - document and access key like this:
[scribd]doc_code;access_code[/scribd]
Document code is included in the scribd url after this part http://www.scribd.com/doc/ An example (the document code is in bold): www.scribd.com/doc/12345678/Some-Random-Document-Title
The access key can be found by pressing on Embed/Share button while viewing the document on scribd. Then choose embed option. In the box that appears you'll see link under "Share Fullscreen URL". For example www.scribd.com/full/12345678?access_key=r19e19d9g5g4 The access key (bolded) is the part after "access_key="
So in the code for such link would be the following:
[scribd]12345678;r19e19d9g5g4[/scribd]
This might not be the best mycode for scribd but it works.
Title: Scribd
Regular Expression: \[scribd\](.*?);(.*?)\[/scribd\]
Replacement:
<object height="600" width="100%" type="application/x-shockwave-flash" data="http://d1.scribdassets.com/ScribdViewer.swf" style="outline:none;" > <param name="movie" value="http://d1.scribdassets.com/ScribdViewer.swf"> <param name="wmode" value="opaque"> <param name="bgcolor" value="#ffffff"> <param name="allowFullScreen" value="true"> <param name="allowScriptAccess" value="always"> <param name="FlashVars" value="document_id=$1&access_key=$2&page=1&viewMode=list"> <embed src="http://d1.scribdassets.com/ScribdViewer.swf?document_id=$1&access_key=$2&page=1&viewMode=list" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" height="600" width="100%" wmode="opaque" bgcolor="#ffffff"></embed> </object>
In order for this code to work you will have to enter both - document and access key like this:
[scribd]doc_code;access_code[/scribd]
Document code is included in the scribd url after this part http://www.scribd.com/doc/ An example (the document code is in bold): www.scribd.com/doc/12345678/Some-Random-Document-Title
The access key can be found by pressing on Embed/Share button while viewing the document on scribd. Then choose embed option. In the box that appears you'll see link under "Share Fullscreen URL". For example www.scribd.com/full/12345678?access_key=r19e19d9g5g4 The access key (bolded) is the part after "access_key="
So in the code for such link would be the following:
[scribd]12345678;r19e19d9g5g4[/scribd]
This might not be the best mycode for scribd but it works.