Jump to content


  • Content count

  • Joined

  • Last visited

  • Days Won


Everything posted by GLWalker

  1. Really loving bootstrap these days, so many features, such easy implementation

  2. Proposal: Redefine TEXT_GREETING_GUEST from "Welcome Guest!" to "Hello My Friend!"

    1. sembrouille



    2. mattjt83


      wait, wait, wait... have we met before??

  3. Developers and Do It Yourselfer's: check out this tool >>> http://ipadpeek.com/

    1. multimixer


      ... and I really started touching my computer screen - lol - time for ouzo I guess !

    2. tgely


      multi XDDDDDDDDDDD


      The new application menu works like a charm :)


    3. MrPhil


      Does this tool reflect any real Safari browser/JS limitations, or is it just screen size? How about other tablets and smart phones?

  4. http://elvery.net/demo/responsive-tables/ - I applied the "No More Tables" example to the shopping_cart table. The result is perfect in responsive view mode. Very easy to implement and no scripts needed!
    1. mattjt83


      Tried it out a few months ago but IE chokes on it...

    2. GLWalker


      Thanks for the heads up - I'll just place it in a conditional script so IE reverts to a normal table.

  5. GLWalker

    How to turn a customization into an add-on?

    @@Julien324 The install files yu may have found in some contributions, do as you imply, they either create or modify database tables, making it a step or 2 shorter for the one installing. Depending what you have made, there are a few ways to go about it, you could create a mod that links into the oscTemplate class, and then create a module file for it. Again, depending what you made, it could hook into a template block and function, or simply hook to nothing, yet the module file controls adding or removing its functioanility where ever it may be. Other than that, carefully write out instructions of what to find, and what to replace with, and a set of sql commands to run. You may find it more work than you wish to deal with writing out documentation, and in that case, simply write a thorough description of what your modification will do, and include the editied files with notes to use a file comparision program for instlling + any sql commands. If anyone else finds good use for the contribution, they may addon/edit/modify it (including istructions) for the use of others. I hope that did not confuse you, but in time it "may" become clear. So what do you have in mind to release? Letting the community know my be the first step in the right direction.
  6. GLWalker

    [Contribution] STS v4

    It is strongly advised to move away from the 2.2 platform, especially when doing a fresh instalation. 2.3.X is structured in such a way that STS is no longer needed for ease of theming. With the time you may very well spend working on STS and building out a theme you are satisfied with, the same could be accompished using the most up to date and secure version of osCommerce. Another factor to think of is any future addons or updates.
  7. GLWalker

    Category Top Banner

    This is probably the simplest way to do it: open index.php find: <h1><?php echo HEADING_TITLE; ?></h1> Under add: <?php if ($banner = tep_banner_exists('dynamic', 'cat_' . $cPath)) { echo tep_display_banner('static', $banner); } ?> Next find: <h1><?php echo $catname; ?></h1> And again, under add: <?php if ($banner = tep_banner_exists('dynamic', 'cat_' . $cPath)) { echo tep_display_banner('static', $banner); } ?> Now in the addmin banner manager, when adding your banner, asign a group name: cat_# If you have subcategories, then you'll need to create group names as: cat_#_# where # is replaced by the category id.
  8. ASN Forum for osCommerce is so far the best "simple" forum addon I have found. Many thanks to the MasterGiGi and all others who have worked on this mod . Hopefully we can advance this script little by little, as it looks to be a very promising piece of code. As time permits I shall be cleaning it up to better match osC code and style. My first step has been to create a customer moderator addon. The contribution may be found here: http://addons.oscommerce.com/info/4832
  9. admin products_attributes.php has to be the most difficult beast of all time - HTML wise

    1. GLWalker


      The beast is now purring like a kitten. That's the nicest thing I can say.

  10. Well done Guys. Congratulations

  11. GLWalker

    Girt Certificate Module

  12. GLWalker

    Tax Exempt MS2.2

    Apparently you did not learn too much. You cant even figure out how to make a new field show up in the customers account? It doesn't matter if it's in the install instructions or not. You have several examples in the existing customers.php file, and, after going through the new files several times, you couldn't figure out what to code a new field as? Go ahead and install a huge contribution with your bad self then. Just make sure when you CANT do it, yougo blame it on the people that FREELY work hard creating the code for you to FREELY use. You truly are a victim, all arrogance aside, total ignorance abounding.
  13. <?php echo '<a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . tep_image_button('button_checkout.gif', IMAGE_BUTTON_CHECKOUT) . '</a>'; ?> I normally wouldnt answer this, as YOU need to do the work. It is not hard to look for a peice of code that contains a checkout button.
  14. Just remove the block of code for the checkout button it in shopping_cart.php and then place a redirect in checkout_shipping.php, checkout_payment.php and checkout_confirmation.php thatsends back to shopping_cart.php.
  15. GLWalker

    Looking For A Contribution

    Try version 2.2 here: http://addons.oscommerce.com/info/2610
  16. GLWalker

    custom imprinting add on

    This contribution has the option to put in a text box or textfield, your customer can then fill it out and you will get the details in the admin orders page. http://addons.oscommerce.com/info/160
  17. GLWalker

    Header Tags SEO

    If anyone besides me still uses newsdesk here is a simple code add on that will work automatically with newsdesk. It will use the newsdesk article and category name for meta title and keyword and logo text. It will use the newsdesk articles Summary as meta description, so you cannot use HTML in the summary, but give and take right? Its about as automatic as I could make it. Just place it in catalog/includes/header_tags.php above the line that reads : // ALL OTHER PAGES NOT DEFINED ABOVE //NEWSDESK_INDEX case (basename($PHP_SELF)==FILENAME_NEWSDESK_INDEX): $pageTags_query = tep_db_query("select * from " . TABLE_HEADERTAGS . " where page_name like '" . FILENAME_NEWSDESK_INDEX . "' and language_id = '" . (int)$languages_id . "'"); $pageTags = tep_db_fetch_array($pageTags_query); $catStr = "select categories_name as htc_title_tag, categories_name as htc_desc_tag, categories_name as htc_keywords_tag from " . TABLE_NEWSDESK_CATEGORIES_DESCRIPTION . " where categories_id = '" . (int)$current_category_id . "' and language_id = '" . (int)$languages_id . "'"; $sortOrder['title'][0] = $pageTags['page_title']; $sortOrder['description'][0] = $pageTags['page_description']; $sortOrder['keywords'][0] = $pageTags['page_keywords']; $sortOrder['logo'][0] = $pageTags['page_logo']; $sortOrder = GetCategoryAndManufacturer($sortOrder, $pageTags, $defaultTags, $catStr); if ($pageTags['append_default_title'] && tep_not_null($tmpTags['def_title'])) $sortOrder['title'][$pageTags['sortorder_title']] = $tmpTags['def_title']; if ($pageTags['append_default_description'] && tep_not_null($tmpTags['def_desc'])) $sortOrder['description'][$pageTags['sortorder_description']] = $tmpTags['def_desc']; if ($pageTags['append_default_keywords'] && tep_not_null($tmpTags['def_keywords'])) $sortOrder['keywords'][$pageTags['sortorder_keywords']] = $tmpTags['def_keywords']; if ($pageTags['append_default_logo'] && tep_not_null($tmpTags['def_logo_text'])) $sortOrder['logo'][$pageTags['sortorder_logo']] = $tmpTags['def_logo_text']; FillHeaderTagsArray($header_tags_array, $sortOrder); break; // NEWSDESK_INDEX.PHP etc case (basename($PHP_SELF)==FILENAME_NEWSDESK_INFO): case (basename($PHP_SELF)==FILENAME_NEWSDESK_REVIEWS_ARTICLE): case (basename($PHP_SELF)==FILENAME_NEWSDESK_REVIEWS_WRITE): switch (true) { case (basename($PHP_SELF)==FILENAME_NEWSDESK_INFO): $filename = FILENAME_NEWSDESK_INFO; break; case (basename($PHP_SELF)==FILENAME_NEWSDESK_REVIEWS_ARTICLE): $filename = FILENAME_NEWSDESK_REVIEWS_ARTICLE; break; //case (basename($PHP_SELF)==FILENAME_PRODUCT_REVIEWS_INFO): $filename = FILENAME_PRODUCT_REVIEWS; break; case (basename($PHP_SELF)==FILENAME_NEWSDESK_REVIEWS_WRITE): $filename = FILENAME_NEWSDESK_REVIEWS_WRITE; break; default: $filename = FILENAME_NEWSDESK_INFO; } $pageTags_query = tep_db_query("select * from " . TABLE_HEADERTAGS . " where page_name like '" . $filename . "' and language_id = '" . (int)$languages_id . "'"); $pageTags = tep_db_fetch_array($pageTags_query); $the_newsdesk_info_query = tep_db_query("select p.newsdesk_id, pd.newsdesk_article_name, pd.newsdesk_article_shorttext from " . TABLE_NEWSDESK . " p left join " . TABLE_NEWSDESK_DESCRIPTION . " pd on p.newsdesk_id = pd.newsdesk_id where p.newsdesk_id = '" . (int)$_GET['newsdesk_id'] . "' and pd.language_id ='" . $languages_id . "'"); $the_newsdesk_info = tep_db_fetch_array($the_newsdesk_info_query); $header_tags_array['news_article'] = $the_newsdesk_info['newsdesk_article_name']; //save for use on the logo $tmpTags['news_title'] = (tep_not_null($the_newsdesk_info['newsdesk_article_name'])) ? $the_newsdesk_info['newsdesk_article_name'] : ''; $tmpTags['news_desc'] = (tep_not_null($the_newsdesk_info['newsdesk_article_shorttext'])) ? $the_newsdesk_info['newsdesk_article_shorttext'] : ''; $tmpTags['news_keywords'] = (tep_not_null($the_newsdesk_info['newsdesk_article_name'])) ? $the_newsdesk_info['newsdesk_article_name'] : ''; $catStr = "select c.categories_name as htc_title_tag from " . TABLE_NEWSDESK_CATEGORIES_DESCRIPTION . " c, " . TABLE_NEWSDESK_TO_CATEGORIES . " p2c where c.categories_id = p2c.categories_id and p2c.newsdesk_id = '" . (int)$the_newsdesk_info['newsdesk_id'] . "' and language_id = '" . (int)$languages_id . "'"; $sortOrder['title'][0] = $pageTags['page_title']; $sortOrder['title'][10] = $tmpTags['news_title']; //places it at the end of the list $sortOrder['description'][10] = $pageTags['page_description']; $sortOrder['description'][0] = $tmpTags['news_desc']; $sortOrder['keywords'][0] = $tmpTags['news_keywords']; $sortOrder['keywords'][10] = $pageTags['page_keywords']; $sortOrder['logo'][0] = $pageTags['page_logo']; $sortOrder['logo'][10] = $tmpTags['news_title']; $sortOrder = GetCategoryAndManufacturer($sortOrder, $pageTags, $defaultTags, $catStr, true); if ($pageTags['append_default_title'] && tep_not_null($tmpTags['def_title'])) $sortOrder['title'][$pageTags['sortorder_title']] = $tmpTags['def_title']; if ($pageTags['append_default_description'] && tep_not_null($tmpTags['def_desc'])) $sortOrder['description'][$pageTags['sortorder_description']] = $tmpTags['def_desc']; if ($pageTags['append_default_keywords'] && tep_not_null($tmpTags['def_keywords'])) $sortOrder['keywords'][$pageTags['sortorder_keywords']] = $tmpTags['def_keywords']; if ($pageTags['append_default_logo'] && tep_not_null($tmpTags['def_logo_text'])) $sortOrder['logo'][$pageTags['sortorder_logo']] = $tmpTags['def_logo_text']; FillHeaderTagsArray($header_tags_array, $sortOrder); break;
  18. GLWalker

    Header Tags SEO

    If using information pages unlimited here is a simple code that will echo your page title in the pages title meta description and keywords. I would love to use the Information pages description as metadescription but cannot figure out how to strip html out of that description, so everything uses the title for now. Just place it in catalog/includes/header_tags.php above the line that reads : // ALL OTHER PAGES NOT DEFINED ABOVE // INFORMATION.PHP case (basename($PHP_SELF)==FILENAME_INFORMATION): $pageTags_query = tep_db_query("select * from " . TABLE_HEADERTAGS . " where page_name like '" . FILENAME_INFORMATION . "' and language_id = '" . (int)$languages_id . "'"); $pageTags = tep_db_fetch_array($pageTags_query); $information_query = tep_db_query("select information_title, information_description FROM " . TABLE_INFORMATION . " WHERE visible='1' AND information_id='" . (int)$info_id . "' AND language_id = '" . (int)$languages_id . "'"); $information = tep_db_fetch_array($information_query); $header_tags_array['information'] = $information['information_title']; //save for use on the logo $tmpTags['information_title'] = (tep_not_null($information['information_title'])) ? $information['information_title'] : ''; $tmpTags['information_description'] = (tep_not_null($information['information_title'])) ? $information['information_title'] : ''; $tmpTags['information_keywords'] = (tep_not_null($information['information_title'])) ? $information['information_title'] : ''; //$sortOrder['title'][0] = $pageTags['page_title']; $sortOrder['title'][0] = $tmpTags['information_title']; $sortOrder['description'][10] = $pageTags['page_description']; $sortOrder['description'][0] = $tmpTags['information_description']; $sortOrder['keywords'][10] = $pageTags['page_keywords']; $sortOrder['keywords'][0] = $tmpTags['information_keywords']; $sortOrder['logo'][0] = $pageTags['page_logo']; $sortOrder['logo'][10] = $tmpTags['information_title']; if ($pageTags['append_default_title'] && tep_not_null($tmpTags['def_title'])) $sortOrder['title'][$pageTags['sortorder_title']] = $tmpTags['def_title']; if ($pageTags['append_default_description'] && tep_not_null($tmpTags['def_desc'])) $sortOrder['description'][$pageTags['sortorder_description']] = $tmpTags['def_desc']; if ($pageTags['append_default_keywords'] && tep_not_null($tmpTags['def_keywords'])) $sortOrder['keywords'][$pageTags['sortorder_keywords']] = $tmpTags['def_keywords']; if ($pageTags['append_default_logo'] && tep_not_null($tmpTags['def_logo_text'])) $sortOrder['logo'][$pageTags['sortorder_logo']] = $tmpTags['def_logo_text']; FillHeaderTagsArray($header_tags_array, $sortOrder); break;
  19. GLWalker


    Dont know whattool tip is?? ALT TEXT? Mouseover= ALT TEXT? What is your language? Try asking in your language, many from around the world post here. Maybe someone will understand.
  20. GLWalker

    Header Tags SEO

    For a few more tags you can open your header_tags_social_bookmarks.php and replace everything under line 5 with the following: <tr> <td><table border="0" align="right"> <tr> <td><a rel="nofollow" target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&output=popup&bkmk=<?php echo $URL . '&title=' . $TITLE; ?>"> <img src="images/socialbookmark/google.png" alt="<?php echo 'Add ' . $NAME . ' to Google'; ?> " title="<?php echo 'Add ' . $NAME. ' to Google'; ?> " border="0"></a></td> <td><a rel="nofollow" target="_blank" href="https://favorites.live.com/quickadd.aspx?marklet=1&mkt=en-us&url=<?php echo $URL . '&title=' . $TITLE; ?>"> <img src="images/socialbookmark/live.png" alt="<?php echo 'Add ' . $NAME . ' to Windows Live'; ?> " title="<?php echo 'Add ' . $NAME. ' to Windows Live'; ?> " border="0"></a></td> <td><a rel="nofollow" target="_blank" href="http://myweb2.search.yahoo.com/myresults/bookmarklet?t=<?php echo $TITLE . '&u=' . $URL; ?>"> <img src="images/socialbookmark/yahoo.png" alt="<?php echo 'Add ' . $NAME . ' to Yahoo'; ?> " title="<?php echo 'Add ' . $NAME. ' to Yahoo'; ?> " border="0"></a></td> <td><a rel="nofollow" target="_blank" href="http://myjeeves.ask.com/mysearch/BookmarkIt?v=1.2&t=webpages&url=<?php echo $URL . '&title=' . $TITLE; ?>"> <img src="images/socialbookmark/ask.png" alt="<?php echo 'Add ' . $NAME . ' to Ask'; ?> " title="<?php echo 'Add ' . $NAME. ' to Ask'; ?> " border="0"></a></td> <td><a rel="nofollow" target="_blank" href="http://www.netscape.com/submit/?U=<?php echo $URL . '&title=' . $TITLE; ?>"> <img src="images/socialbookmark/netscape.png" alt="<?php echo 'Add ' . $NAME . ' to Netscape'; ?> " title="<?php echo 'Add ' . $NAME. ' to Netscape'; ?> " border="0"></a></td> <td><a rel="nofollow" target="_blank" href="http://del.icio.us/post?url=<?php echo $URL . '&title=' . $TITLE; ?>"> <img src="images/socialbookmark/delicious.png" alt="<?php echo 'Add ' . $NAME . ' to del.icio'; ?> " title="<?php echo 'Add ' . $NAME. ' to del.icio'; ?> " border="0"></a></td> <td><a rel="nofollow" target="_blank" href="http://digg.com/submit?phase=2&url=<?php echo $URL . '&title=' . $TITLE; ?>"> <img src="images/socialbookmark/digg.png" alt="<?php echo 'Add ' . $NAME . ' to Digg'; ?> " title="<?php echo 'Add ' . $NAME . ' to Digg'; ?> " border="0"></a></td> <td><a rel="nofollow" target="_blank" href="http://www.newsvine.com/_wine/save?popoff=1&u=<?php echo $URL . '&title=' . $TITLE; ?>"> <img src="images/socialbookmark/newsvine.png" alt="<?php echo 'Add ' . $NAME . ' to Newsvine'; ?> " title="<?php echo 'Add ' . $NAME . ' to Newsvine'; ?> " border="0"></a></td> <td><a rel="nofollow" target="_blank" href="http://technorati.com/cosmos/search.html?url=<?php echo $URL . '&title=' . $TITLE; ?>"> <img src="images/socialbookmark/technorati.png" alt="<?php echo 'Add ' . $NAME . ' to Technorati'; ?> " title="<?php echo 'Add ' . $NAME . ' to Technorati'; ?> " border="0"></a></td> <td><a rel="nofollow" target="_blank" href="http://furl.net/storeIt.jsp?t=<?php echo $URL . '&title=' . $TITLE; ?>"> <img src="images/socialbookmark/furl.gif" alt="<?php echo 'Add ' . $NAME . ' to Furl'; ?> " title="<?php echo 'Add ' . $NAME . ' to Furl'; ?> " border="0"></a></td> <td><a rel="nofollow" target="_blank" href="http://reddit.com/submit?url=<?php echo $URL . '&title=' . $TITLE; ?>"> <img src="images/socialbookmark/reddit.gif" alt="<?php echo 'Add ' . $NAME . ' to Reddit'; ?> " title="<?php echo 'Add ' . $NAME . ' to Reddit'; ?> " border="0"></a></td> <td><a rel="nofollow" target="_blank" href="http://ekstreme.com/socializer/?url=<?php echo $URL . '&title=' . $TITLE; ?>"> <img src="images/socialbookmark/Socializer16.png" alt="<?php echo 'Add ' . $NAME . ' to The Socializer'; ?> " title="<?php echo 'Add ' . $NAME . ' to The Socializer'; ?> " border="0"></a></td> </tr> </table></td> </tr>
  21. GLWalker


    I think you can fish for it. Here fishie fishie in the sea, come and bite my hook for me.
  22. GLWalker

    Article Manager v1.0

    When inside phpMyadmin, use the tab that says SQL and then paste your code into there. Then hit the go or run button.
  23. GLWalker

    Adding a payment module

    Well I have no idea what payment module you need help with. What one did you download? Does it have an install file? If not, are you sure you downloaded a full package and not an update? Most payment mods install very easy, just place in the catalog/includes/modules/payments/ directory plus your luanguage file as well, some take a bit of work. Please be more specific so you can be helped.
  24. GLWalker

    i want arabic

    Then go get it !
  25. GLWalker


    Hello Sam, Thanks for starting this thread and giving us a good starting point with this editor. Is there a chance you could post any code from the newsletter file? I have it working perfect, sending images and populating when going back with emails, and it sends images just fine when using the newsletter, but when I go to review or edit an existing newsletter the content is then deleted. Thanks