Jump to content

burt

Team
  • Content count

    14,883
  • Joined

  • Last visited

  • Days Won

    607

Everything posted by burt

  1. burt

    PHP Coding

    $data = '<div class="ui-widget infoBoxContainer">' . ' <div class="ui-widget-header infoBoxHeading"><a href="' . tep_href_link(FILENAME_PRODUCTS_NEW) . '">' . MODULE_BOXES_WHATS_NEW_BOX_TITLE . '</a></div>' . ' <div class="ui-widget-content infoBoxContents" style="text-align: center;"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $random_product['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $random_product['products_image'], $random_product['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br /><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $random_product['products_id']) . '">' . $random_product['products_name'] . '</a><br />'; $data .= (SHOW_ACCOUNT > 0) ? '' : $whats_new_price; $data .= ' </div>' . '</div>'; Please visit www.w3schools.com and find the PHP tutorial - this is basic knowledge which you need to read up on as it will help you in the future. In Roberts example; <div id="some_id"> <?php if ( $something == $something_else ): ?> <div>$something is equal to $something_else</div> <?php elseif ( $something != $something_else ): ?> <div>$something is NOT equal to $something_else</div> <?php endif; ?> </div> I believe it is easier to read as so; <div id="some_id"> <div> <?php echo ($this == $that) ? 'this is equal to that' : 'this is different to that'; ?> </div> </div> Rob and I will agree to disagree :D
  2. burt

    PHP Coding

    echo (DO_SOMETHING > 0) ? '' : OUTPUT_SOMETHING; OR if (DO_SOMETHING > 0) { echo ''; } else { echo OUTPUT_SOMETHING; } OR if (DO_SOMETHING <= 0) echo OUTPUT_SOMETHING; I would use the first one. You need to make sure that "DO_SOMETHING" is comparable against the number zero. You need to make sure that "OUTPUT_SOMETHING" is something that can be output.
  3. burt

    Module request - Buyer back-end

    There's two of you that need it. Why not bang your heads together, find more people who want the same, all chip in a few dollars and get it coded up. Easy!
  4. burt

    Module request - Buyer back-end

    If you cannot code this yourself, then you need to find a developer who will code it for you. Or you might wait years for someone who can code to realise they need it for themself, and even then you have to hope that they would make it into an add-on. So, if you have the cash, get it developed, make it into an add-on and sit back and bask in the glory of lots of shop-owners using your codebase, and sending you thank you messages every day :thumbsup:
  5. burt

    960gs

    Precisely what George said, nothing more to add other than to say that I have no clue what official osc documentation will arrive for templating. I wrote a couple of UNofficial ebooks about templating already and cannot see myself writing one about 960/osc.
  6. burt

    960gs

    I firmly believe that any `designer` who uses 960 is doing so because he or she does not understand how not to use it. Something like that anyway ;)
  7. burt

    960gs

    Sammy - strip 960 out completely and instead be unshackled to do as you want for yourself and your client.
  8. burt

    Products Monitor

    2.x version. http://addons.oscommerce.com/info/7539
  9. burt

    Products Monitor

    Nice mod. I might port this to 2.x series.
  10. burt

    new order in database

    checkout_process.php
  11. burt

    Contributing to core code

    Fork it on github. Work on your own fork. Any good changes can easily be picked up by HPDL.
  12. Hi Alan I am successfully using the Github version (without the css changes) with no problem. Is it possible that you have introduced an error somewhere? Or is it possible that you have neglected to completely update your code to that in the Githb?
  13. Yes, this is possible but is not straightforward. You need to; 1. (obviously) set up the colour options 2. link an image to each of those options 3. make a smaller image for each of those options and link those to show the larger version 4. use javascript to swap out the large image based on the colour selected 5. use more javascript to change the selected option based on which image is presently "live"
  14. burt

    Free Shipping to certain areas

    You will need to create (or have created for you) a shipping module which; 1. the store owner can insert prices for postcodes 2. the shipping module then picks up the postcode and charges the correct amount (free or otherwise) It is possible that this already exists as a contribution, you can try a search for it.
  15. burt

    New search architecture

    Always happy to help test something interesting.
  16. burt

    Converting V2.2 add-ons to V3

    Well, it's not hard to convert from 2.2 to 3, however it is not for anyone who is not completely at ease with oscommerce.
  17. burt

    Template install

    Ask the template provider!
  18. You also need to make the template admin file... admin/includes/templates/
  19. burt

    Purchase Without Account

    Peter, I agree with everything you have to say. PWA has never been a solid addition to any site in my opinion - it's better to strip out some of the checkout and only "hide" other bits. Remember that a buyer doesn't need to create an account, he does need to give contact details and payment info though - and if an account is created from that, then it's all good.
  20. burt

    Contrib admin in next osC

    You own osCommerce as much as the next person, so if you want this to be a reality, you should go ahead and code it up. Or get someone to code it for you. There are at least 2 donation modules that I am aware of.
  21. burt

    Fix Design Details

    I believe you have to install no contributions to create space in an infobox. Just use CSS. What are you trying to achieve exactly? That said, I agree with you and hope the code in v3 is more semantically correct.
  22. The only thing I can think of is to parse the img src through a PHP page which counts and updates the database as necessary. So the link will look something like: <a href="http://www.snowzone.net.au/demostore/default.php?ref=14" target="_blank"><img src="http://www.snowzone.net.au/demostore/image.php?image=banner_a&ref=14" border="0"></a> Now image.php will need to parse the ref and add an impression to the database, but will also need to send a mime type and display the image. Not simple and definately heavy on the database... Whilst doing this, I just logged back into Snowzone to build a banner and get this: <a href="http://www.snowzone.net.au/demostore/default.php?ref=14" target="_blank"><img src="http://www.snowzone.net.au/demostore/images/" border="0"></a> The img src is not giving an image... .jpg or .gif or .png etc... HTH
  23. I think that it should be kept 100% seperate. I run an Affiliate Scheme on a site and 95% of my Affiliates are people wanting to earn a $?$, they are not interested in becoming a customer. Maybe this is a UK-centric thing though? Don't know. No worries, the one I presently run does exactly that - "thanks for signing up - now go check your email and log in" type of thing...
  24. The only thing I can see is that when I signed up, I was automatically logged into the Affiliate area - I didn't have to wait for my email to arrive with the username/pass combo. I went to build myself a banner - and my ?ref=0 which was wrong. So I logged out and back in (using the details sent in the email) and now my ?ref=14 So that could be a problem... HTH
  25. http://www.oscommerce.com/downloads.php/co...ions,329/type,5 Not perfect, but workable.
×