iframe help

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   iframe help
phptest
CZ Super Newbie
phptest has been a member for over 19 year's 19 Year Member
Status: Offline
Joined: Aug 22, 2004
0.01 posts per day
Posts: 58
Points: 3,076
   
Hi i use this iframe script and it works. But i would like it to make also the blocks at the left side disappear... So the iframe can use the entire width of the page.. Above it there will be links to home.. so it will be possible to return to the normal page.

Can you help out ?

<?php

/********************************************************************/
/* Iframe Addon 1.6 */
/* */
/* Copyright (c) 2002 by Francisco Burzi */
/* [ Register or login to view links on this board. ] */
/* */
/* php Iframe Addon 1.6 - Copyright (c) 2002-2004 by Telli */
/* Updated 4-03-04 */
/* [ Register or login to view links on this board. ] */
/* if you need any help [ Register or login to view links on this board. ] */
/********************************************************************/

if (!eregi("modules.php", $PHP_SELF)) {
die ("You can't access this file directly...");
}

///////////////////////////////////////////////
$index = 0; // 0 right side off
$height = 900;
$iframescreen = 'www.mywebsite/'; // Must be [ Register or login to view links on this board. ]
///////////////////////////////////////////////

include("header.php");
$iframe_block = "
<iframe border=\"0\" src=\"http://$iframescreen\" width=\"644\" height=\"$height\">
</iframe>";
if ($opi != "ds") {
opentable();
echo "$iframe_block";
closetable();
}
include("footer.php");
?>



Back to top Reply with quote
#2   re: iframe help
mjhufford
CZ Active Member
 Codezwiz Site Donator
mjhufford has been a member for over 19 year's 19 Year Member
usa.gif arkansas.gif
Occupation: IT Industry
Age: 46
Gender: Male
Fav. Sports Team: Da Bears.
Website:
Status: Offline
Joined: Jul 01, 2004
0.04 posts per day
Posts: 288
Points: 15,094
  MSN Messenger 
[ Register or login to view links on this board. ]

Look in theme.php for

blocks(left);


Replace with
if ($name=='ENTER YOUR IFRAME MODULE NAME HERE') {
    /* Don't display it. */
   }
   else {
    blocks(left);
   }


You can repeat this code for however many modules you want to have the left blocks hidden:
if ($name=='Forums') {
    /* Don't display it. */
   }
   else
    if ($name=='Members_List') {
    /* Don't display it. */
   }
   else
          if ($name=='My_eGallery') {
    /* Don't display it. */
   }
      else
          if ($name=='Private_Messages') {
    /* Don't display it. */
   }
   else {
    blocks(left);
   }


Then add $name to your global statement in the same file.

global $user, $banners, $sitename, $slogan, $cookie, $prefix, $dbi, $name;


Don't forget to make a backup before you start. Let me know if that works for you. You're also going to need a .com, .net, or whatever at the end of you iframe URL.

$iframescreen = 'www.mywebsite.COM'; // Must be [ Register or login to view links on this board. ]



_________________
"The pursuit of easy things makes men weak."
-David O. McKay
Back to top Reply with quote
#3   re: iframe help
phptest
CZ Super Newbie
phptest has been a member for over 19 year's 19 Year Member
Status: Offline
Joined: Aug 22, 2004
0.01 posts per day
Posts: 58
Points: 3,076
   
Thanks for the tips im gonna try thats.



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum