Jump to content

sinbad

Members
  • Content count

    19
  • Joined

  • Last visited

1 Follower

Profile Information

  1. I have install all the files per the instructions and received this error when clicking a link on the website. Parse error: parse error in redirect.php on line 63 (line 63 = case 'links':) below is the code for that page I don't see the error could you please help me with this one. case 'manufacturer': if (isset($HTTP_GET_VARS['manufacturers_id']) && tep_not_null($HTTP_GET_VARS['manufacturers_id'])) { $manufacturer_query = tep_db_query("select manufacturers_url from " . TABLE_MANUFACTURERS_INFO . " where manufacturers_id = '" . (int)$HTTP_GET_VARS['manufacturers_id'] . "' and languages_id = '" . (int)$languages_id . "'"); if (tep_db_num_rows($manufacturer_query)) { // url exists in selected language $manufacturer = tep_db_fetch_array($manufacturer_query); if (tep_not_null($manufacturer['manufacturers_url'])) { tep_db_query("update " . TABLE_MANUFACTURERS_INFO . " set url_clicked = url_clicked+1, date_last_click = now() where manufacturers_id = '" . (int)$HTTP_GET_VARS['manufacturers_id'] . "' and languages_id = '" . (int)$languages_id . "'"); tep_redirect($manufacturer['manufacturers_url']); } } else { // no url exists for the selected language, lets use the default language then $manufacturer_query = tep_db_query("select mi.languages_id, mi.manufacturers_url from " . TABLE_MANUFACTURERS_INFO . " mi, " . TABLE_LANGUAGES . " l where mi.manufacturers_id = '" . (int)$HTTP_GET_VARS['manufacturers_id'] . "' and mi.languages_id = l.languages_id and l.code = '" . DEFAULT_LANGUAGE . "'"); if (tep_db_num_rows($manufacturer_query)) { $manufacturer = tep_db_fetch_array($manufacturer_query); if (tep_not_null($manufacturer['manufacturers_url'])) { tep_db_query("update " . TABLE_MANUFACTURERS_INFO . " set url_clicked = url_clicked+1, date_last_click = now() where manufacturers_id = '" . (int)$HTTP_GET_VARS['manufacturers_id'] . "' and languages_id = '" . (int)$manufacturer['languages_id'] . "'"); tep_redirect($manufacturer['manufacturers_url']); } } } } break; } tep_redirect(tep_href_link(FILENAME_DEFAULT)); // VJ Links Manager v1.00 begin case 'links': require(DIR_WS_FUNCTIONS . 'links.php'); $links_query = tep_db_query("select links_url from " . TABLE_LINKS . " where links_id = '" . (int)$HTTP_GET_VARS['goto'] . "'"); if (tep_db_num_rows($links_query)) { $link = tep_db_fetch_array($links_query); tep_update_links_click_count($HTTP_GET_VARS['goto']); tep_redirect($link['links_url']); } break; // VJ Links Manager v1.00 end ?>
  2. Ok finally go it working howerver the images are distorted and I have two sets of display image width and height and 2 sets if popup image width and height. I uninstall the first attempt and re-installed the mod. Why are these duplicating and where and how do I remove them. They don't seem to cause any errors but I don't think they should be there. Please help if you can. Small Image Width 100 Small Image Height 80 Heading Image Width 57 Heading Image Height 40 Subcategory Image Width 100 Subcategory Image Height 57 Calculate Image Size true Image Required true Display Image Width 150 Display Image Width 150 Display Image Height 120 Display Image Height 120 Popup Image Width Popup Image Width Popup Image Height Popup Image Height M.Dsouza
  3. I just installed the additional images mod and so far the catalog looks fine, however I'm haveing problems in the admin section. I get the following error on admin/categories.php parse error in /home/decorato/public_html/catalog/admin/categories.php on line 324. Here is the code on that line. Any help with this would be appreiciated. case 'add_images': I can't see the problem M.D'Souza Can't see the forest for the trees
  4. First I like to say thanks to all of you who shared this information. I have been trying to get it to open in new window using the java script suggestion however I kept receiving parse errors and such. If someone could help me out with this I would appreiciate it. // the following cPath references come from application_top.php $category_depth = 'top'; if (isset($cPath) && tep_not_null($cPath)) { if ( $cPath == '50_52' ) // replace 50_52 with your cPath number { header( 'Location: http://www.sitename.com' ); // replace with your external URL exit; }
  5. sinbad

    coolMenu

    Thank Nils P, however I found my answer in another area thanks to Seafire and Maxidvd, In the index.php around line 16 require('includes/application_top.php'); // the following cPath references come from application_top.php $category_depth = 'top'; if (isset($cPath) && tep_not_null($cPath)) { //add here if ( $cPath == '50_52' ) //change '50_52' to your cpath for category { header( 'Location: http://www.sitename.com' ); exit; } This also works for more than one link just place the same lines below and edit as needed and so on. I just need to find out how to open this in a new window.
  6. sinbad

    coolMenu

    Can someone tell me if you can place and external link inside coolmenu using sub-catagories and if so how. The shop is set up for regular ecommerce transactions however this would be the only catagory that would need external linking. Business Services >Telecomm ..............................>Hosting Telecom and hosting would link directely to another site.
  7. sinbad

    Seperate Pricing Per Customer v3.5

    Birdie, Yes everthing is working fine no calcaulation problems or other bugs mentioned I have tested it using 3 groups with different pricing. Not having any other contributions installed at the time I installed this might have helped. Now I'm trying to use printable catalog with this one and have run into a few snags but I'm working with the author of that to get a workaround. I'll see if he would like to contribute the workaround for use with the special pricing mod as it was orginally design for the discount mod.
  8. First off thank you for the contribution. I have installed it and it is working, however I'm also running the special prices mod for group pricing and when I click printable catalog link it shows the default retail price and not the group price for that customer login. If anyone is using the two together or knows which lines to edit please let me know.
  9. sinbad

    Seperate Pricing Per Customer v3.5

    Heather, try inserting a closing bracket at the end of the line in front of the ? see below <?php require(DIR_WS_INCLUDES . 'application_bottom.php');} ?>
  10. sinbad

    Seperate Pricing Per Customer v3.5

    Birdie- you don't say what the error on the specials.php page is however, I was receiving a parse error of unexpected $ on several pages and the line referenced was empty I was able to fix this by inserting } at the end of the line. So if line 150 is empty it would be at the end of line 149. Also thanks for the tip on the "else" problem
  11. Even though I seem to have posted in the wrong area I like to thank Nipsy for the reply. That solved the problem. I just added a extra close } to any pages that were displaying the error.
  12. I have worked out most of the problems thanks to tonys and clemets postings thanks guys. However I still can't find the solution for this one, which appears on more than one page. every time I look at the page the line number being referenced does not exit the last line is always one line number above see below. "Parse error: parse error, unexpected $ in /home/costshri/public_html/catalog/product_info.php on line 276" Here is the last line in my file line number 275 <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> Please help me with the What,Where,How, to fix this problem
  13. sinbad

    coolMenu

    Hello All, I managed to adjust the size to fit in the box however, can the following line of code be changed to 100%* instead of x.xx*. and would that allow the box to auto adjust as categories are added? Obviously I'm not a programmer or I would know the answer to this, so If someone coud help please do so. $height.= 2.65*count($categories)
×