Plugin Directory

Changeset 863629


Ignore:
Timestamp:
02/23/2014 08:13:27 PM (12 years ago)
Author:
ericboles
Message:

Tweaked Versions

Location:
scribd-doc-embedder/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • scribd-doc-embedder/trunk/readme.txt

    r863625 r863629  
    1818embed shortcode provided in Jetpack by Wordpress.com
    1919
    20 [scribd-doc] Shortcode:
     20**[scribd-doc]** Shortcode:
    2121
    2222* 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"]
    2425
    25 [scribd-url] Shortcode:
     26**[scribd-url]** Shortcode:
    2627
    2728* 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"]
    2931
    30 Both shortcode supports many other parameters provided by the Scribd API:
     32Both shortcodeS supports many parameters provided by the Scribd API:
    3133
    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)
    3841
    3942Note: You will need a Scribd account and a Scribd API key for this plugin to work.
     
    5457= How do I get a Scribd Publisher Key? =
    5558
    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.
     59You 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
     63Be sure you’re not prepending your Document Keys or Publisher ID with “key-“ or “pub-“.
    5864
    5965== Screenshots ==
  • scribd-doc-embedder/trunk/scribd_doc.php

    r863621 r863629  
    105105$output .= "<div id='embedded_doc_".$instance_count."'><p>Loading...</p></div><script type='text/javascript'>
    106106  var url = '".$url."';
    107   var pub_id = '".$pubid."';
     107  var pub_id = 'pub-".$pubid."';
    108108  var scribd_doc = scribd.Document.getDocFromUrl(url, pub_id); 
    109109  var onDocReady = function(e){
Note: See TracChangeset for help on using the changeset viewer.