vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Mini Mods - Show Other Web Pages Dynamic Content In Your Add Space (https://vborg.vbsupport.ru/showthread.php?t=277812)

camoit 01-30-2012 11:00 PM

Show Other Web Pages Dynamic Content In Your Add Space
 
1 Attachment(s)
Works with 4.1.11
It has taken me some time to find a good I-Frame code to use that will show a certain area of another web page. (I'm not a coder nor do I clam to be) Lets say you have an advertiser that pays you for space on your site, and they are always changing there content. So they call you up and want you to change the the way the add looks. Well with this little I-Frame code you can point to there site and take just the area they are always changing or the part you want to show in your add space. Now they can change the add at any time they want. with out bothering you.

Just take this code and place it in the HTML area of your add space. You can adjust the size of the window and location on the fly to get it just the way you want.
Easy install because it's just copy and paste.

Copy the code below and paste it in your new add space using your add space manager. If the size is to big your board will not display it, so make it smaller. The size is currently set to work in the add space below the navbar. (It's the size I'm currently using)

To see it in action just go to my board. It's just below the Navbar. It's the "Currently Playing " and it changes all the time automatically, and over 480 times per day.

Things to play with.
Change the title, or remove it.
The first width and height is the overall size of the window.
The next width and height is the location on the in the other page that will be displayed.
Last is near the bottom. You will need to put in the URL of the page you want to show.
Thats it copy and paste, your done.
Enjoy............................................. .................................................. ....



<html>
<head>
<title>Your Title Here</title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" >
<style type="text/css">
#outerdiv
{
width:790px;
height:240px;
overflow:hidden;
position:relative;
}

#inneriframe
{
position:absolute;
top:-160px;
left:-318px;
width:1270px;
height:1200px;
}
</style>
</head>
<body>
<div id='outerdiv'>
<iframe src="http://www.The Target Url Here" id='inneriframe' scrolling=no></iframe>
</div>
</body>
</html>


---------------------------------------------------------------------------------------------------

I added a .txt download for the people that want it in note pad.

htscpl 01-31-2012 08:32 PM

I am using 3.8.xx but it looks like this should work on it also since it is html inserted... just need to go thru templates.

I'll try it and let you know.

camoit 01-31-2012 11:16 PM

Please do. I would like to know how it works out for you. One thing you can change is near the bottom. That is scrolling=no to yes. That will allow the hole page to be seen in the I-Frame window.

ProFifaLeagues 02-01-2012 07:10 AM

Nice idea,Is there a way to get these details easy??
(The next width and height is the location on the in the other page that will be displayed.)

camoit 02-03-2012 04:08 AM

Quote:

Originally Posted by rammieone (Post 2294884)
Nice idea,Is there a way to get these details easy??
(The next width and height is the location on the in the other page that will be displayed.)

I'm not sure sure what you meant by : Is there a way to get these details easy??

Yes on the second width and height, that is the area the I frmae will target.
I just ran across this code on page 9837 while googling I-Frames and it worked,,,,,.... :)


All times are GMT. The time now is 10:16 AM.

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.01091 seconds
  • Memory Usage 1,724KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete