hro2u Posted September 9, 2008 Share Posted September 9, 2008 # Access with Level Account (v. 2.2) for the Admin Area of osCommerce (MS2)# BACKGROUND: Hi guys, I have followed the install by the letter and the only additional additions to the code were in two files (catalog/admin/includes/boxes/tools.php and catalog/admin/includes/boxes/catalog.php) I have other contributions which have added lines to these files (example: PDF_Catalog and Cinesound Video and Audio) It might be a good thing to comment for users what to add to make the installation complete for these situations... Im not 100% sure I have done correctly in these two files, I have simply commented out like in the Access with Level Account addition (//) and added the last piece of code after all the commented lines... CURRENT CRITICAL ERROR: Problem (cant logon to OSc Admin): Parse error: syntax error, unexpected ';', expecting ')' in /home/ruiruish/public_html/admin/index.php on line 109 (i CANT FIND A ';', in these lines, there are several '; BUT WHICH ONE? Or can this be generated from a call from this file to one of the others)? This is from my index.php under Admin (line 100 to 109) // BOE Access with Level Account (v. 2.2a) for the Admin Area of osCommerce (MS2) 8 of 10 // comment out below line to disable this contribution 'access' => tep_admin_check_boxes('tools.php'), // EOE Access with Level Account (v. 2.2a) for the Admin Area of osCommerce (MS2) 8 of 10 'image' => 'tools.gif', 'href' => tep_href_link(FILENAME_BACKUP, 'selected_box=tools'), 'children' => array(array('title' => TOOLS_BACKUP, 'link' => tep_href_link(FILENAME_BACKUP, 'selected_box=tools')), array('title' => TOOLS_BANNERS, 'link' => tep_href_link(FILENAME_BANNER_MANAGER, 'selected_box=tools')), array('title' => TOOLS_FILES, 'link' => tep_href_link(FILENAME_FILE_MANAGER, 'selected_box=tools'))))); Greatfull for some help so I can get going! Cheers, Hans Quote Link to comment Share on other sites More sharing options...
hro2u Posted September 9, 2008 Author Share Posted September 9, 2008 SOLVED IT! MY MISTAKE, SORRY FOLKS. To warm for head here in Shanghai at the moment I guess... (I had forgotten to delete one line in the upgrade...) HOWEVER, Another issue that I would like to address is maybe very simple for U guys. It also has to do with installing this contrib together with other contribs. In my case its in catalog/admin/includes/boxes/reports.php and Im using the contrib for Monthly Sales Summary in OSc. When adding the new lines for Access with Level Account (v. 2.2a), I have to comment out the two lines to make OSc admin display correctly and if not, the tools section dissapears from Admin. How to include the Monthly Sales in reports.php to get them included??? My reports.php looks like this, U see the two lines Ive commented out... ********************************************************** application/x-httpd-php reports.php PHP script text <?php /* $Id: reports.php,v 1.5 2003/07/09 01:18:53 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2002 osCommerce Released under the GNU General Public License */ ?> <!-- reports //--> <tr> <td> <?php $heading = array(); $contents = array(); $heading[] = array('text' => BOX_HEADING_REPORTS, 'link' => tep_href_link(FILENAME_STATS_PRODUCTS_VIEWED, 'selected_box=reports')); if ($selected_box == 'reports') { // BOE Access with Level Account (v. 2.2a) for the Admin Area of osCommerce (MS2) 1 of 1 // reverse comments to below lines to disable this contribution // $contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_STATS_PRODUCTS_VIEWED, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_REPORTS_PRODUCTS_VIEWED . '</a><br>' . // '<a href="' . tep_href_link(FILENAME_STATS_PRODUCTS_PURCHASED, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_REPORTS_PRODUCTS_PURCHASED . '</a><br>' . // '<a href="' . tep_href_link(FILENAME_STATS_CUSTOMERS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_REPORTS_ORDERS_TOTAL . '</a>'); $contents[] = array('text' => tep_admin_files_boxes(FILENAME_STATS_PRODUCTS_VIEWED, BOX_REPORTS_PRODUCTS_VIEWED) . tep_admin_files_boxes(FILENAME_STATS_PRODUCTS_PURCHASED, BOX_REPORTS_PRODUCTS_PURCHASED) . tep_admin_files_boxes(FILENAME_STATS_CUSTOMERS, BOX_REPORTS_ORDERS_TOTAL)); // EOE Access with Level Account (v. 2.2a) for the Admin Area of osCommerce (MS2) 1 of 1 // '<a href="' . tep_href_link(FILENAME_STATS_MONTHLY_SALES, '', 'NONSSL') . '" //class="menuBoxContentLink">' . BOX_REPORTS_MONTHLY_SALES . '</a>'); } $box = new box; echo $box->menuBox($heading, $contents); ?> </td> </tr> <!-- reports_eof //--> ****************************************************** B) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.