BBCode for prettyphoto iframe to chosen site

Modifications for phpBB3.
Try the Mods here and share Your own Mods
Forum rules
You dont have to use ModX or make your mod AutoMod compatible. A simple textfile is fine
But if you post Mods here You also have to give support

BBCode for prettyphoto iframe to chosen site

Post by Martin_K »

Prettyphoto's iFrame is pretty cool. It doesn't scroll along with the page as highslide iFrame does, and all links work within the iFrame.

If you want to have a popup link this is how to do it. In this example I trust the site trusted-site.com (you give the base URL of the site here and add the rest of the link in as below):

In ACP go to posting tab to create a new BBCode.

BBCode usage

Code: Select all

[iftrusted={TEXT}]{LOCAL_URL}[/iftrusted]
HTML replacement

Code: Select all

<a href="http://www.trusted-site.com/{LOCAL_URL}?iframe=true&width=100%&height=100%" rel="prettyPhoto[iframes]">{TEXT}</a>
Help line

Code: Select all

Prettyphoto iframe link to truste-sited.com - paste in URL after [i]trusted-site.com/[/i]
trusted-site.com is a made up site, put the root URL of the site you want to have links work as iFrame.

You must have the latest prettyphoto installed to get this BBCode to work with the latest version of jquery.

http://www.no-margin-for-errors.com/pro ... box-clone/

Stoker has the Prettyphoto Attachment mod on this site.