» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 60
1 members and 59 guests
akunamat
Most users ever online was 611, 03-21-2008 at 10:10 PM.
» .::.
Web Hosting - web hosting, dedicated servers and web design services
Online Degree - search for 1000+ online degrees, online colleges & online universities.
Tattoo - we are a group of tattoo enthusiasts
Gexa Energy - your absolute best choice in electric service
Texas electricity - save on electric rates
Football Betting - best nfl betting promotions at sportsbook.com.
Oral Chelation - initial cleansing of your veins & arteries
Portatiles - Ofertas en Ordenadores y Portatiles. Increibles Ofertas DELL.

Register Now! Contact Us

About this Page
This is a discussion on Simple module creation? within the Nuke 6.5 to 6.9 - Modules forums, part of the PHP-Nuke 6.5 to 6.9 category; Hello, I am fairly new to the Nuke scene and would like to know if there is a relatively easy ...



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

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-28-2003, 12:50 PM
Junior Member
 
Join Date: May 2003
Posts: 7
Simple module creation?
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
  #2 (permalink)  
Old 05-28-2003, 01:14 PM
Junior Member
 
Join Date: May 2003
Posts: 7
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
  #3 (permalink)  
Old 05-28-2003, 01:47 PM
Senior Member
 
Join Date: Sep 2002
Posts: 2,905
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
  #4 (permalink)  
Old 05-28-2003, 02:15 PM
Junior Member
 
Join Date: May 2003
Posts: 7
Sweet, thank you, it worked perfectly.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 05-28-2003, 02:18 PM
Senior Member
 
Join Date: Sep 2002
Posts: 2,905
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 05:36 AM
module creation question reino4 Site design 3 05-20-2003 03:17 PM
KISGB (keep it simple guest book) v5.0 Module Martin Purged Topics 0 01-20-2003 09:14 AM
my newest creation... ReNeGaDe Showoff 0 01-17-2003 11:06 PM


All times are GMT -5. The time now is 07:12 AM.


Design by Vjacheslav Trushkin, color scheme by ColorizeIt!.

LinkBacks Enabled by vBSEO 3.1.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