Open Url/html In Lightbox 'popup'

Hello,

I am hoping to be able to use the 'lightbox' feature to display a html page (ideally my newsletter subscription form) but I can't seem to get it to open anything other than an image.

If this is possible, I would like to be able to use this to open other html content as well.

If anyone has any ideas, that would be fab.

Thanks

Zoe

Current version: 4.1.4

Try default popup window:

{capture name="form_content"}
YOUR CONTENT HERE
{/capture}
{include file="common/popupbox.tpl" content=$smarty.capture.form_content text="sidebox header" link_text="click on me" id="form_content"}

Thank you so much - that has really helped to get me started.

I'm not a programmer and really have zero knowledge of the 'Smarty' language.

I have a couple more things I am hoping you might be able to assist with.

How might I change the link_text to display a clickable image?

Is it possible to use an iframe of sorts to link to a URL rather than enter the code?

Thanks again

Zoe

Sorry I should have tested some more before asking about the 'iframe' - I've managed to make that work quite easily however I have stumbled into the issue of not knowing how to force the pop up window to be a certain size - essentially needing to force the 'height' of the window.

How might I change the link_text to display a clickable image?

In this case you can use the code of the popupbox.tpl file and replace {$link_text} with the required image. So the code should be similar to:


YOUR CONTENT HERE

Sorry I should have tested some more before asking about the 'iframe' - I've managed to make that work quite easily however I have stumbled into the issue of not knowing how to force the pop up window to be a certain size - essentially needing to force the 'height' of the window.

I am afraid, there is no easy way to do it

I used your instructions to create a popup on my page, but it does not work, you know why?
On this page there are pictures with the popup
https://www.cartucce.com/come_resettare_il_tamburo_brother.htm

I see several javascript errors on this page. Solve them at first. Most possibly it causes the problem

solve, thank you!

We were glad to help you!