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, 557 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 - LINK DOESN"T WORK! HELP PLEASE! [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  This topic is locked: you cannot edit posts or make replies.printer-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
lorna
Nuke Cadet
Nuke Cadet


Joined: Dec 30, 2006
Posts: 1


PostPosted: Fri Dec 29, 2006 10:14 pm Reply with quoteBack to top

HELLO EVERYONE,

I seem to be having a problem with my php. I coded an html page (familynews.hmtl) to put on my php site. I uploaded the page(familynews.html) to a folder(folder name is "familynews") that i created in module folder. Than after that i went to "Block_module.php" and put in this code

content .="<strong><big>&middot;</big</strong>&nbsp;<a href=\"modules.php?name=$familynews\">$Family News</a><br>\n";

The link shows up on http://www.shehateonline.com but the links keeps saying "SORRY SUCH FILE DOESN"T EXIST" .

Please help me what did i do wrong what do i need to do to make this right? please help me.

Sincerely Lorna
Find all posts by lornaView user's profileSend private message
Fireboar
Corporal
Corporal


Joined: Dec 01, 2006
Posts: 64


PostPosted: Sat Dec 30, 2006 4:39 am Reply with quoteBack to top

Wrong place. This forum is clearly labelled "Posts about NukeCops.com Only". So what possible relevance is your problem to NukeCops?

But because the answer doesn't take much explaining, I'll tell you what you want to put anyway. Get rid of the "$" characters in the block file, then create an index.php in modules/familynews/ which goes with the correct PHP-Nuke guidelines. A file like this will do what you want I'd expect:
Code:
<?php
if (!eregi("modules.php", $PHP_SELF)){
  die ("You can't access this rows directly...");
}
require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));
get_lang($module_name);
include("header.php");
opentable();
echo "<iframe width=\"100%\" src=\"modules/".$module_name."/familynews.html\"></iframe>";
closetable();
include("footer.php");
?>


Not tested, but should work. Make sure you activate the module.

_________________
http://www.fantasy-pc.com/ - PHP-Nuke website with a growing community where you can talk about anything.

Want a version of PHP-Nuke with all the bells and whistles removed? PHP-Nuke Lite is for you!
Find all posts by FireboarView user's profileSend private messageVisit poster's website
Display posts from previous:      
Post new topic  This topic is locked: you cannot edit posts or make replies.printer-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.152 Seconds - 260 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::