You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 53 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Need links to external sites to open in center of my page [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
RebelMinion
Nuke Cadet
Nuke Cadet


Joined: Dec 23, 2005
Posts: 5


PostPosted: Thu Mar 30, 2006 1:57 am Reply with quoteBack to top

Howdy,

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;

/*$theme="DeepBlue";
$go_to_address1="http://www.schoolmatters.com/";

$go_to_address=rawurldecode($go_to_address1);
include("header.php");

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
Find all posts by RebelMinionView user's profileSend private messageAIM AddressYahoo MessengerICQ Number
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12397


PostPosted: Thu Mar 30, 2006 12:42 pm Reply with quoteBack to top

What version are you using? Has it been Patched?
Enabled error reporting and checked your error log?

_________________
Helping those that help themselves
Read FIRST or DIE!

"Fighting is terrible, but not as terrible as losing the will to fight."
Star Wars Rebellion Network - Need Help? Evaders Squadron Coding
Find all posts by Evaders99View user's profileSend private messageVisit poster's websiteAIM Address
BillTheCat
Private
Private


Joined: Jul 18, 2003
Posts: 35


PostPosted: Sat Apr 08, 2006 6:58 am Reply with quoteBack to top

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
Find all posts by BillTheCatView user's profileSend private message
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
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



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.352 Seconds - 288 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::