• Resolved jrick

    (@jrick)


    Hi there,

    Just came across your WordPress plug-in, ARI Fancy Lightbox, and installed and activated it on my website. I even see the new “ARI Fancy Lightbox” item in the left sidebar. But I can’t figure out how to use the thing in a blog post.

    I want to use it to display a PDF. How do I do that?

    Thanks!

Viewing 15 replies - 1 through 15 (of 19 total)
  • Plugin Author arisoft

    (@arisoft)

    Hello

    The plugin attaches the lightbox to links automatically depends on configuration parameters on “ARI Fancy Lightbox” page. For example, if you want to open PDF links (link with .pdf file extension) into the lightbox, see “Integration -> PDF Files” parameters section on “ARI Fancy Lightbox -> Settings” page.

    BTW, “PRO” version supports ability to create specific links with lightbox effect via shortcode.

    Thread Starter jrick

    (@jrick)

    Thanks for your speedy reply!

    I checked the boxes for the following in Settings:

    * Convert PDF links

    * Local PDF files

    * External PDF files

    I also selected “iFrame” for “Local PDF viewer.”

    Now all I need to do is put the following line in a blog post?

    <a href="http://365.25e.myftpupload.com/wp-content/uploads/2018/04/How-to-Close-the-Client-Every-Time.pdf">

    Doesn’t seem to have any affect…

    Thanks again.

    • This reply was modified 8 years, 1 month ago by jrick.
    Plugin Author arisoft

    (@arisoft)

    Is it possible to see the problem anywhere?

    Thread Starter jrick

    (@jrick)

    Plugin Author arisoft

    (@arisoft)

    An incorrect HTML code is used for PDF link:

    <a href="http://365.25e.myftpupload.com/wp-content/uploads/2018/04/How-to-Close-the-Client-Every-Time.pdf"></p>
    <p>PDF.js Viewer Shortcode<br />
    <a href="http://365.25e.myftpupload.com/wp-content/plugins/pdfjs-viewer-shortcode/pdfjs/web/viewer.php?file=http://365.25e.myftpupload.com/wp-content/uploads/2018/04/How-to-Close-the-Client-Every-Time.pdf&download=false&print=false&openfile=false">View Fullscreen</a>

    Fix it to resolve the problem.

    Thread Starter jrick

    (@jrick)

    Hmm. What specific part of the code needs to be corrected?

    It seems the code you provided matches what I already have.

    Thank you.

    Plugin Author arisoft

    (@arisoft)

    At least the first <a> tag is not closed. Try the following code:

    <a href="http://365.25e.myftpupload.com/wp-content/uploads/2018/04/How-to-Close-the-Client-Every-Time.pdf">PDF.js Viewer Shortcode</a>
    <br />
    <a href="http://365.25e.myftpupload.com/wp-content/plugins/pdfjs-viewer-shortcode/pdfjs/web/viewer.php?file=http://365.25e.myftpupload.com/wp-content/uploads/2018/04/How-to-Close-the-Client-Every-Time.pdf&download=false&print=false&openfile=false">View Fullscreen</a>
    Thread Starter jrick

    (@jrick)

    Thanks.

    Good catch on the closing <a> tag. However, adding that merely turned the text into a link. Where’s the lightbox?

    Also, the code you provided pertains to another plug-in, not yours. To simplify things, here’s a new link, with only your plug-in:

    http://365.25e.myftpupload.com/2018/04/which-pdf-viewer-is-best-ari/

    Isn’t there supposed to be a lightbox viewer? After all, isn’t your plug-in called ARI Fancy Lightbox? πŸ™‚

    Thanks.

    Plugin Author arisoft

    (@arisoft)

    The page doesn’t contain a link to a PDF file. On init it contains only one link which is transformed to PDF viewer by a plugin (not “ARI Fancy Lightbox” plugin).

    “ARI Fancy Lightbox” can attach the lightbox to links to PDF files and then show them into the lightbox.

    Thread Starter jrick

    (@jrick)

    Sorry, I have no idea what this means… Can you clarify? Thank you.

    Plugin Author arisoft

    (@arisoft)

    OK, now we see the problem. The following scripts are loaded on the page:

    <script type="text/javascript" src="http://sm5.sitemeter.com/js/counter.js?site=sm5nostrawmen"></script>

    Browsers try to load it more than a minute and then it is failed. “ready” jQuery event is raised only after a minute and as result lightbox initialization is postponed. You can replace the code with the following one (or remove it):

    <script async type="text/javascript" src="http://sm5.sitemeter.com/js/counter.js?site=sm5nostrawmen"></script>

    Thread Starter jrick

    (@jrick)

    Thank you. I removed the SiteMeter code altogether, yet it doesn’t appear to have done anything; ARI Fancy Lightbox still isn’t working:

    http://365.25e.myftpupload.com/2018/04/which-pdf-viewer-is-best-ari/

    Plugin Author arisoft

    (@arisoft)

    It opens the lightbox with the PDF document for us when click by “Here’s my slide deck.” link. Checked it Google Chrome, FireFox and Safari browsers:

    http://i65.tinypic.com/2lb19hf.jpg

    Thread Starter jrick

    (@jrick)

    Ok. Thank you. It’s now working, which is great, but this isn’t what I expected.

    Plugin Author arisoft

    (@arisoft)

    Could you describe in more details expected result?

Viewing 15 replies - 1 through 15 (of 19 total)

The topic ‘How do I get this thing to work?’ is closed to new replies.