• Resolved ajnajao

    (@ajnajao)


    i want to add a shortcode in the dflip shortcode . like below.

    [dflip source=[amazon_s3 bucket=booksinpdf object=private/wp-content/uploads/2021/05/21113858/RaviJayagopal.pdf] type=”button”]Button[/dflip]

    i know the proper format, that is as below
    [dflip source=url type=”button”]Button[/dflip]

    But i want to execute shortcode within dflip shortcode so that url will be hidden for all the public even in the “page source”.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author deip

    (@deip)

    Hi,
    We understand that you want to hide the url. But we doubt the url will be visible in the final output. In short, if the plugin can load the PDF file, user can too! That’s a shortcoming of using PDF.js as rendering engine.

    For testing try without dflip shortcode and use HTML.

    <div class="_df_thumb" source="[amazon_s3 bucket=booksinpdf object=private/wp-content/uploads/2021/05/21113858/RaviJayagopal.pdf] > Open FLipbook</div>

    https://dearflip.com/responsive-html5-flipbook-jquery-plugin/#popup-examples

    Best Regards,
    Deip

    • This reply was modified 3 years, 6 months ago by deip.
    • This reply was modified 3 years, 6 months ago by deip.
    Thread Starter ajnajao

    (@ajnajao)

    1:i tried the HTML shortcode that you provided above.
    But the problem is: dflip not executing shortcode within the source. can you tell me the method how can i make shortcode to execute ?
    2: you was saying that ” But we doubt the url will be visible in the final output” but that will not be a problem, if above code will execute within source. because above shortcode will generate signed url every time when it will get executed between source. so there will be no problem if url will still visible, it will work only once.
    3: many users want to hide url from the public. Problem for every user will get solved. i will share the whole tutorial, how shortcode is working. that’s way kindly do something that shortcode within the above code get executed.

    Plugin Author deip

    (@deip)

    Hi,

    A shortcode inside a shortcode tag won’t work. So this doesn’t work:
    [dflip source=[amazon_s3 bucket=booksinpdf object=private/wp-content/uploads/2021/05/21113858/RaviJayagopal.pdf] type=”button”]Button[/dflip]

    Have you really tried that?

    so far we know that nested shortcode work if the shortcode are after the tags..
    [dflip [next_shortcode] ][/dflip] won’t work

    [dflip] [nextshortcode] [/dflip] works

    As workaround we tried setting the url in flipbook post (PDF source).
    https://[home_url]/wp-content/uploads/2021/05/glfw.pdf
    using plugin
    https://www.ads-software.com/plugins/basic-url-shortcodes/

    and changed the output of that shortcode to remove https:// so that it would work with dflip.

    Using a file handler as middlelayer is indeed a solution to stop unwanted PDF access. But the major issue had been IDM(Internet Download Manager), that can hijack the PDF in just one single attempt. There are ways to stop IDM too, but then partial loading stops!

    We had been through these, tried and gave up and yet we love to help someone who is trying to find a solution.

    Best Regards,
    Deip

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘nested shortcode in dflip’ is closed to new replies.