Jump to content

homewetbar

Members
  • Content count

    680
  • Joined

  • Last visited

Posts posted by homewetbar


  1. Thanks Jack.

     

    Second issue I've been encountering is the session table becomes huge, slowing down the site dramtically and backing up mysql processing. We're on a dedicated server with 4 quad processors 16 gb ram so the hardware is likely not the fault. The session table has grown to 20mb  

     

    One thing we're trying is setting the session to something smaller like 4 hours and the cart cookie to 30 days.

     

    In basic testing this seems fine, but I'm worried about other variables I might not be aware of. Will this have any adverse effects?


  2. GREAT PLUGIN! I've been waiting for something like this for years. THANK YOU!  :thumbsup:

     

    The css that comes with it is a little bit broken though. 

     

    You should add this class:

    .sf-menu ul ul {
    top: 0;
    left: 100%;
    }
     
    and upgrade to the newest 1.11.1 jquery for touch support (2nd level devices won't work without that in the css I found)
     
     
    Here is my entire CSS so far, for anyone that is having trouble with the included css, never could get the arrows to work though:
     
    /*** ESSENTIAL STYLES ***/
    .sf-menu, .sf-menu * {
    margin: 0;
    padding: 0;
    list-style: none;
    }
    .sf-menu li {
    position: relative;
    }
    .sf-menu ul {
    position: absolute;
    display: none;
    top: 100%;
    left: 0;
    z-index: 99;
    }
    .sf-menu > li {
    float: left;
    }
    .sf-menu li:hover > ul,
    .sf-menu li.sfHover > ul {
    display: block;
    }
     
    .sf-menu a {
    display: block;
    position: relative;
    }
    .sf-menu ul ul {
    top: 0;
    left: 100%;
    }
     
     
    /*** DEMO SKIN ***/
    .sf-menu {
    float: left;
    margin-bottom: 1em;
    }
    .sf-menu ul {
    box-shadow: 2px 2px 6px rgba(0,0,0,.2);
    min-width: 12em; /* allow long menu items to determine submenu width */
    *width: 12em; /* no auto sub width for IE7, see white-space comment below */
    }
    .sf-menu a {
    border-left: 1px solid #fff;
    border-top: 1px solid #dFeEFF; /* fallback colour must use full shorthand */
    border-top: 1px solid rgba(255,255,255,.5);
    padding: .75em 1em;
    text-decoration: none;
    zoom: 1; /* IE7 */
    }
    .sf-menu a {
    color: #13a;
    }
    .sf-menu li {
    background: #BDD2FF;
    white-space: nowrap; /* no need for Supersubs plugin */
    *white-space: normal; /* ...unless you support IE7 (let it wrap) */
    -webkit-transition: background .2s;
    transition: background .2s;
    }
    .sf-menu ul li {
    background: #AABDE6;
    }
    .sf-menu ul ul li {
    background: #9AAEDB;
    }
    .sf-menu li:hover,
    .sf-menu li.sfHover {
    background: #CFDEFF;
    /* only transition out, not in */
    -webkit-transition: none;
    transition: none;
    }
     
    /*** arrows (for all except IE7) **/
    .sf-arrows .sf-with-ul {
    padding-right: 2.5em;
    *padding-right: 1em; /* no CSS arrows for IE7 (lack pseudo-elements) */
    }
    /* styling for both css and generated arrows */
    .sf-arrows .sf-with-ul:after {
    content: '';
    position: absolute;
    top: 50%;
    right: 1em;
    margin-top: -3px;
    height: 0;
    width: 0;
    /* order of following 3 rules important for fallbacks to work */
    border: 5px solid transparent;
    border-top-color: #dFeEFF; /* edit this to suit design (no rgba in IE8) */
    border-top-color: rgba(255,255,255,.5);
    }
    .sf-arrows > li > .sf-with-ul:focus:after,
    .sf-arrows > li:hover > .sf-with-ul:after,
    .sf-arrows > .sfHover > .sf-with-ul:after {
    border-top-color: white; /* IE8 fallback colour */
    }
    /* styling for right-facing arrows */
    .sf-arrows ul .sf-with-ul:after {
    margin-top: -5px;
    margin-right: -3px;
    border-color: transparent;
    border-left-color: #dFeEFF; /* edit this to suit design (no rgba in IE8) */
    border-left-color: rgba(255,255,255,.5);
    }
    .sf-arrows ul li > .sf-with-ul:focus:after,
    .sf-arrows ul li:hover > .sf-with-ul:after,
    .sf-arrows ul .sfHover > .sf-with-ul:after {
    border-left-color: white;
    }
     

  3. Thank you, this helped a lot, I would never have caught you have to change to $nest = 1 instead of $nest = 0

     

    Slight change I had to make adding the class name to make it display the same as the others and not off to the side

     

        for ($nest = 1; $nest <= $GLOBALS['this_level']; $nest++) {
     
    //if you need extra links uncomment out the lines below
    $output .= '</ul></li>';
    $output .=' 
    <li class="current_0"><a href="products_new.php" class="current sf-with-ul">NEW</a></li>
    <li class="current_0"><a href="specials.php" class="current sf-with-ul">Sale</a></li>
    ';
     
            $output .= '</ul>';

  4. Old topic I know, but this has been an issue with oscommerce since the beginning.

     

    Been testing this for a few hours, seems like a pretty good solution. Flaw I see though is the cookie expiration does not update when you visit the site again when I view my cookies in Chrome. The session expiration in mysql seems to be renewing, but not the cookie expiration. So, no matter if you visit the site again your session (and cart) is going to be lost after 7 days. 

     

    I'm thinking of setting the cookie to expire 10 years from now so it is essentially never expires to fix this problem.

     

    Any drawbacks to my solution that anyone sees?

     


  5. Interesting little mod, for whatever reason google page speed likes this better than the code I was previously using, however yslow rates it the same.

     

    One correction I would suggest is fixing the syntax, here is the fixed syntax along with a few more elements included for caching:

    <IfModule mod_headers.c>
      <FilesMatch "\.(js|css|xml|gz)$">
        Header append Vary Accept-Encoding
      </FilesMatch>
    </IfModule>
     
    <IfModule mod_expires.c>
    ExpiresActive on
    <FilesMatch "\.(ico|jpg|jpeg|png|gif|swf)$">
    ExpiresDefault "access plus 30 days"
    </FilesMatch>
      <filesMatch "\.(css)$">
    ExpiresDefault "access plus 5 days"
      </filesMatch>
      <filesMatch "\.(js)$">
    ExpiresDefault "access plus 5 days"
      </filesMatch>
    <filesMatch "\\.(xml|txt)$">
    ExpiresDefault "access plus 1 hour"
    </filesMatch>
    <filesMatch "\\.(html|htm|php)$">
    ExpiresDefault "access plus 1 hour"
    </filesMatch>
    Header unset ETag
    FileETag None
    </IfModule>

  6. We're trying to share our product images across multiple domains www.mystore1.com www.mystore2.com www.mystore3.com.

     

    Any idea on how to do this?

     

    We would like the images all stored on the www.mystore1.com to appear to come from www.mystore2.com www.mystore3.com when the user visits those sites, but really just store one copy of the images on the server. We are using the multi-store contribution


  7. You may also want to look at this one. Use the last version by Nate Welch. It is one of the original auto-thumbnailers and has and still does work well. It is also a very quick install.

     

    Unless that contrib has been revised in a newer version I would advise against using that one. It causes the server to check for new thumbnails everytime someone visits a products page, a lot of hits on your server checking for new images if you have any traffic at all. In fact it causes so many queries it triggered our spam/anti-virus software on the server and locked down one of our sites about a year and a half ago. A better solution would be one that thumbnails them when you upload it in admin so you don't have the excessive queries over and over everytime someone visits a products page.

     

    Maybe someone that knows more than I can suggest a contribution that thumbnails in the admin instead of the catalog side?


  8. I'm trying to install this but I'm having a strange error.

     

    When I click on the pay with paypal button from the shopping cart it goes to paypal and has me login. Then it goes to the review your information page on paypal. Then when I click continue it shoots me back to our site to the shipping page.

     

    What is causing this? Surely this is not correct?


  9. We are considering adding Paypal Pro and Express to our sites.

     

    For those of you that have tried them before...

     

    Are the two Paypal Pro and Express contributions "certified" by Harald himself the best way to go written back in 2008?

    http://addons.oscommerce.com/info/5659

    http://addons.oscommerce.com/info/5658

     

    OR

     

    This one that was last updated in Apr 2010 by Dynamoeffects?

    PayPal Pro Direct Payments & Express Checkout

    http://addons.oscommerce.com/info/3647

     

     

     

    Which functions better, has more features, and less errors?


  10. Hard to say, I reset the seo cache as you said, and since the seo urls is enabled I can enter-whatever-i-like as long as it ends in the p-sku#.html as long as your contribution is disabled and it will send me to the page. However since it is out of stock it is not linked to in the categories, the only way you can get to the product would be if you knew the products sku and entered it into the url or via some other page that linked in to it or a search engine, kind like amazon.com does with out of stock products. Does this mean seo urls does not generate a link in the cache for it, so your contribution cannot pick up on it since the url is not likely stored in the cache?


  11. One more thing, I think I have SEO URLS 2.0b because I don't have seo.class.php, it is all in my html_output.php instead. Could this be causing the issue since I don't have seo.class.php referenced in your code snipet below? If so how can I work around to have your contrib look at html_output.php instead of seo.class.php?

     

    if (strpos($linktest, '-') == 0) { // If the link returned by seo.class.php has no text mysite.com/-c-xxx.html

    four_o_four_die(); // Product/category does not exist so die here with a 404


  12. This contribution does nothing to affect products that are out of stock . . perhaps seo urls does not return an seo url for products that are out of stock, therefore creating the 404?

     

     

    It has something to do with the contribution....

     

    When disable this contribution and go to the out-of-stock products page, the page is displayed correctly, with an seo url, I get the following url:

    this-is-the-product-p-1052.html

     

    when I renable this contribution and go to the out-of-stock page I get redirected to

    404 page

     

    So it's something about how the contribution looks at the product, it must be checking the product_status == 1 or == 0 variable some how either directly or indirectly via a function or class you are using because if I have this contribution enabled and change the status to in-stock it shows properly, out-of-stock it redirects (and when this contribution is disabled the product page shows correctly). Alternatively it could have something to do with how this contribution determines if it is a valid link...

     

    Any ideas?


  13. One more question, currently out of stock products are being redirected to the 404 by your contribution (if I remove this contribution they show).

    If I want my products that are marked out of stock to still show, because they will be resotcked at a later date and NOT be redirected (only invalid products to be redirected) how do I modify that in your code FMR Media?


  14. Thanks for the quick reply! I think I may have found the culprit, in your lastest version of this contribution in general.php I found the line:

    if (strpos($linktest, '-') === 0) { // If the link returned by seo.class.php has no text mysite.com/-c-xxx.html

     

    If I change the === 0 to == 0 it redirects properly!

    Is this the correct fix as equals is normally == or is it supposed to be === on purpose for some other reason?


  15. Hi FWR Media,

     

    I've installed the newsest version of this contribution and it works beautifully redirecting active products to the new seo urls and categories as well.

     

    However the 404 for inactive products is not working.

     

    For example if I type in a product that does not exist like so

    test-product-p-55555.html

     

    and the product is inactive or does not exist I get redirected to:

    product_info.php?products_id=5555

     

    Shouldn't this send me to a 404 page as the product does not exist? How can I fix this in your code? I'm using one of the last Chemo versions of SEO URLs, i think version 2.1c if that helps...


  16. I get:

     

     

    Fatal error: Call to undefined function: tep_draw_fckeditor() in /srv/www/vhosts/domain.tld/httpdocs/os1/catalog/admin/categories.php on line 540

     

    This is displayed in the admin area under products/new product.

    I have followed the instructions of the FCeditor 2.5b exactly. My OS version is v2.2 RC1 with php 4.4

     

    I dont know how to define a function but i have tripple checked the instructions and folowed them!

     

    Any pointers where I can learn more?

     

     

    I had this error, it was because I forgot to uplaod the changes in the install to my admin/includes/functions/html_output.php so check and make sure you made the changes in the install and uploaded that file.


  17. Capital letters in an error, like TEXT_DISPLAY_NUMBER_OF_ARTICLES, mean the contribution was not installed correctly.

     

    Jack

     

     

    Found it! The problem is caused by whomever originally coded the script used <? instead of <?php in line 141 in admin/articles_xsell.php

     

    You must be using an older version that is compatible with the improper <? tag and my newest version of PHP 5 is not which is why you cannot see it on your end Jack. To fix simply change <? on line 141 to <?php


  18. My article.php is showing this error:

     

    Fatal error: Call to a member function on a non-object in articles.php on line 146

     

    The line is:

    <span class="pageHeading"></span><span class="main"><span class="smallText"></span>

    146 ->>> <?php echo $articles_all_split->display_count(TEXT_DISPLAY_NUMBER_OF_ARTICLES); ?></span>

    <span class="main"><?php echo sprintf(TEXT_MORE_INFORMATION, $authors_url); ?></span>

     

    Can anyone give a hint?

    Thanks

     

    I'm having the same problem, it is not with something they did "messing" up the code, it is a problem with the admin xsell page included in the latest install. Can anyone suggest a fix?


  19. This is a great contribution, however I do have some concern over the security of allowing visitors to upload files. Could they not just upload anything and then access it by pointing their browser to uploads directory? Think a malicious script or an image that wasn't really an image but a virus? Maybe I'd just being paranoid but I'd really like to hear you all's thoughts on this?

×