osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

Parse error with Birthday Contrib

This is a discussion on Parse error with Birthday Contrib within the osCMax v2 Customization/Mods forums, part of the osCMax v2.0 Forums category; I have made the necessary changes to the files and uploaded the birthday.php file, but get this error... Parse error: ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Customization/Mods

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 11-18-2006, 05:15 PM
Active Member
 
Join Date: Nov 2002
Location: Sydney
Posts: 129
Thanks: 12
Thanked 0 Times in 0 Posts
Rep Power: 7
ozstar is on a distinguished road
Default Parse error with Birthday Contrib

I have made the necessary changes to the files and uploaded the birthday.php file, but get this error...

Parse error: syntax error, unexpected ')' in /home/starreco/public_html/catalog/admin/includes/boxes/customers.php on line 34

Below is what is in the original admin/customers.php, the install instructios for that part of it, and the finsihed changes to the OsMax file.

Any help please. Tried a few things but all I do is get the error to another line.

Original admin/includes/boxes/customers.php file

Quote:
//Admin begin
// '<a href="' . tep_href_link(FILENAME_CUSTOMERS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CUSTOMERS_CUSTOMERS . '</a><br>' .
// '<a href="' . tep_href_link(FILENAME_ORDERS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CUSTOMERS_ORDERS . '</a>');
tep_admin_files_boxes(FILENAME_CUSTOMERS, BOX_CUSTOMERS_CUSTOMERS) .
tep_admin_files_boxes(FILENAME_ORDERS, BOX_CUSTOMERS_ORDERS));
//Admin end

Instructions say..

Quote:
In admin/includes/boxes/customers.php

FIND:
'<a href="' . tep_href_link(FILENAME_ORDERS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CUSTOMERS_ORDERS . '</a>');

REPLACE with:
'<a href="' . tep_href_link(FILENAME_ORDERS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CUSTOMERS_ORDERS . '</a><br>' .
'<a href="' . tep_href_link(FILENAME_BIRTHDAY, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CUSTOMERS_BIRTHDAY . '</a>');
Resulting file...

Quote:
//Admin begin
// '<a href="' . tep_href_link(FILENAME_CUSTOMERS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CUSTOMERS_CUSTOMERS . '</a><br>' .
//
/* '<a href="' . tep_href_link(FILENAME_ORDERS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CUSTOMERS_ORDERS . '</a>'); */


'<a href="' . tep_href_link(FILENAME_ORDERS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CUSTOMERS_ORDERS . '</a><br>' .
'<a href="' . tep_href_link(FILENAME_BIRTHDAY, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CUSTOMERS_BIRTHDAY . '</a>');

tep_admin_files_boxes(FILENAME_CUSTOMERS, BOX_CUSTOMERS_CUSTOMERS) .
tep_admin_files_boxes(FILENAME_ORDERS, BOX_CUSTOMERS_ORDERS));
//Admin end
But I get this answer..

Quote:
Parse error: syntax error, unexpected ')' in /home/starreco/public_html/catalog/admin/includes/boxes/customers.php on line 34
Line 34 is
tep_admin_files_boxes(FILENAME_ORDERS, BOX_CUSTOMERS_ORDERS));


Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 11-21-2006, 12:14 AM
jpf's Avatar
jpf jpf is offline
Moderator

 
Join Date: Sep 2003
Location: Manitoba, Canada
Posts: 1,808
Thanks: 5
Thanked 105 Times in 91 Posts
Rep Power: 12
jpf is a name known to alljpf is a name known to alljpf is a name known to alljpf is a name known to alljpf is a name known to alljpf is a name known to all
Default RE: Parse error with Birthday Contrib

Line 34 is
tep_admin_files_boxes(FILENAME_ORDERS, BOX_CUSTOMERS_ORDERS));

S/B:
tep_admin_files_boxes(FILENAME_ORDERS, BOX_CUSTOMERS_ORDERS);

YES - you DO have an unexpected ')' in /home/starreco/public_html/catalog/admin/includes/boxes/customers.php on line 34


Simple typo error that is all!

Good luck
__________________
JPF - osCMax Fourm Moderator
Try out our osCMax at: Live Catalog Demo
Limited access Admin: Live Admin Demo
Feel free to add products they way you want and then purchase them -=+=- Sorry nothing will be billed or shipped!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 11-21-2006, 02:44 AM
Active Member
 
Join Date: Nov 2002
Location: Sydney
Posts: 129
Thanks: 12
Thanked 0 Times in 0 Posts
Rep Power: 7
ozstar is on a distinguished road
Default RE: Parse error with Birthday Contrib

Thank you !

You know, I thought I had tried that but obviously didn't.

You're a charm thanks again!

It's a cute little mod too!

oz
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
Closed Thread

Thread Tools

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
Parse error: parse error, unexpected T_NEW, expecting ')' oscnoob osCMax v1.7 Discussion 0 04-02-2005 02:27 PM
Parse error help brt osCommerce 2.2 Installation Help 3 12-31-2004 02:47 PM
New Installation Parse error: parse error, unexpected T_STRI Anonymous osCMax v1.7 Installation 5 07-09-2004 07:06 AM
Parse error: parse error for product_listing.php midwestwebsites osCMax v1.7 Discussion 1 09-16-2003 02:21 PM
Parse error: parse error, unexpected T_STRING? HELP... hanool osCommerce 2.2 Modification Help 1 09-10-2003 11:38 AM


All times are GMT -8. The time now is 02:56 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax