BBCode for prettyphoto iframe to chosen site

Mods, snippets and styles postet and supported by the users
Forum rules
As the forum title says this is for User Contributions
Post a support request in this forum and you will be banned!
User avatar
Martin_K
BBCoder III
BBCoder III
Posts: 121
Joined: 02 Sep 2011, 09:13
BBCodes: 10
Favourite BBCode: textarea
Favourite MOD: Newsletter Add on
Location: London, UK

BBCode for prettyphoto iframe to chosen site

Post by Martin_K » 11 Apr 2013, 19:02

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.