jdelgado Posted July 4, 2003 Posted July 4, 2003 Hi, I set in my OSC website AdminAccess with Levels but I got the following silly problem (as you've probably guessed already I'm not a php expert at all): - AdminAcess forced me to change the file: admin/includes/boxes/catalog.php from the original: <?php $heading = array(); $contents = array(); $heading[] = array('text' => BOX_HEADING_CATALOG, 'link' => tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('selected_box')) . 'selected_box=catalog')); if ($selected_box == 'catalog') { $contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_CATEGORIES, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CATALOG_CATEGORIES_PRODUCTS . '</a><br>' . '<a href="' . tep_href_link(FILENAME_PRODUCTS_ATTRIBUTES, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CATALOG_CATEGORIES_PRODUCTS_ATTRIBUTES . '</a><br>' . '<a href="' . tep_href_link(FILENAME_MANUFACTURERS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CATALOG_MANUFACTURERS . '</a><br>' . '<a href="' . tep_href_link(FILENAME_REVIEWS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CATALOG_REVIEWS . '</a><br>' . '<a href="' . tep_href_link(FILENAME_SPECIALS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CATALOG_SPECIALS . '</a><br>' . '<a href="' . tep_href_link(FILENAME_PRODUCTS_EXPECTED, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CATALOG_PRODUCTS_EXPECTED . '</a>'); } $box = new box; echo $box->menuBox($heading, $contents); ?> to this new one: <?php $heading = array(); $contents = array(); $heading[] = array('text' => BOX_HEADING_CATALOG, 'link' => tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('selected_box')) . 'selected_box=catalog')); if ($selected_box == 'catalog') { $contents[] = array('text' => tep_admin_files_boxes(FILENAME_CATEGORIES, BOX_CATALOG_CATEGORIES_PRODUCTS) . tep_admin_files_boxes(FILENAME_SPECIALS, BOX_CATALOG_SPECIALS) . tep_admin_files_boxes(FILENAME_PRODUCTS_EXPECTED, BOX_CATALOG_PRODUCTS_EXPECTED) . tep_admin_files_boxes(FILENAME_PRODUCTS_ATTRIBUTES, BOX_CATALOG_CATEGORIES_PRODUCTS_ATTRIBUTES) . tep_admin_files_boxes(FILENAME_MANUFACTURERS, BOX_CATALOG_MANUFACTURERS) . tep_admin_files_boxes(FILENAME_REVIEWS, BOX_CATALOG_REVIEWS)); } $box = new box; echo $box->menuBox($heading, $contents); ?> but now, EasyPopulate Readme file says: For adding link to the Admin, edit file admin/includes/boxes/catalog.php by adding this line: '<a href="' . tep_href_link('easypopulate.php', '', 'NONSSL') . '" class="menuBoxContentLink">Easy Populate</a><br>'. After: '<a href="' . tep_href_link(FILENAME_PRODUCTS_ATTRIBUTES, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CATALOG_CATEGORIES_PRODUCTS_ATTRIBUTES . '</a><br>' . but as I said I don't have those lines anymore since I chnaged those for using AdminAccess! What can I do now? How must I set the link to EasyPopulate in my Admin Panel??? Thanks in advance, Quote Jose Delgado - - - - - - - - - - - - "I wish I were smart enough so I could end all my posts with one of those famous and brillant phrases!" J. Delgado, amateur philosopher (2003)
Guest Posted July 4, 2003 Posted July 4, 2003 tep_admin_files_boxes(FILENAME_PRODUCTS_ATTRIBUTES, BOX_CATALOG_CATEGORIES_PRODUCTS_ATTRIBUTES) . tep_admin_files_boxes('easypopulate.php', 'Easy Populate') . tep_admin_files_boxes(FILENAME_MANUFACTURERS, BOX_CATALOG_MANUFACTURERS) . is what I would try (you should already have the first and third lines--just insert the second line between them). Hth, Matt Quote
loxly Posted July 4, 2003 Posted July 4, 2003 Or just all easypopulate directly from the url and don't add it to the boxes ;) Quote [no external urls in signatures please, kthanks]
jdelgado Posted July 4, 2003 Author Posted July 4, 2003 hi iiinetwork! I did what you suggested but it didn't wok. I also uploaded easypopulate.php from /admin to /admin/includes and to /admin/includes/boxes but didn't work either. Loxly, your advice didn't work either because if I try to browse directly to: http://www.-MyWebsite-.com/shop/catalog/ad...asypopulate.php I get redirected to: http://www.-MyWebsite-.com/shop/catalog/ad...in/forbiden.php Any other idea will be welcome. Thanks for your time! Quote Jose Delgado - - - - - - - - - - - - "I wish I were smart enough so I could end all my posts with one of those famous and brillant phrases!" J. Delgado, amateur philosopher (2003)
loxly Posted July 4, 2003 Posted July 4, 2003 Did you log in first? Quote [no external urls in signatures please, kthanks]
jdelgado Posted July 5, 2003 Author Posted July 5, 2003 Hi again Loxly, Yes, I had logged in first, but I forgot to mention that. It is weird because once I'm logged in as Administrator I can browse directly to URLs like: http://www.-MyWebsite-.com/tienda/catalog/...in/specials.php http://www.-MyWebsite-.com/tienda/catalog/...nufacturers.php http://www.-MyWebsite-.com/tienda/catalog/...dmin/backup.php And many others, but if I try to go to: http://www.-MyWebsite-.com/tienda/catalog/...asypopulate.php I get redirected to: http://www.-MyWebsite-.com/tienda/catalog/...n/forbidden.php Note: oh, and of course the file easypopulate.php is uploaded inside the root of /admin folder. I'm willing to hear your coments. Thanks again. Quote Jose Delgado - - - - - - - - - - - - "I wish I were smart enough so I could end all my posts with one of those famous and brillant phrases!" J. Delgado, amateur philosopher (2003)
jdelgado Posted July 7, 2003 Author Posted July 7, 2003 ok, I've done some things but as I said I'm not a PHP expert at all and I probably didn't shoot in the right direction because it ain't working. :? - /admin/includes/boxes/catalog.php : I've added the following if ($selected_box == 'catalog') { $contents[] = array('text' => tep_admin_files_boxes(FILENAME_CATEGORIES, BOX_CATALOG_CATEGORIES_PRODUCTS) . tep_admin_files_boxes(FILENAME_SPECIALS, BOX_CATALOG_SPECIALS) . tep_admin_files_boxes(FILENAME_PRODUCTS_EXPECTED, BOX_CATALOG_PRODUCTS_EXPECTED) . tep_admin_files_boxes(FILENAME_PRODUCTS_ATTRIBUTES, BOX_CATALOG_CATEGORIES_PRODUCTS_ATTRIBUTES) . tep_admin_files_boxes(FILENAME_EASYPOPULATE, BOX_EASYPOPULATE) . tep_admin_files_boxes(FILENAME_MANUFACTURERS, BOX_CATALOG_MANUFACTURERS) . tep_admin_files_boxes(FILENAME_REVIEWS, BOX_CATALOG_REVIEWS)); } - /admin/includes/languages/espanol.php (my website is only set in Spanish): I've added the following define('BOX_EASYPOPULATE', 'EasyPopulate'); - /admin/includes/application_top.php : I've added the following define('FILENAME_EASYPOPULATE', 'easypopulate.php'); Then I login as Administrator but I can not find a link on the left menu to EasyPopulate inside Catalog or inside any other option. And when I try to go directly to directions like: http://www.-MyWebsite-.com/tienda/catalog/...asypopulate.php or: http://www.-MyWebsite-.com/tienda/catalog/...ted_box=catalog I always get redirected to: http://www.-MyWebsite-.com/tienda/catalog/...n/forbidden.php Any clue? I'm really desperate with this thing. I got to upload 300 products and I'm already late. Please help! Thanks for your time, Quote Jose Delgado - - - - - - - - - - - - "I wish I were smart enough so I could end all my posts with one of those famous and brillant phrases!" J. Delgado, amateur philosopher (2003)
bprimm Posted August 24, 2003 Posted August 24, 2003 This is how I got this to work...by no means the best way... /admin/includes/boxes create new file easypopulate.php <?php /* $Id: easypopulate.php,v 1.5 2003/07/09 01:18:53 hpdl Exp $ Brad I Guess.... osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2002 osCommerce Released under the GNU General Public License */ ?> <!-- easypopulate //--> <tr> <td> <?php $heading = array(); $contents = array(); $heading[] = array('text' => BOX_HEADING_EASYPOPULATE, 'link' => tep_href_link(FILENAME_EASYPOPULATE, 'selected_box=easypopulate')); if ($selected_box == 'easypopulate') { $contents[] = array('text' => //Admin begin tep_admin_files_boxes(FILENAME_EASYPOPULATE, BOX_EASYPOPULATE_TEXT)); // tep_admin_files_boxes(FILENAME_STATS_PRODUCTS_PURCHASED, BOX_REPORTS_PRODUCTS_PURCHASED) . // tep_admin_files_boxes(FILENAME_STATS_CUSTOMERS, BOX_REPORTS_ORDERS_TOTAL)); //Admin end } $box = new box; echo $box->menuBox($heading, $contents); ?> </td> </tr> <!-- easypopulate_eof //--> it is reports.php modified a bit. add to admin/includes/languages/english.php (my language) //easypopulate test define('BOX_HEADING_EASYPOPULATE', 'Product Population'); define('BOX_EASYPOPULATE_TEXT', 'Easy Populate'); add to admin/filenames.php define('FILENAME_EASYPOPULATE', 'easypopulate.php'); add to admin/column_left.php if (tep_admin_check_boxes('easypopulate.php') == true) { require(DIR_WS_BOXES . 'easypopulate.php'); } I think thats it. tested ok so far... brad Quote
bprimm Posted September 3, 2003 Posted September 3, 2003 the last 2: add to admin/filenames.php should be admin/includes/filenames.php add to admin/column_left.php should be admin/includes/column_left.php brad Quote
DAVID3733 Posted April 5, 2005 Posted April 5, 2005 the last 2:add to admin/filenames.php should be admin/includes/filenames.php add to admin/column_left.php should be admin/includes/column_left.php brad <{POST_SNAPBACK}> Hello, I am most definatly a newbie, I have admin access with levels installed and working, along with Ulimate SEO and a few other contributions and I amd trying to get easy populate working, I have followed the erlier posts and can see a link in the control panel for Easy populate but when I click it I get Access Denied No Right Permission Access Please contact your Web Administrator to request more access or if you found any problem. and the link has gone to the forbiden.php If i try to go mywebsite/admin/easypopulate.php direct it takes me direct to the admin control login page I have created a folder called temp in the main directory and allowed read write to it I am working on a server2000 machine, it is my own so I have full rights to it my main website is directly under the domain, so is not inside catalog folder, the admin is still in the admin folder, I have changed the "$tempdir" to /temp in easypopulate.php and I am using easypopulate 2.74 recently downloaded This is my first post to this forum, so please go easy on me if I havent follwed protocol David Quote David
DAVID3733 Posted May 3, 2005 Posted May 3, 2005 Hello, I am most definatly a newbie, I have admin access with levels installed and working, along with Ulimate SEO and a few other contributions and I amd trying to get easy populate working, I have followed the erlier posts and can see a link in the control panel for Easy populate but when I click it I get Access Denied No Right Permission Access Please contact your Web Administrator to request more access or if you found any problem. and the link has gone to the forbiden.php If i try to go mywebsite/admin/easypopulate.php direct it takes me direct to the admin control login page I have created a folder called temp in the main directory and allowed read write to it I am working on a server2000 machine, it is my own so I have full rights to it my main website is directly under the domain, so is not inside catalog folder, the admin is still in the admin folder, I have changed the "$tempdir" to /temp in easypopulate.php and I am using easypopulate 2.74 recently downloaded This is my first post to this forum, so please go easy on me if I havent follwed protocol David <{POST_SNAPBACK}> Quote David
DAVID3733 Posted May 3, 2005 Posted May 3, 2005 <{POST_SNAPBACK}> Please if anybody could point me in the right direction I would appriciate it, even if it is a easy answer that I should already know. Quote David
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.
Note: Your post will require moderator approval before it will be visible.