|
» Online Users: 51 |
| 0 members and 51 guests |
| No Members online |
| Most users ever online was 611, 03-21-2008 at 11: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
|
|
|
|
|
|
|
|
|
|
|
Portatiles - Ofertas en Ordenadores y Portatiles. Increibles Ofertas DELL.
|
|
|
|
|
About this Page This is a discussion on Modules Creator is malfunctioning within the Purged Topics forums, part of the NM Staff category; Here is my code I generated from the modules creator. I followed the instructions to the "t" and ... |
|
 |
 |
|
 |

06-11-2003, 02:32 PM
|
|
Junior Member
|
|
Join Date: Jun 2003
Location: San Clemente, Ca. Orange
Posts: 137
|
|
|
Modules Creator is malfunctioning
Here is my code I generated from the modules creator. I followed the instructions to the "t" and here is what I get when I hit teh donations link in my navigation, oh and yes the module is activeated.
Error Message:
|
Quote:
|
|
Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in /home/jsminc/public_html/nuke/html/modules/Donations/index.php on line 163
|
Here is the code from my page:
|
Quote:
|
<?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 width=\"600\" border=\"0\" cellspacing=\"2\" cellpadding=\"0\">"
. " <tr> "
. " <td colspan=\"3\" background=\"file:///C|/Documents and Settings/Administrator/My Documents/My Pictures/cellpic3.gif\"><font color=\"#FFFFFF\" size=\"-1\" face=\"Verdana, Arial, Helvetica, sans-serif\">Donations "
. " are welcomed and Appreciated</font></td>"
. " </tr>"
. " <tr> "
. " <td height=\"634\" colspan=\"3\">"
. "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">"
. " <tr> "
. " <td height=\"212\" bgcolor=\"#333333\">"
. "
<font color=\"#CCCCCC\" size=\"-1\" face=\"Verdana, Arial, Helvetica, sans-serif\">Welcome "
. " to JSM-Inc COnsulting and Dynamic Design Donations center:</font></p>"
. " "
. "
<font color=\"#CCCCCC\" size=\"-1\" face=\"Verdana, Arial, Helvetica, sans-serif\">From "
. " here you can make various donation to my cause, making logos for "
. " free.& I say free because I have done so far over thrity logo "
. " designs and have yet to ask or receive anything.& Although "
. " it is not required for services I do appreciate the consideration "
. " and it helps me blow off the day job and focus on Nukers.</font></p>"
. "
<font color=\"#CCCCCC\" size=\"-1\" face=\"Verdana, Arial, Helvetica, sans-serif\">Thanks</font></p>"
. " "
. "
<font color=\"#CCCCCC\" size=\"-1\" face=\"Verdana, Arial, Helvetica, sans-serif\">Paycheck.
"
. "
"
. "
"
. " Donations Amounts
"
. " </font></p>"
. " <hr>"
. " <font color=\"#CCCCCC\" size=\"-1\" face=\"Verdana, Arial, Helvetica, sans-serif\"> "
. " </font>"
. "<table width=\"100%\" border=\"0\" align=\"left\" cellpadding=\"0\" cellspacing=\"0\" bordercolor=\"#CCCCCC\">"
. " <tr> "
. " <td height=\"35\" valign=\"top\" bgcolor=\"#000000\"> <form action=\"https://www.paypal.com/cgi-bin/webscr\" method=\"post\">"
. " <font color=\"#CCCCCC\" size=\"-1\" face=\"Verdana, Arial, Helvetica, sans-serif\">Thanks "
. " for the thought</font>
"
. " <input type=\"hidden\" name=\"cmd\" value=\"_xclick\">"
. " <input type=\"hidden\" name=\"business\" value=\"john@jsm-inc.com\">"
. " <input type=\"hidden\" name=\"item_name\" value=\"JSM-Inc Logo Generation Donation\">"
. " <input type=\"hidden\" name=\"item_number\" value=\"logo-1\">"
. " <input type=\"hidden\" name=\"amount\" value=\"1.00\">"
. " <input type=\"hidden\" name=\"no_note\" value=\"1\">"
. " <input type=\"hidden\" name=\"currency_code\" value=\"USD\">"
. " <input type=\"hidden\" name=\"tax\" value=\"0\">"
. " <input type=\"image\" src=\"http://jsm-inc.com/images/bttns/paypal_bttns/pay_1.gif\" border=\"0\" name=\"submit\" alt=\"Make payments with PayPal - it's fast, free and secure!\">"
. " </form></td>"
. " </tr>"
. " <tr> "
. " <td height=\"35\" valign=\"top\" bgcolor=\"#000000\"> <form action=\"https://www.paypal.com/cgi-bin/webscr\" method=\"post\">"
. " <font color=\"#CCCCCC\" size=\"-1\" face=\"Verdana, Arial, Helvetica, sans-serif\">Back "
. " so soon</font>
"
. " <input type=\"hidden\" name=\"cmd\" value=\"_xclick\">"
. " <input type=\"hidden\" name=\"business\" value=\"john@jsm-inc.com\">"
. " <input type=\"hidden\" name=\"item_name\" value=\"JSM-Inc Logo Generation Donation\">"
. " <input type=\"hidden\" name=\"item_number\" value=\"logo-2\">"
. " <input type=\"hidden\" name=\"amount\" value=\"2.00\">"
. " <input type=\"hidden\" name=\"no_note\" value=\"1\">"
. " <input type=\"hidden\" name=\"currency_code\" value=\"USD\">"
. " <input type=\"hidden\" name=\"tax\" value=\"0\">"
. " <input type=\"image\" src=\"http://jsm-inc.com/images/bttns/paypal_bttns/pay_2.gif\" border=\"0\" name=\"submit\" alt=\"Make payments with PayPal - it's fast, free and secure!\">"
. " </form></td>"
. " </tr>"
. " <tr> "
. " <td height=\"35\" valign=\"top\" bgcolor=\"#000000\"> <form action=\"https://www.paypal.com/cgi-bin/webscr\" method=\"post\">"
. " <font color=\"#CCCCCC\" size=\"-1\" face=\"Verdana, Arial, Helvetica, sans-serif\">I "
. " think I could get to know you
"
. " </font> "
. " <input type=\"hidden\" name=\"cmd\" value=\"_xclick\">"
. " <input type=\"hidden\" name=\"business\" value=\"john@jsm-inc.com\">"
. " <input type=\"hidden\" name=\"item_name\" value=\"JSM-Inc Logo Generation Donation\">"
. " <input type=\"hidden\" name=\"item_number\" value=\"logo-5\">"
. " <input type=\"hidden\" name=\"amount\" value=\"5.00\">"
. " <input type=\"hidden\" name=\"no_note\" value=\"1\">"
. " <input type=\"hidden\" name=\"currency_code\" value=\"USD\">"
. " <input type=\"hidden\" name=\"tax\" value=\"0\">"
. " <input type=\"image\" src=\"http://jsm-inc.com/images/bttns/paypal_bttns/pay_5.gif\" border=\"0\" name=\"submit\" alt=\"Make payments with PayPal - it's fast, free and secure!\">"
. " </form></td>"
. " </tr>"
. " <tr> "
. " <td height=\"35\" valign=\"top\" bgcolor=\"#000000\"> <form action=\"https://www.paypal.com/cgi-bin/webscr\" method=\"post\">"
. " <font color=\"#CCCCCC\" size=\"-1\" face=\"Verdana, Arial, Helvetica, sans-serif\">My "
. " wife likes you too</font>
"
. " <input type=\"hidden\" name=\"cmd\" value=\"_xclick\">"
. " <input type=\"hidden\" name=\"business\" value=\"john@jsm-inc.com\">"
. " <input type=\"hidden\" name=\"item_name\" value=\"JSM-Inc Logo Generation Donation\">"
. " <input type=\"hidden\" name=\"item_number\" value=\"logo-10\">"
. " <input type=\"hidden\" name=\"amount\" value=\"10.00\">"
. " <input type=\"hidden\" name=\"no_note\" value=\"1\">"
. " <input type=\"hidden\" name=\"currency_code\" value=\"USD\">"
. " <input type=\"hidden\" name=\"tax\" value=\"0\">"
. " <input type=\"image\" src=\"http://jsm-inc.com/images/bttns/paypal_bttns/pay_10.gif\" border=\"0\" name=\"submit\" alt=\"Make payments with PayPal - it's fast, free and secure!\">"
. " </form></td>"
. " </tr>"
. " <tr> "
. " <td height=\"35\" valign=\"top\" bgcolor=\"#000000\"> <form action=\"https://www.paypal.com/cgi-bin/webscr\" method=\"post\">"
. " <font color=\"#CCCCCC\" size=\"-1\" face=\"Verdana, Arial, Helvetica, sans-serif\">Come "
. " on over for a drink</font>
"
. " <input type=\"hidden\" name=\"cmd\" value=\"_xclick\">"
. " <input type=\"hidden\" name=\"business\" value=\"john@jsm-inc.com\">"
. " <input type=\"hidden\" name=\"item_name\" value=\"JSM-Inc Logo Generation Donation\">"
. " <input type=\"hidden\" name=\"item_number\" value=\"logo-20\">"
. " <input type=\"hidden\" name=\"amount\" value=\"20.00\">"
. " <input type=\"hidden\" name=\"no_note\" value=\"1\">"
. " <input type=\"hidden\" name=\"currency_code\" value=\"USD\">"
. " <input type=\"hidden\" name=\"tax\" value=\"0\">"
. " <input type=\"image\" src=\"http://jsm-inc.com/images/bttns/paypal_bttns/pay_20.gif\" border=\"0\" name=\"submit\" alt=\"Make payments with PayPal - it's fast, free and secure!\">"
. " </form></td>"
. " </tr>"
. " <tr> "
. " <td height=\"35\" valign=\"top\" bgcolor=\"#000000\"> <form action=\"https://www.paypal.com/cgi-bin/webscr\" method=\"post\">"
. " <font color=\"#CCCCCC\" size=\"-1\" face=\"Verdana, Arial, Helvetica, sans-serif\">Got "
. " you a room if you need one</font>
"
. " <input type=\"hidden\" name=\"cmd\" value=\"_xclick\">"
. " <input type=\"hidden\" name=\"business\" value=\"john@jsm-inc.com\">"
. " <input type=\"hidden\" name=\"item_name\" value=\"JSM-Inc Logo Generation Donation\">"
. " <input type=\"hidden\" name=\"item_number\" value=\"logo-50\">"
. " <input type=\"hidden\" name=\"amount\" value=\"50.00\">"
. " <input type=\"hidden\" name=\"no_note\" value=\"1\">"
. " <input type=\"hidden\" name=\"currency_code\" value=\"USD\">"
. " <input type=\"hidden\" name=\"tax\" value=\"0\">"
. " <input type=\"image\" src=\"http://jsm-inc.com/images/bttns/paypal_bttns/pay_50.gif\" border=\"0\" name=\"submit\" alt=\"Make payments with PayPal - it's fast, free and secure!\">"
. " </form></td>"
. " </tr>"
. " <tr> "
. " <td height=\"35\" valign=\"top\" bgcolor=\"#000000\"><font color=\"#CCCCCC\" size=\"-1\" face=\"Verdana, Arial, Helvetica, sans-serif\"> "
. " <form action=\"https://www.paypal.com/cgi-bin/webscr\" method=\"post\">"
. " <font color=\"#CCCCCC\" size=\"-1\" face=\"Verdana, Arial, Helvetica, sans-serif\">Hey "
. " Big Spender, you got a link for life</font>
"
. " <input type=\"hidden\" name=\"cmd\" value=\"_xclick\">"
. " <input type=\"hidden\" name=\"business\" value=\"john@jsm-inc.com\">"
. " <input type=\"hidden\" name=\"item_name\" value=\"JSM-Inc Logo Generation Donation\">"
. " <input type=\"hidden\" name=\"item_number\" value=\"logo_100\">"
. " <input type=\"hidden\" name=\"amount\" value=\"100.00\">"
. " <input type=\"hidden\" name=\"no_note\" value=\"1\">"
. " <input type=\"hidden\" name=\"currency_code\" value=\"USD\">"
. " <input type=\"hidden\" name=\"tax\" value=\"0\">"
. " <input type=\"image\" src=\"http://jsm-inc.com/images/bttns/paypal_bttns/pay_100.gif\" border=\"0\" name=\"submit\" alt=\"Make payments with PayPal - it's fast, free and secure!\">"
. " </form>"
. " </font></td>"
. " </tr>"
. " <tr>"
. " <td height=\"5\" valign=\"top\" background=\"images/cellpic3.gif\" bgcolor=\"#000000\">&</td>"
. " </tr>"
. " </table>"
. "
&</p>"
. "
&</p>"
. " </td>"
. " </tr>"
. " </table></td>"
. " </tr>"
. "</table>"
CloseTable();
include("footer.php");
?>
|
|

06-11-2003, 05:39 PM
|
|
Senior Member
|
|
Join Date: Sep 2002
Posts: 2,905
|
|
Did you use the Module Ctreator in the Nuke Tools?
If so, then go here and let Disipal know of your problem.
http://www.disipal.net/
mikem
|

06-11-2003, 06:43 PM
|
|
Junior Member
|
|
Join Date: Mar 2003
Posts: 21
|
|
Try this instead
|
Code:
|
if (!isset($mainfile)) { include("mainfile.php"); }
$index = 1;
include("header.php");
OpenTable();
?>
// Delete This Line And Add Your HTML Here!
<?php
CloseTable();
include("footer.php");
?> |
|

06-11-2003, 07:00 PM
|
|
Junior Member
|
|
Join Date: Jun 2003
Location: San Clemente, Ca. Orange
Posts: 137
|
|
OK I found the problem. I needed to comment out the include lang file int he top of the code.
|
Quote:
|
<?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();
|
It was trying to call it at the end of the lang_english.php file. It works great now. Now I need to figure out how I can open the maodule in the center block and still have the right blocks show up. Overall it is a great addition to my skills sets.
JM
http://www.jsm-inc.com
|
 |
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|