Version: 1.1, by Strike-Force.ne
Developer Last Online: Apr 2010
Category: BB Code Enhancements -
Version: 3.6.8
Rating:
Released: 02-09-2008
Last Update: 07-07-2009
Installs: 24
Re-useable Code Translations
No support by the author.
I went looking for iFrame BB Coding and came across several, but none really suited my needs or the needs of my members. In addition to this I noticed a common requested add on feature for this code by those who added it to their site, but I have yet to find anyone who filled that request.
This BB Code contains not only a button which allows the viewer to go to the site being displayed, but it also contains a "Back" and "Forward" button so the user can navigate the iFramed site without having to leave your site. This allows the user to decide whether the posted site is worth more of their time or not without forcing them to view it in order to go "back" or "forward".
This is my first attempt at any type of BB Code (I'm new to HTML), so go easy on me. This works for 3.6.8 but I won't be able to offer support for this.
To install this BB Code: AdminCP -> Custom BB Codes -> Add new BB Code
Title: iFrame
Tag: if
Replacement:
HTML Code:
<!-- Start iFrame by Strike-Force.net --><table border="0" bgcolor="#89723C" width="100%"><tr><td><br><center><head><script type="text/javascript">
function goBack()
{
window.history.back()
}
</script><input type="button" value="Back" onclick="goBack()"><script type="text/javascript">
function newDoc()
{
window.location.assign("{param}");
}
</script><input type="button" value="Visit Site" onClick="window.open('{param}')" /><script type="text/javascript">
function goforward()
{
window.history.forward()
}
</script><input type="button" value="Forward" onclick="history.go(1)"></head></center><br></td></tr></table><iframe src="{param}" width="100%" height="500"></iframe><!-- End iFrame by Strike-Force.net -->
Example: [if]http://www.google.com[/if]
Description: Places a site within a small framed window in a post.
Use {option}: No
Button Image: (button image is optional, and I don't use one personally)
I have also created a colored border around the buttons which can easily be changed to suit the color scheme of your site. This can be changed by changing the bgcolor value to whatever color you choose on this line:
actually, I think I may have found a way to function with that flickrslidr, thanks for the suggestion!
Back to this mod, I'm using it (successfully!) with picasaweb slideshows. Would there be any way to disable the X function, or the exit from within the slideshow so they CAN'T navigate from there? I'd like to come up with some sort or "exit=false" command or something so they can't exit the slideshow and browse the other picasaweb sets of that user.
You're welcome... if you got it working you should release it as a mod.
As for the picassa exit it's very unlikely you'll be able to disable the exit, picassa would have needed to be programmed with that option on google's side- the place to ask would be on a picassa forum as there are much more likely to be experts on the subject there... also would look for any picassa programming api info, maybe they've documented some extra features.
oops... nevermind on the picasaweb slideshow... They're just a little slower than Flickr to alert me they don't like embedding with iframe. It's disabled the next day, as Flickr's was disabled 1/2 second later. lol
I'll check the picasa forums, thanks for the advice.