Sorry if this is answered elsewhere, I did several search variations, and could not find anything that looked like it dealt with this.
The need is pretty simple. I have created a Menu, in that menu I have links to external websites. I want those external websites to open in the center of my website.
I have tried creating a module for each link as follows:
Code:
<?php
if (!eregi("modules.php", $_SERVER['PHP_SELF'])) {
die ("You can't access this file directly...");
}
if(!IsSet($mainfile)) { include ("mainfile.php"); }
$index=0;
OpenTable();
echo "<center><h4><a href=\"index.php\">Click to close.</a></h4></center>";
echo "<iframe SRC=\"".$go_to_address."\" width=\"100%\" height=\"1200\"
framespacing=0 frameborder=no border=0 scrolling=auto></iframe>";
echo "<br><center>NB. Using iframes!</center><br>";
CloseTable();
include("footer.php");
die;
?>
This did not work. It resulted in a blank white page. No error messages of any kind, just the blank page. Note that I tried it with the theme line both commented out and active.
I tried a couple of other methods that were suggested elsewhere, but they failed as well... in the same way.
Any suggestions?
This would seem like a great module for someone to make. Where admins could enter URLs they would want to link to. It could let the Admin determine whether to open the URL in a new window or in the center... or anywhere else for that matter.
Anyway, any help is appreciated.
Thanks,
R
Evaders99 Site Admin
Joined: Aug 17, 2003
Posts: 12397
Posted:
Thu Mar 30, 2006 12:42 pm
What version are you using? Has it been Patched?
Enabled error reporting and checked your error log?
Depending on your service providers installation, you may need to add this line to your .htaccess file:
Code:
php_value allow_url_fopen on
I have urls opening in my site (Moreover.com stuff) and it works fine. Note that I did have to create a custom block to get it to display properly but that was pretty basic.
_________________ The more I know about Windoze...
The more I LOVE Linux!!!
Bill Catz
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