Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Salvo

Pioneers
  • Posts

    1,001
  • Joined

  • Last visited

Posts posted by Salvo

  1. Hi Jack,

     

    I am doing all of this on my computer (test site) before uploading. How can I check if I have the mod_rewrite enabled?

     

    Thanks

     

    My PC

    Server Host: (192.168.0.10) Database Host: localhost (127.0.0.1)

    Server OS: Database: MySQL 4.0.15-max-debug

    Server Date: 10/18/2005 23:12:34 Datebase Date: 10/18/2005 23:12:33

    Server Up Time:

     

    HTTP Server: Apache/1.3.27 (Win32) PHP/4.3.3

    PHP Version: 4.3.3 (Zend: 1.3.0)

     

     

    Hi all,

     

    I am sorry if I keep asking, but I think that my request for help is being overlooked by other requests.

     

    I am stuck and I can't do anything else other than uninstall the contribution if it doesn't work, but I see that it does work for everybody else so I would like to see what is the problem with my installation.

     

    I thank you in advance for any help, assistance etc...

     

    Salvo

  2. You need to contact your host and ask them to verify that mod_rewrite is enabled. The kind of error you are getting can be caused by not having mod_rewrite on or because of how the host handles the requests. You should ask them to look at your site and explain why it is failing. If they tell you they don't support such problems because it is an oscommerce shop, then you should look for a new host.

    Jack

     

     

    Hi Jack,

     

    I am doing all of this on my computer (test site) before uploading. How can I check if I have the mod_rewrite enabled?

     

    Thanks

     

    My PC

    Server Host: (192.168.0.10) Database Host: localhost (127.0.0.1)

    Server OS: Database: MySQL 4.0.15-max-debug

    Server Date: 10/18/2005 23:12:34 Datebase Date: 10/18/2005 23:12:33

    Server Up Time:

     

    HTTP Server: Apache/1.3.27 (Win32) PHP/4.3.3

    PHP Version: 4.3.3 (Zend: 1.3.0)

  3. cName & pName works so you can use it. It is no longer supported though so you may have a hard time getting help if you have a problem. What problems did you have getting Ultimate SEO to work?

     

    Jack

     

     

    Hi Jack

     

    I posted my problem with Ultimage SEO here http://www.oscommerce.com/forums/index.php?sho...c=154166&st=300 - if you care to have a look, I can post more details if needed here as long as I solve the problem.

     

    Thanks

     

    Salvo

  4. Thanks Jack,

     

    One more question if I may; if you or someone else can tell me:

     

    As I tried to install the Ultimate SEO and was not very successful, and as I only would like to have the extention of the categories & products change, do you think I can still use the cName and pName instead of using the latest Ultimate SEO or I better try to make Ultimate SEO work even though I only want to use the categories and products extantions?

     

    Thank

     

    Salvo

  5. HI all again,

    I have just noticed that I get the error below because what I put in the htaccess file.

     

    this is what I have:

     

    # $Id: .htaccess,v 1.3 2003/06/12 10:53:20 hpdl Exp $

    #

    # This is used with Apache WebServers

    #

    # For this to work, you must include the parameter 'Options' to

    # the AllowOverride configuration

    #

    # Example:

    #

    # <Directory "/usr/local/apache/htdocs">

    # AllowOverride Options

    # </Directory>

    #

    # 'All' with also work. (This configuration is in the

    # apache/conf/httpd.conf file)

     

    # The following makes adjustments to the SSL protocol for Internet

    # Explorer browsers

    DirectoryIndex default.php index.php index.html index.htm

    <IfModule mod_setenvif.c>

    <IfDefine SSL>

    SetEnvIf User-Agent ".*MSIE.*" \

    nokeepalive ssl-unclean-shutdown \

    downgrade-1.0 force-response-1.0

    </IfDefine>

    </IfModule>

     

    # Fix certain PHP values

    # (commented out by default to prevent errors occuring on certain

    # servers)

     

    <IfModule mod_php4.c>

    php_value session.use_trans_sid 0

    php_value register_globals 1

    </IfModule>

     

     

    Options +FollowSymLinks

    RewriteEngine On

    RewriteBase /catalog/

     

    RewriteRule ^(.*)-p-(.*).html$ product_info.php?products_id=$2&%{QUERY_STRING}

    RewriteRule ^(.*)-c-(.*).html$ index.php?cPath=$2&%{QUERY_STRING}

    RewriteRule ^(.*)-m-(.*).html$ index.php?manufacturers_id=$2&%{QUERY_STRING}

    RewriteRule ^(.*)-pi-(.*).html$ popup_image.php?pID=$2&%{QUERY_STRING}

    RewriteRule ^(.*)-t-(.*).html$ articles.php?tPath=$2&%{QUERY_STRING}

    RewriteRule ^(.*)-a-(.*).html$ article_info.php?articles_id=$2&%{QUERY_STRING}

    RewriteRule ^(.*)-pr-(.*).html$ product_reviews.php?products_id=$2&%{QUERY_STRING}

    RewriteRule ^(.*)-pri-(.*).html$ product_reviews_info.php?products_id=$2&%{QUERY_STRING}

    RewriteRule ^(.*)-i-(.*).html$ information.php?info_id=$2&%{QUERY_STRING}

     

     

    Can anyone help?

     

    Thanks

     

    PS: without the highlighted RewriteRule, I don't get the error but the extention are the same as before.

     

     

    HI al

     

    I have instsall this contribution in my PC and it gives me this error:

     

    The server encountered an internal error or misconfiguration and was unable to complete your request.

     

    I am not quite sure why, but in instructions it says:

    Linux based server capable of mod_rewrite

     

    how do I check that the php is mod_rewrite and it is enable?

     

    What can it be the error? I think I did everything correct.

     

    thanks

     

    Salvo

  6. HI al

     

    I have instsall this contribution in my PC and it gives me this error:

     

    The server encountered an internal error or misconfiguration and was unable to complete your request.

     

    I am not quite sure why, but in instructions it says:

    Linux based server capable of mod_rewrite

     

    how do I check that the php is mod_rewrite and it is enable?

     

    What can it be the error? I think I did everything correct.

     

    thanks

     

    Salvo

  7. hi all

     

    I didn't think there where any contributions and I will look into it and I hope that they do what I am looking for.

     

    In practice in one site works like this:

     

    The user looks for a product and find it. Instead of writing the details down, he enters the mobile number and will receive that info. They say that the cost of the sms sent is of ?1.00 (sterling), therefore I just presume that someone is making some money out of it.

     

    Are the contribution to be used with some sort of provider wiht whom one shares the profits?

  8. This would be to update the MODEL BUT does not work. can anybody look at this?

     

    Thanks

     

    <?php

    /*

    $Id: aumento_search.php,v 1.29 2003/04/28 15:32:22 hpdl Exp $

     

    osCommerce, Open Source E-Commerce Solutions

    http://www.oscommerce.com

     

    Copyright © 2002 osCommerce

     

    Author: michele gobbi

    email: [email protected]

     

    Released under the GNU General Public License

    */

     

    require('includes/application_top.php');

     

    require(DIR_WS_CLASSES . 'currencies.php');

    $currencies = new currencies();

    // category drop down

    $sql3 = mysql_query("SELECT categories_id, categories_name FROM categories_description ORDER BY categories_name");

     

    ?>

    <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">

    <html <?php echo HTML_PARAMS; ?>>

    <head>

    <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">

    <title><?php echo TITLE; ?></title>

    <link rel="stylesheet" type="text/css" href="includes/stylesheet.css">

    <style type="text/css">

    <!--

    th { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: x-small; background-color: #eeeeee}

    /*table { border: #666666; border-style: dashed; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px}*/

    /*td { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: xx-small; padding-top: 3px; padding-bottom: 3px; padding-left: 5px}*/

    td.left { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: xx-small; padding-top: 3px; padding-bottom: 3px; padding-left: 5px; text-align: right; padding-right: 16px}

     

    -->

    </style>

    </head>

    <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="#FFFFFF">

    <!-- header //-->

    <?php require(DIR_WS_INCLUDES . 'header.php'); ?>

    <!-- header_eof //-->

     

    <!-- body //-->

    <table border="0" width="100%" cellspacing="2" cellpadding="2">

    <tr>

    <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="1" cellpadding="1" class="columnLeft">

    <!-- left_navigation //-->

    <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>

    <!-- left_navigation_eof //-->

    </table></td>

    <!-- body_text //-->

    <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">

    <tr>

    <td><table border="0" width="100%" cellspacing="0" cellpadding="0">

    <tr>

    <td class="pageHeading"><?php echo "Quick Price Update" ?></td>

    <td class="pageHeading" align="right"><?php echo tep_draw_separator('pixel_trans.gif', HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>

    </tr>

    </table></td>

    </tr>

    <tr>

    <td align="left">

    <?

    if ($action == "search") {

    echo "<form name=\"update\" method=\"post\" action=\"".$_SERVER["PHP_SELF"]."?action=update_prices\">";

    echo "<table>";

    echo "<tr><th>Product ID</th><th>Title</th><th>Price</th><th>Telephone</th></tr><tr>";

    $result = mysql_query("SELECT * FROM products, products_description WHERE (products.products_model like '%$search%' OR products_description.products_name like '%$search%') AND products.products_id = products_description.products_id AND products_description.language_id = 1");

    if ($row = mysql_fetch_array($result)) {

    do {

    $prezzo=round($row['products_price'],2);

    $model=$row['products_model'];

    echo "<td align=\"center\">".$row["products_model"]."</td>\n";

    echo "<td>".$row["products_name"]."</td>\n";

    echo "<td align=\"center\"><input type=\"text\" name=\"product_new_price[".$row['products_id']."]\" value=\"$prezzo\"></td>\n";

    echo "<td align=\"center\"><input type=\"text\" size=\"30\" name=\"product_new_model[".$row['products_id']."]\" value=\"$model\"></td>\n";

    echo "</tr>\n";

    }

    while($row = mysql_fetch_array($result));

    }

    echo "</table>\n";

    echo "<br><input type=\"submit\" value=\"Update the prices &/or telephone\">";

    echo "</form><br><hr><br>";

    }

    if ($action == "update_prices") {

    foreach($HTTP_POST_VARS['product_new_price'] as $id => $new_price) {

    mysql_query("UPDATE products SET products_price=$new_price WHERE products_id=$id");

    }

     

    foreach($HTTP_POST_VARS['product_new_model'] as $id => $new_model) {

    mysql_query("UPDATE products SET products_model=$new_model WHERE products_id=$id");

    }

    $random = date("U");

    echo "<p><font face=\"Verdana, Arial, Helvetica, sans-serif\" size=\"2\"><b>Prezzi or Tel aggiornati!!</b></font></p>";

    }

    ?>

    <form name="update" method="post" action="<?=$_SERVER["PHP_SELF"]?>?action=search">

    <table>

    <tr>

    <th colspan="2">Which product do you want to search for?</td>

    </tr>

    <tr>

    <td colspan="2"><br></td>

    </tr>

    <tr>

    <td>

    Product or Model Number:

    </td>

    <td>

    <input type="text" name="search">

    </td>

    </tr>

    <tr>

    <td>

    </td>

    <td>

    <input type="submit" value="Search">

    </td>

    </tr>

    </table>

    </form>

    </td>

    </tr>

    </table></td>

    <!-- body_text_eof //-->

    </tr>

    </table>

    <!-- body_eof //-->

     

    <!-- footer //-->

    <?php require(DIR_WS_INCLUDES . 'footer.php'); ?>

    <!-- footer_eof //-->

    </body>

    </html>

    <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

  9. Hi all

     

    I have downloaded the price update search and works well if I only use it to update prices.

     

    But I have added an other field called products_tel . it is a varchar field, but it only accept NUMERICAL..

     

    Can somebody have a look at it and tell me where I go wrong?

     

    <?php

    /*

    $Id: aumento_search.php,v 1.29 2003/04/28 15:32:22 hpdl Exp $

     

    osCommerce, Open Source E-Commerce Solutions

    http://www.oscommerce.com

     

    Copyright © 2002 osCommerce

     

    Author: michele gobbi

    email: [email protected]

     

    Released under the GNU General Public License

    */

     

    require('includes/application_top.php');

     

    require(DIR_WS_CLASSES . 'currencies.php');

    $currencies = new currencies();

    // category drop down

    $sql3 = mysql_query("SELECT categories_id, categories_name FROM categories_description ORDER BY categories_name");

     

    ?>

    <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">

    <html <?php echo HTML_PARAMS; ?>>

    <head>

    <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">

    <title><?php echo TITLE; ?></title>

    <link rel="stylesheet" type="text/css" href="includes/stylesheet.css">

    <style type="text/css">

    <!--

    th { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: x-small; background-color: #eeeeee}

    /*table { border: #666666; border-style: dashed; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px}*/

    /*td { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: xx-small; padding-top: 3px; padding-bottom: 3px; padding-left: 5px}*/

    td.left { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: xx-small; padding-top: 3px; padding-bottom: 3px; padding-left: 5px; text-align: right; padding-right: 16px}

     

    -->

    </style>

    </head>

    <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="#FFFFFF">

    <!-- header //-->

    <?php require(DIR_WS_INCLUDES . 'header.php'); ?>

    <!-- header_eof //-->

     

    <!-- body //-->

    <table border="0" width="100%" cellspacing="2" cellpadding="2">

    <tr>

    <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="1" cellpadding="1" class="columnLeft">

    <!-- left_navigation //-->

    <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>

    <!-- left_navigation_eof //-->

    </table></td>

    <!-- body_text //-->

    <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">

    <tr>

    <td><table border="0" width="100%" cellspacing="0" cellpadding="0">

    <tr>

    <td class="pageHeading"><?php echo "Quick Price Update" ?></td>

    <td class="pageHeading" align="right"><?php echo tep_draw_separator('pixel_trans.gif', HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>

    </tr>

    </table></td>

    </tr>

    <tr>

    <td align="left">

    <?

    if ($action == "search") {

    echo "<form name=\"update\" method=\"post\" action=\"".$_SERVER["PHP_SELF"]."?action=update_prices\">";

    echo "<table>";

    echo "<tr><th>Product ID</th><th>Title</th><th>Price</th><th>Telephone</th></tr><tr>";

    $result = mysql_query("SELECT * FROM products, products_description WHERE (products.products_model like '%$search%' OR products_description.products_name like '%$search%') AND products.products_id = products_description.products_id AND products_description.language_id = 1");

    if ($row = mysql_fetch_array($result)) {

    do {

    $prezzo=round($row['products_price'],2);

    $telefono=$row['products_tel'];

    echo "<td align=\"center\">".$row["products_model"]."</td>\n";

    echo "<td>".$row["products_name"]."</td>\n";

    echo "<td align=\"center\"><input type=\"text\" name=\"product_new_price[".$row['products_id']."]\" value=\"$prezzo\"></td>\n";

    echo "<td align=\"center\"><input type=\"text\" name=\"product_new_tel[".$row['products_id']."]\" value=\"$telefono\"></td>\n";

    echo "</tr>\n";

    }

    while($row = mysql_fetch_array($result));

    }

    echo "</table>\n";

    echo "<br><input type=\"submit\" value=\"Update the prices\">";

    echo "</form><br><hr><br>";

    }

    if ($action == "update_prices") {

    foreach($HTTP_POST_VARS['product_new_price'] as $id => $new_price) {

    mysql_query("UPDATE products SET products_price=$new_price WHERE products_id=$id");

    }

     

    foreach($HTTP_POST_VARS['product_new_tel'] as $id => $new_tel) {

    mysql_query("UPDATE products SET products_tel=$new_tel WHERE products_id=$id");

    }

    $random = date("U");

    echo "<p><font face=\"Verdana, Arial, Helvetica, sans-serif\" size=\"2\"><b>Prezzi or Tel aggiornati!!</b></font></p>";

    }

    ?>

    <form name="update" method="post" action="<?=$_SERVER["PHP_SELF"]?>?action=search">

    <table>

    <tr>

    <th colspan="2">Which product do you want to search for?</td>

    </tr>

    <tr>

    <td colspan="2"><br></td>

    </tr>

    <tr>

    <td>

    Product or Model Number:

    </td>

    <td>

    <input type="text" name="search">

    </td>

    </tr>

    <tr>

    <td>

    </td>

    <td>

    <input type="submit" value="Search">

    </td>

    </tr>

    </table>

    </form>

    </td>

    </tr>

    </table></td>

    <!-- body_text_eof //-->

    </tr>

    </table>

    <!-- body_eof //-->

     

    <!-- footer //-->

    <?php require(DIR_WS_INCLUDES . 'footer.php'); ?>

    <!-- footer_eof //-->

    </body>

    </html>

    <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

  10. Hi all

     

    I am planning to have an "autolog" contribution and in the contribution side I have found two.

     

    Autolongin secure 2.0 and Autologon

     

    Can someone explain the difference of the two?

     

    I like to have a tick box under login, in order to give users the possibility to login automatically every time there come back on the site. "Remember me" in some forums... like here

     

    Thanks

     

    Salvo

×
×
  • Create New...