Jump to content


  • Content count

  • Joined

  • Last visited

Everything posted by yansfung

  1. yansfung

    Links Manager II

    Hello, Jack! I just install Links Manager II V 1.31 at osc2.3.4 and not sure anyone told you before about ./admin/links_status.php does not show properly with blank main body of page content. It works for for osc2.3.1 which DOC type is HTML 4.0.1 It could osc 2.3.4 back end DOC type is HTML5! And found this following works fine with some HTML DOC modifications: https://github.com/cartstore/cartstore-oscommerce/blob/master/catalog/admin/includes/languages/english/links_status.php :x
  2. Hello, Sethman >If the "Continue" button is pressed without selecting a payment method it just goes to a blank screen. Ans: It could be numbers of open/close tags not match, such as <table> </table>, <div> </div> ... or even "<?php " " ?>" , "{ " or " }" . It is painful and could need to print about 1000 lines for code tracing. :P :x
  3. I love this great addon, but I have to disable it when work with "Discount Coupon Codes 3.34 for osc 2.3.1" I have tried to modify the file "checkout.php" to make both addon work together but failed. It will be highly appreciated if you can show me what missed in the following why the variable "$coupon" or "$order->coupon" is blank. My modifications of the file "checkout.php" are: 1/. Between Lines 480 and 481 479 if (isset($_POST['comments']) && tep_not_null($_POST['comments'])){ //kgt - discount coupons if (!tep_session_is_registered('coupon')) tep_session_register('coupon'); //this needs to be set before the order object is created, but we must process it after $coupon = tep_db_prepare_input($HTTP_POST_VARS['coupon']); //end kgt - discount coupons 481 if (!tep_session_is_registered('comments')) tep_session_register('commen ts');} 482 if (isset($_POST['action']) && $_POST['action'] == 'process' && isset($_POST['fo rmid']) && $_POST['formid'] == $sessiontoken) 480 $comments = tep_db_prepare_input($_POST['comments']); 2/. Between Lines 499 and 500 499 $payment_modules->pre_confirmation_check(); //kgt - discount coupons if( tep_not_null( $coupon ) && is_object( $order->coupon ) ) { //if they have entered something in the coupon field $order->coupon->verify_code(); if( MODULE_ORDER_TOTAL_DISCOUNT_COUPON_DEBUG != 'true' ) { if( !$order->coupon->is_errors() ) { //if we have passed all tests (no error message), make sure we still meet free shipping requirements, if any if( $order->coupon->is_recalc_shipping() ) tep_redirect( tep_href_link( FILENAME_CHECKOUT_SHIPPING, 'error_message=' . urlencode( ENTRY_DISCOUNT_COUPON_SHIPPING_CALC_ERROR ), 'SSL' ) ); //redirect to the shipping page to reselect the shipping method } else { if( tep_session_is_registered('coupon') ) tep_session_unregister('coupon'); //remove the coupon from the session tep_redirect( tep_href_link( FILENAME_CHECKOUT_PAYMENT, 'error_message=' . urlencode( implode( ' ', $order->coupon->get_messages() ) ), 'SSL' ) ); //redirect to the payment page } } } else { //if the coupon field is empty, unregister the coupon from the session if( tep_session_is_registered('coupon') ) { //we had a coupon entered before, so we need to unregister it tep_session_unregister('coupon'); //now check to see if we need to recalculate shipping: require_once( DIR_WS_CLASSES.'discount_coupon.php' ); if( discount_coupon::is_recalc_shipping() ) tep_redirect( tep_href_link( FILENAME_CHECKOUT_SHIPPING, 'error_message=' . urlencode( ENTRY_DISCOUNT_COUPON_SHIPPING_CALC_ERROR ), 'SSL' ) ); //redirect to the shipping page to reselect the shipping method } } //end kgt - discount coupons 500 unset($_POST['payment']); 501 unset($_POST['shipping']); 502 unset($_POST['comments']); 3/. Between Lines 763 and 764 762 ?> 763 </div> <?php /* kgt - discount coupons */ if( MODULE_ORDER_TOTAL_DISCOUNT_COUPON_STATUS == 'true' ) { ?> <h2><?php echo TABLE_HEADING_COUPON; ?></h2> <div class="contentText"> </div> <div class="contentText"> <?php echo ENTRY_DISCOUNT_COUPON.' '.tep_draw_input_field('coupon', '', 'size="32"', $coupon); ?> </div> <?php } /* end kgt - discount coupons */ ?> 764 <div id="cartRefresh" class="contentText"> 765 <div class="right"><?php echo tep_draw_b utton(IMAGE_BUTTON_UPDATE); ?></div> If both addon merge in the file "checkout.php", it will look like the following: Discount Coupon testing001 applied: -$2.40 Sub-Total: $21.60 Flat Rate (Best Way): $5.00 Total: $26.60
  4. yansfung

    ULTIMATE Seo Urls 5 - by FWR Media

    I would like to put a new page to "includes/modules/ultimate_seo_urls5/page_modules/", such as "specials.php" Have done: 1/. replicated "product_info.php" to "specials.php", 2/. class module name Specials_Page_module, 3/. add "-s-" marker tag, 4/. modified Table names, column names. What else missed, the "specials.php/..." won't show-up URL field ? It will be appreciated, if somebody can quote the pointer link which posted topic has the similar before? Thanks a lot indeed! :x
  5. Can somebody give me a pointer where to get the "license.txt" of this package other that contact the contributor? http://addons.oscommerce.com/info/8566 The license file should be bundled in this add-on but missed. The following is the "comment" of its "config.php" file. Appreciate in advanced for any reply! :'( /*-----------------------------------------------------------------------------+ | MagneticOne | | Copyright © 2012 MagneticOne.com <contact@magneticone.com> | | All rights reserved | +------------------------------------------------------------------------------+ | PLEASE READ THE FULL TEXT OF SOFTWARE LICENSE AGREEMENT IN THE "license.txt"| | FILE PROVIDED WITH THIS DISTRIBUTION. THE AGREEMENT TEXT IS ALSO AVAILABLE | | AT THE FOLLOWING URL: http://www.magneticone.com/store/license.php | | | | THIS AGREEMENT EXPRESSES THE TERMS AND CONDITIONS ON WHICH YOU MAY USE | . . | AGREEMENT IS A LICENSE AGREEMENT THAT GIVES YOU LIMITED RIGHTS TO USE | | THE SOFTWARE AND NOT AN AGREEMENT FOR SALE OR FOR TRANSFER OF TITLE. | | THE AUTHOR RETAINS ALL RIGHTS NOT EXPRESSLY GRANTED BY THIS AGREEMENT. | | | | The Developer of the Code is MagneticOne, | | Copyright © 2006 - 2012 All Rights Reserved. | +-----------------------------------------------------------------------------*/
  6. Did I miss something in the document or this software package? I have traced through the versions from V1.0 to v1.2 but nothing about that. I want to do some customization for the following lines of sub_footer.php file, but I cannot find something about ""footerContents" for my change. sub_footer.php:18:<div id="footerContents" class="container_24"> sub_footer.php:30:<div id="footerContents" class="container_24"> It will be appreciated, if someone can show me the pointer for "footerContents" to change the background color or background image through this "footerContents". Or I have to D.I.Y. in my stylesheet.css? Yan, :x
  7. Try those released date before Oct-2008 since osc2.2rc1 was launched after that time. :'(
  8. yansfung

    arabic pack

    Hello, Nikos! It is there --> http://addons.oscommerce.com/info/8395 :'( :x
  9. yansfung

    Header Tags SEO

    Hello, Jack! In order to pass the W3C validation at http://validator.w3.org the file "catalog/includes/modules/header_tags_social_bookmarks.php" of HTS 3.2.7 needs to have the following changes: Line 52 <g:plusone></g:plusone><B> </B> to: <div class="g-plusone" style="float:left;"></div> Lines 55-70 to <td><a rel="nofollow" target="_blank" href="http://del.icio.us/post?url=<?php echo $URL . '&title=' . $TITLE; ?>"> <?php echo tep_image(DIR_WS_IMAGES . '/socialbookmark/delicious.png', 'Add ' . $NAME . ' to del.icio.us'); ?></a></td> <td><a rel="nofollow" target="_blank" href="http://digg.com/submit?phase=2&url=<?php echo $URL . '&title=' . $TITLE; ?>"> <?php echo tep_image(DIR_WS_IMAGES . '/socialbookmark/digg.png', 'Add ' . $NAME . ' to Digg'); ?></a></td> <td><a rel="nofollow" target="_blank" href="http://ekstreme.com/socializer/?url=<?php echo $URL . '&title=' . $TITLE; ?>"> <?php echo tep_image(DIR_WS_IMAGES . '/socialbookmark/Socializer16.png', 'Add ' . $NAME . ' to Ekstreme'); ?></a></td> <td><a rel="nofollow" target="_blank" href="http://www.facebook.com/share.php?u=<?php echo $URL . '&title=' . $TITLE; ?>"> <?php echo tep_image(DIR_WS_IMAGES . '/socialbookmark/facebook.png', 'Add ' . $NAME . ' to Facebook'); ?></a></td> <td><a rel="nofollow" target="_blank" href="http://furl.net/storeIt.jsp?t=<?php echo $URL . '&title=' . $TITLE; ?>"> <?php echo tep_image(DIR_WS_IMAGES . '/socialbookmark/furl.png', 'Add ' . $NAME . ' to Furl'); ?></a></td> <td><a rel="nofollow" target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&bkmk=<?php echo $URL . '&title=' . $TITLE; ?>"> <?php echo tep_image(DIR_WS_IMAGES . '/socialbookmark/google.png', 'Add ' . $NAME . ' to Google'); ?></a></td> <td><a rel="nofollow" target="_blank" href="http://www.newsvine.com/_tools/seed&save?u==<?php echo $URL . '&h=' . $TITLE; ?>"> <?php echo tep_image(DIR_WS_IMAGES . '/socialbookmark/newsvine.png', 'Add ' . $NAME . ' to Newsvine'); ?></a></td> <td><a rel="nofollow" target="_blank" href="http://reddit.com/submit?url=<?php echo $URL . '&title=' . $TITLE; ?>"> Lines 73 - 88 to <td><a rel="nofollow" target="_blank" href="http://www.newsvine.com/_tools/seed&save?u==<?php echo $URL . '&h=' . $TITLE; ?>"> <?php echo tep_image(DIR_WS_IMAGES . '/socialbookmark/newsvine.png', 'Add ' . $NAME . ' to Newsvine'); ?></a></td> <td><a rel="nofollow" target="_blank" href="http://reddit.com/submit?url=<?php echo $URL . '&title=' . $TITLE; ?>"> <?php echo tep_image(DIR_WS_IMAGES . '/socialbookmark/reddit.png', 'Add ' . $NAME . ' to Reddit'); ?></a></td> <td><a rel="nofollow" target="_blank" href="http://technorati.com/cosmos/search.html?url=<?php echo $URL . '&title=' . $TITLE; ?>"> <?php echo tep_image(DIR_WS_IMAGES . '/socialbookmark/technorati.png', 'Add ' . $NAME . ' to Technorati'); ?></a></td> <td><a rel="nofollow" target="_blank" href="http://twitter.com/home?status=Check out <?php echo $URL . '&title=' . $TITLE; ?>"> <?php echo tep_image(DIR_WS_IMAGES . '/socialbookmark/twitter.png', 'Add ' . $NAME . ' to Twitter'); ?></a></td> <td><a rel="nofollow" target="_blank" href="http://myweb.yahoo.com/myresults/bookmarklet?u=<?php echo $URL . '&t=' . $TITLE; ?>"> <?php echo tep_image(DIR_WS_IMAGES . '/socialbookmark/yahoo.png', 'Add ' . $NAME . ' to Yahoo myWeb'); ?></a></td> <td><a rel="nofollow" target="_blank" href="http://www.stumbleupon.com/submit?url=<?php echo $URL . '&title=' . $TITLE; ?>"> :'( :x
  10. yansfung

    Header Tags SEO

    Patch for file "catalog/include/header.php" Hello, Jack! I have installed your great Add-on for osc2.3.1 when validate at http://validator.w3.org/ , it needs to modify the following lines: 17 <div id="header" class="grid_24"> 18 <?php /*** Begin Header Tags SEO ***/ 19 if (HEADER_TAGS_DISPLAY_PAGE_TOP_TITLE == 'true') { 20 ?> 21 <!--<div id="header" class="grid_24"> --> 22 <div style="text-align:center; color:#aaa; font-size:10px;"><?php echo $header_tags_array['title']; ?></div> 23 <!-- </div> --> 24 <?php 25 } 26 /*** End Header Tags SEO ***/ 27 ?> 28 <!-- <div id="header" class="grid_24"> --> To get rid of duplicate id="header" error! :'(
  11. yansfung

    Header Tags SEO

    Thank you very much indeed, Jack! You make the world lives beauty!
  12. yansfung

    Header Tags SEO

    It is a very nice gift for New 2012, Jack! Does this Ver. 3.2.7 support osc2.3.1?
  13. I am a "green boy". A stupid question, I have installed this addon . How's work? I mean how to kick it off?
  14. yansfung

    How Did You Hear About Us - Support

    I want to modify this great add-on a little bit in the "product_info.php" or "checkout_confirmation.php" to have a referral statistics about products instead of target for buyers or guest. However, I am not familiar with drop down option values captured and pass through tep_db_* functions to update the data field "customers_info_source_id" of table "customers_info" with the following SQL statement. tep_db_query("update " . TABLE_CUSTOMERS_INFO . " set customers_info_source_id = '" . (int)$source_value . "' where customers_info_id = '" . (int)$customer_id . "'"); The following is the "drop down menu" of referral options: <td align="right" width="100%"> <?php echo "<form action= "What_Action_I_must_take" method=GET> <select onchange=\"this.form.submit();\" names='This test'>"; for ($i = 0; $i < $source_rows; $i++) { echo "<option value= $source[$i]['sources_id']>"; echo $source[$i]['sources_name']; echo "</option>"; } echo "</select> </form>"; ?> Call someone kindly show me how to capture the mouse-clicked option value and pass to the parameter "$source_value" for such update. Thanks a lot in advance!
  15. It works fine. And not sure for 3.0.2 just launched last week.

  16. yansfung

    Article Manager v1.0

    Thanks for your reply, Jack! If the statement is missed, the text entry box is blank and data enter cannot work properly. The GUI calendar will show-up and accept data properly after the statement is inserted.
  17. yansfung

    Article Manager v1.0

    Hello, Jack! For both 1.57_6 and 1.57_7 file admin/articles.php, is it necessary to have the following statement after line 688 to have a GUI "drop-down calendar"? <div id="spiffycalendar"></div> My environment is osc2.3.1+Header_Tag_V3.2.6
  18. You better post your issue there first since PM is not the proper support channel.

  19. Thanks for your message!

    My pet cat was just passed away and need some time to settle both my dear wife and myself's emotion for few days.

    Then come back to your issue next week. Is that OK? And terrible sorry to reply so late.

  20. yansfung

    Header Tags SEO

    It is quite strange that the Header Tags SEO check the permission with "catalog/images". To my guest, you have set this directory at "705" too.
  21. yansfung

    Article Manager v1.0

    Hello, Jack! It is a great release 1.57-6. Does it support multi-lingual? osc2.3.1+HeaderTagsSEO3.2.6+English_Chinese When input article through admin interface for different languages seems fine for all fields, until click [update] NO error prompt. Only English (default tongue) is OK to view and other language fields a blank. After using CMS to inject other language contents for the article to the database tables for this add-on. It views fine for both both languages.
  22. yansfung

    Header Tags SEO

    Hello, Jack! Will "Google +1 button" be included in your next release together with the existing Social Networking links?
  23. yansfung

    Header Tags SEO

    Ver3.2.5 works excellent for oSC2.3.1 . It pushed some products of my client's catalogue's ranking within top 5 with common keywords for text searching and many within 10 for image searching.
  24. yansfung

    Header Tags SEO

    Thanks Jack for your reply! It seems you got "big head" that many issues approach you. I am going to try with your suggestion later. It is a very good add-on! Cheers!