Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Corshas

Archived
  • Posts

    59
  • Joined

  • Last visited

About Corshas

  • Birthday 07/31/1963

Profile Information

Recent Profile Visitors

4,111 profile views

Corshas's Achievements

  1. Hello all, I have installed this contribution. Everything seems to work fine except the actual link to the link partner. I recieve the following error when I click the link: Parse error: parse error, unexpected $ in /hsphere/local/home/scot0/corshas.com/catalog/redirect.php on line 75 The problem is that there is not a line 75 <?php /* $Id: redirect.php,v 1.10 2003/06/05 23:31:31 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ require('includes/application_top.php'); switch ($HTTP_GET_VARS['action']) { case 'banner': $banner_query = tep_db_query("select banners_url from " . TABLE_BANNERS . " where banners_id = '" . (int)$HTTP_GET_VARS['goto'] . "'"); if (tep_db_num_rows($banner_query)) { $banner = tep_db_fetch_array($banner_query); tep_update_banner_click_count($HTTP_GET_VARS['goto']); tep_redirect($banner['banners_url']); } break; case 'url': if (isset($HTTP_GET_VARS['goto']) && tep_not_null($HTTP_GET_VARS['goto'])) { tep_redirect('http://' . $HTTP_GET_VARS['goto']); } break; 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 ?> I think that the problem has to be this line of code, tep_redirect($link['links_url']); though I don't see the problem. Thanks for the help, Scott
  2. I have this mod installed though when I got to view a product I am directed to the subscription center instead of the product info page. Where would I look to fix this. My Webpage I have included a link. Thanks for your time, Scott
  3. Susan, I found my problem Warning: main(includes/modules/newsletters/newsletter_subscribers.php): failed to open stream: No such file or directory in /hsphere/local/home/scot0/corshas.com/admin/newsletters_subscribers.php on line 227 I had the filename wrong in admin/includes/modules/newsletters/newsletters_subscribers.php I had to remove the "s" HTH, Scott
  4. Thanks Susan, I will be looking the file. I assume that you are waiting to fix yours as well.
  5. I have installed newsletter_module_v02 I have found all of the fixes to the errors so far except this one I am trying to send a test newsletter, and I received the follow errors Warning: main(includes/modules/newsletters/newsletter_subscribers.php): failed to open stream: No such file or directory in /hsphere/local/home/scot0/corshas.com/admin/newsletters_subscribers.php on line 227 Warning: main(includes/modules/newsletters/newsletter_subscribers.php): failed to open stream: No such file or directory in /hsphere/local/home/scot0/corshas.com/admin/newsletters_subscribers.php on line 227 Warning: main(): Failed opening 'includes/modules/newsletters/newsletter_subscribers.php' for inclusion (include_path='.:/usr/local/lib/php') in /hsphere/local/home/scot0/corshas.com/admin/newsletters_subscribers.php on line 227 Fatal error: Cannot instantiate non-existent class: newsletter_subscribers in /hsphere/local/home/scot0/corshas.com/admin/newsletters_subscribers.php on line 231 My first question should be easy to answer I am using webshell and notepad to edit the files, what other program can I use that will number the lines of code (counting the lines is such a pain) I should also say that when I started to make the test newsletter there was a warning that I should read the help file before proceeding. Well it didn't open up so I went on anyway. Now the link to the help file is gone. It certainly could be operator error Thanks in advance for the lesson and help. Scott
  6. These are the errors that I am getting. What file or direcory should I make :?: Warning: main(../../catalog/includes/functions/user_tracking.php) [function.main]: failed to create stream: No such file or directory in /hsphere/local/home/scot0/corshas.com/admin/includes/footer.php on line 48 Fatal error: main() [function.main]: Failed opening required '../../catalog/includes/functions/user_tracking.php' (include_path='.:/usr/local/lib/php') in /hsphere/local/home/scot0/corshas.com/admin/includes/footer.php on line 48
×
×
  • Create New...