Page 1 of 1

BBCode for prettyphoto iframe to chosen site

Posted: 11 Apr 2013, 21:02
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.