vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   BB Code Enhancements - iFrame BBCode (https://vborg.vbsupport.ru/showthread.php?t=170132)

Strike-Force.ne 06-14-2009 03:13 PM

Unfortunately I only come by here every couple of months, so I didn't catch it till now.

Strike-Force.ne 06-15-2009 04:54 PM

I have found that this change in code to allow the iFrame site to open to a new tab or window has caused the forward button to not work in IE8. Here is the fix for this:

Code:

<!-- Start iFrame by Strike-Force.net -->

<table border="0" bgcolor="#89723C" width="100%"> <tr> 

<td> <center> <head>

<script type="text/javascript">
function goBack()
  {
  window.history.back()
  }
</script>
</head>

<body>

<input type="button" value="Back" onclick="goBack()">  </body>

<head>
<script type="text/javascript">
function newDoc()
{
window.location.assign("{param}");
}
</script>
</head>

<body>
<input type="button" value="Visit Site" onClick="window.open('{param}')" /> </body>

<head>
<script type="text/javascript">
function goforward()
  {
  window.history.forward()
  }
</script>
</head>

<body>

<input type="button" value="Forward" onclick="history.go(1)"> </body> </center> </td> </tr> </table>

<iframe src="{param}" width="100%" height="500"> </iframe>

<!-- End iFrame by Strike-Force.net -->

If anyone experiences any issues please post up and I will look into it.

Shaheen 06-29-2009 05:40 AM

i think there is conflict between this hack and html archive hack

Strike-Force.ne 07-06-2009 01:12 PM

Quote:

Originally Posted by Shaheen (Post 1839354)
i think there is conflict between this hack and html archive hack

I found the problem, I had some redunant html that was causing the issue. I have tested this with IE8 and it works properly. I will test this for other browsers (IE7, FireFox, Safari, Chrome, Opera) later today to ensure it works for them as well.

Here is the updated code:

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 -->

If you notice any issues please post up with the browser and browser version you are using. You can view this updated version here: http://www.strike-force.net/showthread.php?t=280

Shaheen 07-07-2009 10:48 AM

Quote:

Originally Posted by Strike-Force.ne (Post 1843728)
I found the problem, I had some redunant html that was causing the issue. I have tested this with IE8 and it works properly. I will test this for other browsers (IE7, FireFox, Safari, Chrome, Opera) later today to ensure it works for them as well.

Here is the updated code:

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 -->

If you notice any issues please post up with the browser and browser version you are using. You can view this updated version here: http://www.strike-force.net/showthread.php?t=280

Thanks , its fixed

yotsume 07-14-2009 08:15 PM

Yes fixed in IE8 and works great in Firefox.

BTW I include a button on my editor for this BB code feature. Attached to this post is the icon I use for the button.

BirdOPrey5 05-17-2010 08:07 PM

Using the most recent code the back/forward buttons do not work with Google Chrome, it does work with IE8 and Safari. Any idea on Google Chrome compatibility? It's my favorite browser at the moment.

edit- if I go to more then 2 pages it seems to work...

hiker 05-18-2010 07:30 PM

I'm trying to use this mod to display a flickr photo slideshow, but flickr says it doesn't allow slideshows in iFrame. :mad:

Is there any way to mask this iframe code so a flickr slideshow will embed in a post? I've tried creating a custom bbcode just for flickr slideshows but I'm having no luck.

In fact with this code, it starts to display the slideshow for half a second and then the window below appears:

BirdOPrey5 05-18-2010 08:55 PM

Quote:

Originally Posted by bogley (Post 2039438)
I'm trying to use this mod to display a flickr photo slideshow, but flickr says it doesn't allow slideshows in iFrame. :mad:

Is there any way to mask this iframe code so a flickr slideshow will embed in a post? I've tried creating a custom bbcode just for flickr slideshows but I'm having no luck.

In fact with this code, it starts to display the slideshow for half a second and then the window below appears:

Hey, have you tried http://flickrslidr.com/ ? They seem to have a way of embedding flickr slideshows into web pages- maybe you can hack that into bbcode?

hiker 05-21-2010 03:24 AM

Quote:

Originally Posted by BirdOPrey5 (Post 2039484)
Hey, have you tried http://flickrslidr.com/ ? They seem to have a way of embedding flickr slideshows into web pages- maybe you can hack that into bbcode?

It looks like flickrslidr is using iframe as well, although I'm not sure how they're able to get away with it but I'm not. I'm still getting stopped by flickr on the iframe issue.


All times are GMT. The time now is 05:03 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01149 seconds
  • Memory Usage 1,750KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete