Nukemods Forum  
» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 76
6 members and 70 guests
danansceclasqe6, hypye4notherape, lnkmastes, pilgrlowlf7spea, ral4yqkeighqtx5, watcy5gerp
Most users ever online was 611, 03-21-2008 at 11:10 PM.
» .::.
tattoo fonts
http://www.checkoutmyink.com/category/tattoo-fonts-tattoo

Go Back   Nukemods Forum > PHP-Nuke 6.5 to 6.9 > Nuke 6.5 to 6.9 - Modules

Reply
 
LinkBack Thread Tools Display Modes
Simple module creation?
Old
  (#1 (permalink))
Junior Member
 
Status: Offline
Posts: 7
Join Date: May 2003
Simple module creation? - 05-28-2003, 01:50 PM

Hello, I am fairly new to the Nuke scene and would like to know if there is a relatively easy way to create a module. I don't need any database interaction or language features, just a page to display a CGI script.

Any help appreciated.
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#2 (permalink))
Junior Member
 
Status: Offline
Posts: 7
Join Date: May 2003
05-28-2003, 02:14 PM

Ahh, I stumbled across the module creator, and followed all the steps, however, I get the following error when accessing it:

Code:
Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in /home/rsrlnet/public_html/community/modules/cargarage/index.php on line 27
Here is the code im using:

Code:
<?php
#### Generated by Module Creator - By Disipal site (www.disipal.net) ####
if (!eregi("modules.php", $PHP_SELF)) {
   die ("You can't access this file directly...");

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

include("header.php");
$index = 0;
OpenTable();
echo"<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border-collapse: collapse\" width=\"723\" id=\"AutoNumber14\">"
  . "  <tr> "
  . "    <td background=\"images/main_mdlbackg.gif\" class=\"fs1pt\"><font face=\"Verdana, Arial, Helvetica\">&</font><font face=\"Verdana, Arial, Helvetica\"> "
  . "      <p align=\"center\" style=\"margin-top: 0\"> <font color=\"#FCD096\" size=\"1\">& "
  . "        <iframe name=\"I1\" src=\"http://www.rsrl.us/garage.htm\" width=\"480\" height=\"381\">Your "
  . "        browser does not support inline frames or is currently configured not "
  . "        to display inline frames.</iframe>"
  . "        </font></p>"
  . "      <p align=\"center\" style=\"margin-top: 0\">&</p>"
  . "      </font></td>"
  . "  </tr>"
  . "</table>"
  . ";
CloseTable();
include("footer.php");

?>
Line 27 is the include("footer.php")

Any thoughts?
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#3 (permalink))
Senior Member
 
Status: Offline
Posts: 2,905
Join Date: Sep 2002
05-28-2003, 02:47 PM

Try this

Code:
<?php
#### Generated by Module Creator - By Disipal site (www.disipal.net) ####
if (!eregi("modules.php", $PHP_SELF)) {
   die ("You can't access this file directly...");

}
require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));
get_lang($module_name);
include("header.php");
$index = 0;
OpenTable();
echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border-collapse: collapse\" width=\"723\" id=\"AutoNumber14\">"
  	. "<tr>"
  	. "<td background=\"images/main_mdlbackg.gif\" class=\"fs1pt\"><font face=\"Verdana, Arial, Helvetica\">&</font><font face=\"Verdana, Arial, Helvetica\">"
  	. "<p align=\"center\" style=\"margin-top: 0\"><font color=\"#FCD096\" size=\"1\">& "
  	. "<iframe name=\"I1\" src=\"http://www.rsrl.us/garage.htm\" width=\"480\" height=\"381\">Your "
  	. "browser does not support inline frames or is currently configured not "
  	. "to display inline frames.</iframe>"
  	. "</font></p>"
  	. "<p align=\"center\" style=\"margin-top: 0\"></p>"
  	. "</font></td>"
  	. "</tr>"
  	. "</table>"
  	. "";
CloseTable();
include("footer.php");

?>
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#4 (permalink))
Junior Member
 
Status: Offline
Posts: 7
Join Date: May 2003
05-28-2003, 03:15 PM

Sweet, thank you, it worked perfectly.
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#5 (permalink))
Senior Member
 
Status: Offline
Posts: 2,905
Join Date: Sep 2002
05-28-2003, 03:18 PM

Cool :wink:

Glad I could help.

mikem
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Simple module need help to do it right osward Nuke 6.5 to 6.9 - Modules 4 07-20-2003 06:36 AM
module creation question reino4 Site design 3 05-20-2003 04:17 PM
KISGB (keep it simple guest book) v5.0 Module Martin Purged Topics 0 01-20-2003 10:14 AM
my newest creation... ReNeGaDe Showoff 0 01-18-2003 12:06 AM




vBulletin Skin developed by: vBStyles.com


LinkBacks Enabled by vBSEO 3.3.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31