need help with module editing the index.php file

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   need help with module editing the index.php file
JLAW
CZ Addict
usa.gif michigan.gif
Occupation: flooring store manager
Gender: Male
Website:
Status: Offline
Joined: Jul 09, 2003
0.06 posts per day
Posts: 471
Points: 7,754
 Yahoo Messenger MSN Messenger 
hello i have been using telli's iframe code


<?php

/********************************************************************/
/*  Iframe Addon 1.6                                                */
/*                                                                  */
/*    Copyright (c) 2002 by Francisco Burzi                         */                           
/*    http://phpnuke.org                                            */
/*                                                                  */
/*    php Iframe Addon 1.6 - Copyright (c) 2002-2004 by Telli       */
/*    Updated 9-20-04                                               */
/*    http://codezwiz.com                                           */
/*    if you need any help http://codezwiz.com/forums.html          */
/********************************************************************/

if (!eregi("modules.php", $_SERVER['SCRIPT_NAME'])) {
   die ("You can't access this file directly...");
    }
   
///////////////////////////////////////////////
$index = 1; // 0 right side off
$height = 600;
$iframescreen = 'www.google.com'; // Must be [ Register or login to view links on this board. ]
///////////////////////////////////////////////

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


to input my links but now i have a few i would like to add that i would perfer to open in there own window leaving the source site intact. So if anyone here could edit the code for me so it would still be the index.html file and open in a new browser window



_________________
[ Register or login to view links on this board.]
Back to top Reply with quote
#2   re: need help with module editing the index.html file
Dauthus
CZ Addict
 Codezwiz Site Donator
Dauthus has been a member for over 20 year's 20 Year Member
usa.gif illinois.gif
Age: 61
Gender: Male
Website:
Status: Offline
Joined: Mar 17, 2004
0.06 posts per day
Posts: 426
Points: 15,917
   
You can try this, but I didn't test it.

<?php

/********************************************************************/
/*  Iframe Addon 1.6                                                */
/*                                                                  */
/*    Copyright (c) 2002 by Francisco Burzi                         */                           
/*    http://phpnuke.org                                            */
/*                                                                  */
/*    php Iframe Addon 1.6 - Copyright (c) 2002-2004 by Telli       */
/*    Updated 9-20-04                                               */
/*    http://codezwiz.com                                           */
/*    if you need any help http://codezwiz.com/forums.html          */
/********************************************************************/

if (!eregi("modules.php", $_SERVER['SCRIPT_NAME'])) {
   die ("You can't access this file directly...");
    }
   
///////////////////////////////////////////////
$index = 1; // 0 right side off
$height = 600;
$iframescreen = 'www.google.com'; // Must be [ Register or login to view links on this board. ]
$target = '_blank'; // Must be either '_blank', '_self', '_parent', or '_top'.
///////////////////////////////////////////////

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




_________________
[ Register or login to view links on this board.]
Vivere disce, cogita mori
Back to top Reply with quote
#3   re: need help with module editing the index.html file
JLAW
CZ Addict
usa.gif michigan.gif
Occupation: flooring store manager
Gender: Male
Website:
Status: Offline
Joined: Jul 09, 2003
0.06 posts per day
Posts: 471
Points: 7,754
 Yahoo Messenger MSN Messenger 
TY ILL TRY IT LATER i soooo hope it works lol




_________________
[ Register or login to view links on this board.]
Back to top Reply with quote
#4   
JLAW
CZ Addict
usa.gif michigan.gif
Occupation: flooring store manager
Gender: Male
Website:
Status: Offline
Joined: Jul 09, 2003
0.06 posts per day
Posts: 471
Points: 7,754
 Yahoo Messenger MSN Messenger 
nope didnt work but thanks very much for trying if i find a nswer ill post it here if anyone has a sugestion i would live to try it




_________________
[ Register or login to view links on this board.]
Back to top Reply with quote
#5   
mjhufford
CZ Active Member
 Codezwiz Site Donator
mjhufford has been a member for over 20 year's 20 Year Member
usa.gif arkansas.gif
Occupation: IT Industry
Age: 47
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 
Try Telli's CZM module in the "Our Scripts" section of the site. You can add customer "extra links" that aren't modules that will open "_blank" on a new page by default.




_________________
"The pursuit of easy things makes men weak."
-David O. McKay
Back to top Reply with quote
#6   
JLAW
CZ Addict
usa.gif michigan.gif
Occupation: flooring store manager
Gender: Male
Website:
Status: Offline
Joined: Jul 09, 2003
0.06 posts per day
Posts: 471
Points: 7,754
 Yahoo Messenger MSN Messenger 
Ya I have That but it will only allow 1 catagory to open in new window telli had written a file for me to add in that worked great but i lost it in the site switch. I know he's very busy now so i was hoping there was another php master around here lol to help me out. The Main problem is i know it can be done and its driving me nuts to figure out how to do it




_________________
[ Register or login to view links on this board.]
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