Jump to content

Foffo

Members
  • Content count

    22
  • Joined

  • Last visited

About Foffo

  • Birthday 06/28/1983

Profile Information

  • Real Name
    Robert Jansson
  • Gender
    Male
  • Location
    Lund, Sweden
  1. Thanks! Will check it out... :thumbsup: Yea, if you're refering to a function to sanitize the $PHP_SELF calls, then yea I've got that added. I'm obviously not as good on php as yourself so sorry for asking, but what made you draw the conclusion that it could be a sanitizing issue? :blush: (Just trying to learn to understand the code & how to interpret possible signs of faults better in case of future issues... always a good thing to learn from the better ones right?)
  2. Now I've narrowed it down to that it only sends me false when the validation code contains a special char. Don't know why it's doing that though... can it be the char-set the page is saved in?
  3. Not throwing insults, just checking up on my own sketchy php-knowledge ;) Plus that I thought I read something about someone else having trouble with the same thing a couple of posts earlier... but guess I'll have to go over my own code again and see if I can find the problem there...
  4. I solved all of my issues - removed the refresh button (to have my validation code always load to a fixed size) & that solved the other issue as well. The only trouble I experience right now is that the check of the code always return - false; which prevents the customer from ever geting past this security check. Something I might have done wrong or maybe something in the code to begin with? I use the validation on the "contact us" page & when creating an account...
  5. I didn't miss read it, I just though I could mod it into working that way :-" I'll work out a solution with time though... But this doesn't alter the fact - that if you refresh / alter the view, the size of the image is altered. Why that is happening I can't understand, since the image should be locked to one fixed size if you set it to one fixed size in the admin right?
  6. Is there any possibility to mod this addon to output a completely new image/code every time the button is pushed? In that case - how? Because using the button right now generates the same picture, but with the characters arranged differently and most of the time this alter the size of the image (even though it's set to a fixed size through the admin section) & it kinda mess up the GUI for my part...
  7. I've solved it myself - so if anyone runs into the same problem here's the solution: In ~/inludes/header.php add: p.products_status = '1' and right after: tep_db_free_result($products_id_query); $header_products_query = tep_db_query("select p.products_id, p.products_image, pd.products_name from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where and just before: p.products_id in ('" . implode("', '", $prod_array) . "') and p.products_id = pd.products_id order by rand() limit " . DISPLAY_SCROLLING_HEADER_PRODUCTS); So the original looks like: tep_db_free_result($products_id_query); $header_products_query = tep_db_query("select p.products_id, p.products_image, pd.products_name from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_id in ('" . implode("', '", $prod_array) . "') and p.products_id = pd.products_id order by rand() limit " . DISPLAY_SCROLLING_HEADER_PRODUCTS); And the edited one should look like: tep_db_free_result($products_id_query); $header_products_query = tep_db_query("select p.products_id, p.products_image, pd.products_name from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id in ('" . implode("', '", $prod_array) . "') and p.products_id = pd.products_id order by rand() limit " . DISPLAY_SCROLLING_HEADER_PRODUCTS); I hope this can help at least someone in the future :thumbsup:
  8. I've installed the add-on Scrolling Images Carousel With Hotlinks In Header - it's a great add-on & it works great except that I can't get it to work correctly with products/categories that's been marked offline. I've tried adding and product_status = '1' to make it choose another product, if the one chosen should be offline... but it won't work & I don't know how to solve it. As it works now it adds the number of products I've set it to do as it should, but sometimes it chooses products that are offline (since they season-related & not sold all the year around). In those cases the picture shows up in the carousel and everything, but if I click on that product I only get redirected to the page I've made to be shown due to unsuccessful searches. Anyone that knows how to get this to work, so it only chooses products that are set to be online (in other add-ons I've got this check to work by adding p.products_status = '1')? Really big thanks, in advance, for the help!
  9. Foffo

    Get 1 Free

    In version 1.4.2 i can't seem to find the file referred to in the install.txt called: catalog/admin/includes/functions/get_1_free.php Why is this? Don't want to start installing this if it's broken...
  10. Hi, when I use http://addons.oscommerce.com/info/5598 I can't seem to get it to work in IE & when reading about it I found this out: Browser differences: Internet Explorer uses event.keyCode to retrieve the character that was pressed and Netscape/Firefox/Opera uses event.which. I guess here's where I have my problem since it works just fine in FF but not at all in IE :angry: So do anyone know where the submit function is defined, so I can put in a browser check on my own or how to rewrite this code to work in both IE & FF? Thanks for your help.
  11. Hi, can't seem to find the answers to my questions concerning this contribution in here... it's wanted configuration possibilities rather than errors. I'm looking for a way to, by default, add new customers to the "Excluded" list in all my coupons rather than in the "Allowed" list. I'm also looking for a way to add several products, with different discount amounts on each of them, to a single discount-code. I don't want my regulars to have to enter more than one code and yet benefit from their discounts (which may vary quite a bit depending on what products they have discount on). Would be really nice if someone could help me out with this since I can't seem to find a solution on my own. Big thanks in advance! :)
×