MAKING A Rules MODULE for my nuke site

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   MAKING A Rules MODULE for my nuke site
PrinceArtist
CZ Newbie
PrinceArtist has been a member for over 20 year's 20 Year Member
uk.gif
Occupation: Student
Age: 41
Gender: Male
Fav. Sports Team: Liverpool
Website:
Status: Offline
Joined: Oct 27, 2004
0.00 posts per day
Posts: 17
Points: 2,324
 Yahoo Messenger MSN Messenger 
Hiya guys im new to the whole phpNUKE etc and this might seem like a joke question to alot but its not LOL> I was wondering. Is there a way i can make my own modules for my clan website. Im changing over from a html to a nuke site and im wanting the clans rules page in a module. It there a way i can type out the rules in html format and have it put in a module?? or how would i get the rules to come up in a module and the name rules in the modules block? Please help
Thanks alot icon_biggrin.gif



Back to top Reply with quote
#2   re: MAKING A Rules MODULE for my nuke site
jcb
CZ Active Member
 Codezwiz Site Donator
uk.gif
Occupation: Soldier
Age: 49
Gender: Male
Fav. Sports Team: England
Status: Offline
Joined: Oct 20, 2003
0.02 posts per day
Posts: 135
Points: 7,618
   
Hi m8,

Create a php file called index and add the following:


<?php


if (!stristr($_SERVER['SCRIPT_NAME'], "modules.php")) {
    die ("You can't access this file directly...");
}

require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));
include("header.php");

OpenTable();
?>

<html>

YOUR HTML CODE IN HERE !!!!!!!!!!!!!!

</html>

<?php
CloseTable();
include ("footer.php");
?>


Add that to a folder named what ever you like and put the folder in to your modules directory. Activate it the normal way. Thats how I do it anyway.

Regards

Jon



_________________
PHP Super NooB
Back to top Reply with quote
#3   re: MAKING A Rules MODULE for my nuke site
PrinceArtist
CZ Newbie
PrinceArtist has been a member for over 20 year's 20 Year Member
uk.gif
Occupation: Student
Age: 41
Gender: Male
Fav. Sports Team: Liverpool
Website:
Status: Offline
Joined: Oct 27, 2004
0.00 posts per day
Posts: 17
Points: 2,324
 Yahoo Messenger MSN Messenger 
Thats great icon_biggrin.gif thanks alot, ill try and test with that now icon_biggrin.gif

tyyyyyyy



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