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
Please help me what did i do wrong what do i need to do to make this right? please help me.
Sincerely Lorna
Fireboar Corporal
Joined: Dec 01, 2006
Posts: 64
Posted:
Sat Dec 30, 2006 4:39 am
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!
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