Changeset 863629
- Timestamp:
- 02/23/2014 08:13:27 PM (12 years ago)
- Location:
- scribd-doc-embedder/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (2 diffs)
-
scribd_doc.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
scribd-doc-embedder/trunk/readme.txt
r863625 r863629 18 18 embed shortcode provided in Jetpack by Wordpress.com 19 19 20 [scribd-doc]Shortcode:20 **[scribd-doc]** Shortcode: 21 21 22 22 * Allows you to embed a document that has been uploaded to Scribd. 23 * Requires both the document ID and the document key: [scribd-doc doc="DOCID" key="KEY"] 23 * Requires both the document ID and the document key: 24 * [scribd-doc doc="DOCID" key="KEY"] 24 25 25 [scribd-url]Shortcode:26 **[scribd-url]** Shortcode: 26 27 27 28 * Allows you to create a player from a publicly accessible URL 28 * Requires both the document URL and your Scribd Publisher API key: [scribd-url url="FULL-URL-INCLUDING-HTTP://" pubid="YOUR-SCRIBD-PUBLISHER-ID"] 29 * Requires both the document URL and your Scribd Publisher API key 30 * [scribd-url url="FULL-URL" pubid="YOUR-SCRIBD-PUBLISHER-ID"] 29 31 30 Both shortcode supports many otherparameters provided by the Scribd API:32 Both shortcodeS supports many parameters provided by the Scribd API: 31 33 32 * width: Define the width of the viewer in pixels 33 * height: Define the height of the viewer in pixels 34 * page: Set a page number of the viewer to load on 35 * mode: Define the player mode (either "list" or "slideshow") 36 * share: Defines whether the share button in the toolbar is shown, overriding the default (either "true" or "false") 37 * seamless: If set to "true", puts the player into seamless mode (ONLY supported by scribd-doc) 34 * **width**: Define the width of the viewer in pixels 35 * **height**: Define the height of the viewer in pixels 36 * **page**: Set a page number of the viewer to load on 37 * **mode**: Define the player mode (either "list" or "slideshow") 38 * **share**: Defines whether the share button in the toolbar is shown, overriding the default (either "true" or "false") 39 * **seamless**: If set to "true", puts the player into seamless mode 40 (seamless is only supported by scribd-doc) 38 41 39 42 Note: You will need a Scribd account and a Scribd API key for this plugin to work. … … 54 57 = How do I get a Scribd Publisher Key? = 55 58 56 You will need a Scribd account and a Scribd API key for this plugin to work. You will see your Publisher key in your API settings 57 within your account after getting API access. 59 You will need a Scribd account and a Scribd API key for this plugin to work. You will see your Publisher key in your API settings within your account after getting API access. 60 61 = It doesn’t seem to be working. Am I doing something wrong? = 62 63 Be sure you’re not prepending your Document Keys or Publisher ID with “key-“ or “pub-“. 58 64 59 65 == Screenshots == -
scribd-doc-embedder/trunk/scribd_doc.php
r863621 r863629 105 105 $output .= "<div id='embedded_doc_".$instance_count."'><p>Loading...</p></div><script type='text/javascript'> 106 106 var url = '".$url."'; 107 var pub_id = ' ".$pubid."';107 var pub_id = 'pub-".$pubid."'; 108 108 var scribd_doc = scribd.Document.getDocFromUrl(url, pub_id); 109 109 var onDocReady = function(e){
Note: See TracChangeset
for help on using the changeset viewer.