Home News Contact Us Forum About Us Demos Products F.A.Q.
Shopping Cart
You currently have 0 items in your cart.


Recent Events
  • 31/12/2023 New Year SALE

    We are glad to announce New Year SALE. 25% discount for all our extensions. Use NY24 coupon code. Hurry up the discount is valid till 7 January.

  • 21/11/2023 BLACK FRIDAY 23 is coming

    BIG SALE, 35% discount for all our extensions. Use BF23 coupon code. Hurry up the discount is valid till 27 November.


2Checkout.com, Inc. is an authorized retailer of goods and services provided by ARI Soft. 2CheckOut




Follow us on twitter



Welcome, Guest
Please Login or Register.    Lost Password?

shortcode to url
(1 viewing) (1) Guest
"ARI Fancy Lightbox" WordPress plugin
Go to bottomPage: 1
TOPIC: shortcode to url
#69350
shortcode to url 1 Year, 6 Months ago Karma: 0
Hi,
I use the wpdatatables plugin, and have a list of pdf files in one MySQL table as source like this:
Column A with the url of the pdf file (https:mysite.com/wp-content/uploads/file1.pdf)
Column B with the url of an image as the source for the link (https:mysite.com/wp-content/uploads/file1.png)
Column C as a virtual (calculated) column like <a href="https:mysite.com/wp-content/uploads/file1.pdf" target="_blank"> <img src=https:mysite.com/wp-content/uploads/file1.png"></a> (within the "taget=_blank" option enabled in fancy settings)
Column D as a virtual (calculated) column with shortcode like [fancybox url="https:mysite.com/wp-content/uploads/file1.pdf"] <<img src=https:mysite.com/wp-content/uploads/file1.png">[/fancybox]

None of these options opens the pdf in a lightbox. The pdf is open but in the browser window. Even with the "Convert PDF links" enabled.
BUT the format ""mysite.com/pypage/#!fancybox/eb682b69" seems to work !
My question is : how to get this generated "eb682b69" like code for the pdf files ? Can it be calculated ? And stored ? I didn't found any table with it...

Thank you.
Andres
The administrator has disabled public write access.
 
#69371
Re:shortcode to url 1 Year, 5 Months ago Karma: 746
Hello,

Is it possible to see final table on a page? We suppose data are loaded dynamically and some extra JS code is needed to attach lightbox.

You can also try to add "ari-fancybox" CSS class to links if use PRO version of "ARI Fancy Lightbox".

Regards,
ARI Soft
The administrator has disabled public write access.
 
#69409
Re:shortcode to url 1 Year, 5 Months ago Karma: 0
Hi,
Ok, now I'm opening the pdfs in a lightbox, but I don't like the "reader" or "renderer". It's my default I think from my browser, but I don't like the buttons, too many, etc. I wish to have a more simplistic one, with only pagination, scale, donload/print options.
I can have such "reader" if I embed the pdf in a page with a plugin, but not in lightbox.
Can this be done by code, or CSS, or any other way ?
The image is showing the more or less desired lightbox.
Thanks.
Regrads,
Andres
The administrator has disabled public write access.
 
#69456
Re:shortcode to url 1 Year, 5 Months ago Karma: 746
It is not possible to change UI of default browser's PDF viewer. Some customization is possible if you use PDFJS viewer (it can be selected in plugin settings).

Regards,
ARI Soft
Last Edit: 2023/02/24 12:44 By admin.
The administrator has disabled public write access.
 
Go to topPage: 1