Jump to content

burt

Team
  • Content count

    13,753
  • Joined

  • Last visited

  • Days Won

    538

Everything posted by burt

  1. burt

    OSC V3

    90% of those webhosting companies would be resellers of the very few "real" hosting companies. So the conclusion is not quite as dramatic as it could be. In any case, it does not matter what hosts are ready just now - if *any* people want to use 3 for a live shop, they are; a. crazy b. delusional c. mad d. hardcore php developers e. all of the above ;) It is simple to set up localhost with all the required extensions, which is surely enough for developers to get on with developing, and for potential users to test out the bare-bones code that is being released today.
  2. Ask whoever you got the template from. This is not a forum for support of 3rd party products such as templates.
  3. burt

    help editing "free" template

    Free or otherwise, you need to seek help from the template vendor, as this particular vendor is well known for producing templates that hack up the core code beyond belief.
  4. burt

    Modules

    Wordpress does it well. Of course, wordpress is a simple system for writing blogs and not a fullblown ecomm system. But it might give a way forward. Agreed.
  5. burt

    Modules

    No progress will be made until ALL coders follow a standard procedure for creating addons. And that is NOT going to happen as addon makers vary from day 1 newbies to 10 year veterans. Shipping Modules follow a standard procedure (usually). So perhaps you can create a system based around the idea of plugins/hooks?
  6. I think we all know the truth ;) I am only stating what HPDL has stated.
  7. Sometime between January and March 2011.
  8. burt

    PHP Coding

    Well, there we are - learned something new today!
  9. burt

    PHP Coding

    I agree with you Rob. The usual osCommerce way is, I think, more confusing than your preferred way which is, I think, more confusing than the way I'd do it :D I think. Well sometimes I do ;) For indentation, that's another subject entirely! I like to indent 4 spaces, thus; <?php if ($abc) { $something; } ?> Example, as I would write that differently anyway, but you get the drift. Though in html, I like to use 2 spaces; <body> <div id="this"> <p>blah</p> <p>blugh</p> </div> </body> What I really HATE seeing is this type; <?php if ($abc) { [TAB]$something; } ?> Wasn't sure how to get a tabbed indentation in the forum? I'm sure that someone has come up with some sort of indentation standard. Is there one?
  10. burt

    PHP Coding

    The problem (or, if you look at it like I do, "the freedom) with PHP is that there is so many different ways to do something. <div id="something"> <div id="another_something"><?php echo ( SHOW_ACCOUNT > 0 ) ? 'Was larger than 0' : 'Was NOT larger than 0'; ?></div> </div> <div id="results_div"> <?php foreach ( $big_array as $key => $value ) echo ' <div id="single_result">' . $value . '</div>'; </div> "Loved reading this thread :-)" I agree, good thread. Fun.
  11. burt

    PHP Coding

    No apology needed, I am sorry if I came across the wrong way, I have a habit of being "short on words" aka "blunt". In my first post in this thread, I showed a couple more options instead of using "if else". One of them is the ternary which is a shorthand system of "if / else". So. echo (this == that) ? 'this equals that' : 'this is different than that'; is EXACTLY the same effect as if (this == that) { echo 'this equals that'; } else { echo 'this is different than that'; } Do you see now? With the latest code you posted, that won't really work, but you did not give enough detail beforehand for anyone to know exactly what you were/are trying to achieve. It looks like you don't want to show prices based on SHOW_PRICES being 0 or not 0. What is SHOW_ACCOUNT for?
  12. burt

    PHP Coding

    So this code did not work for you?
  13. burt

    PHP Coding

    I posted the code you needed, then you said "I some times wonder why I request help in forums, as most of the time its like trying to get blood out of a stone". Gee, thanks a lot. Well, I posted the corrected code. READ it, then go to www.w3schools.com if you do not understand it. I'm out.
  14. burt

    PHP Coding

    "I just want to know if what I am trying to do can be done in this example." You did not even read my reply then. I'll stop helping you now, sorry I wasted my time ;)
  15. 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
  16. 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.
  17. 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!
  18. 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:
  19. 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.
  20. 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 ;)
  21. burt

    960gs

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

    Products Monitor

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

    Products Monitor

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

    new order in database

    checkout_process.php
  25. burt

    Contributing to core code

    Fork it on github. Work on your own fork. Any good changes can easily be picked up by HPDL.
×