WordPress.org

Ready to get started?Download WordPress

Forums

Google Doc Embedder
Open it New Tab (3 posts)

  1. muhammadirfanghori
    Member
    Posted 1 year ago #

    [gview file="http://www.free-bucket.info/055-KB-Black-Sun-Dec-2012.pdf"]
    i want to open this book on newtab
    how can i do it
    PLease help me

    Thanks & Regards,
    Muhammad Irfan Ghori

    http://wordpress.org/extend/plugins/google-document-embedder/

  2. kcrao.bsnl@gmail.com
    Member
    Posted 1 year ago #

    this is what i usually do to get doc in a new tab ...

    step 1: create --> viewer.php and paste the following code

    <html>
    <title>
    Doc Downloader
    </title>
    <body>
    	<center><b><a href="<?php echo $_GET["url"]?>">Download This Document </a></center><b>
    
    	<iframe src="http://docs.google.com/viewer?url=<?php echo $_GET["url"]?>&hl=&embedded=true" class="gde-frame" style="width:100%; height:110%; border: none;" scrolling="no"></iframe>
    
    </body>
    </html>

    Step 2: place the following code where ever you want

    <a href="http://www.YOURWEBSITE.com/PATHtoFILE/viewer.php?url=http://www.YOURWEBSITE/filename.pdf"  target="_blank">Click here to view </a>

    Hope this helps you

  3. k3davis
    Member
    Plugin Author

    Posted 1 year ago #

    muhammad,

    The full screen viewer can open in a new tab without any special code. Is this not what you want?

    Kevin

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags