Jump to content

dr_lucas

Members
  • Content count

    357
  • Joined

  • Last visited

  • Days Won

    7

Everything posted by dr_lucas

  1. dr_lucas

    AJAX Attribute Manager support

    Works perfectly for me now on MS 2.2 RC2a. Thanks a lot! The stopDirectAccess.class.php changes did the trick! :)
  2. Julian, great contribution, thanks! :) Can you please make this great contribution work on osC 2.2 RC2a or let me know what I should revise during installation to make the latest contribution version work?
  3. dr_lucas

    ULTIMATE Seo Urls 5 - by FWR Media

    @@cris Tip: You should reverse the MySQL changes too
  4. dr_lucas

    ULTIMATE Seo Urls 5 - by FWR Media

    @@FWR Media, Yes, I tried it before, but it kept adding MyExtraText after the string, so I eventually did it with array_unshift and seems to work fine. Hope this helps others too. Is there any potential issue with this following code? $link_text = $this->acquireLinkText(); // If the query returned no results then we return false forcing the use of the standard osCommerce link wrapper Usu_Main::i()->setVar( 'page_not_found', false ); if ( false === $link_text ) { Usu_Main::i()->setVar( 'page_not_found', true ); $this->unsetProperties(); return; } array_unshift($link_text , "MyExtraText"); //<--Adding Extra Text return $this->returnFinalLink( Usu_Main::i() ->getVar( 'uri_modules', USU5_URLS_TYPE ) ->createLinkString( $this->page, Usu_Main::i() ->getVar( 'uri_modules', USU5_URLS_TYPE ) ->separateUriText( $this->linktext( $link_text ) ) , $this->dependencies[$this->key]['marker'], $this->keys_index[$this->key] ) ); } // end method
  5. dr_lucas

    ULTIMATE Seo Urls 5 - by FWR Media

    @@FWR Media Robert, can you kindly help me solve mine? The MyExtraText is a constant...
  6. Yes, you will need to replace the urand function in /includes/functions/account_validation.php (the entire function) with the following code: function urand($min = NULL, $max = NULL){ static $alreadyGenerated = array(); $rangeList = array(); $full = $max + abs($min); $range = ($min || $max) ? ($max - $min) + 1 : NULL; do{ $randValue = ($range) ? rand($min, $max) : rand(); $key = $randValue + $full; if(count($rangeList) == $range) unset($alreadyGenerated); if($range) $rangeList[$key] = $randValue; }while(isset($alreadyGenerated[$key]) && $alreadyGenerated[$key] == $randValue + $full); unset($rangeList); $alreadyGenerated[$key] = $randValue + $full; return $randValue; }
  7. dr_lucas

    $is_read_only

    LoL @ "franakstore" :) Actually I got a super extra modified (hundreds of contributions and tiny/large personal enhancements) 2.2 MS2 RC2a based store with some selected enhancements from 2.3, as published by hpdl, so upgrading to 2.3.3, while desirable, is something that would probably be extremely difficult to do. Please feel free to correct me if I am wrong. Thanks again for your feedback, Jim, I will probably just remove this code, afaik it just came with the "Anti Robot Reg" mod. Cheers
  8. dr_lucas

    $is_read_only

    Thank for the reply, Jim. My site has already been upgraded to 2.2 MS2 RC2a when it was released plus all the latest 2.3 possible upgrades, but this code/condition still exist in updated contributions like "Anti Robot Reg", although I couldn't find in any of osC release files of current or past releases any place that this $is_read_only variable ever actually defined, although it has been used as a condition. Has it ever been defined somewhere or was it just a redundant code or something?
  9. dr_lucas

    $is_read_only

    I can still see this variable (in if conditions) in many files, and keep getting E_NOTICE on them as it seems this variable is not defined anywhere, or am I missing something?
  10. dr_lucas

    ULTIMATE Seo Urls 5 - by FWR Media

    Thanks for this amazing contribution. Got 2 quick questions: 1) I want to add an additional word to the categories URL right after the slash so that it will change From: http://www.mysite.com/category-info-text-c-##.html?page=1&sort=3a To: http://www.mysite.com/MyExtraText-category-info-text-c-##.html?page=1&sort=3a How can I do that? 2) I have installed FWR other amazing KissER contribution, but right after installing this FWR USU5 Pro mod - the KissER seems to have completely stopped saving errors to the file (and I know there are still many errors and notices that supposed to be saved). Do you know why and/or how I can fix this please?
  11. dr_lucas

    Why does PayPal IPN Module malfunction on PHP 5.3 server?

    Go to your admin server_info.php and check if magic_quotes_gpc is turned ON. If it is, you should turn it off via your main php.ini, or ask your host to turn it off for you or move you to a server that has this option turned off. More details: http://php.net/manual/en/security.magicquotes.disabling.php This supposed to fix your Paypal IPN problem and many other contributions. I also recommend, assuming you are on RC2a, that you also modify your code according to http://www.oscommerce.info/confluence/display/OSCOM23/v2.2+to+v2.3.0 And of course go through all other files and contributions and revise the deprecated ereg, eregi, split and other functions to the preg_match, preg_split, explode and other substitute PHP 5.3 functions, with their correct syntax. Doing all the above fixed all my 2.2 RC2a issues with PHP 5.3 and it's now working perfectly.
  12. dr_lucas

    Who's Online Enhancement 1.4

    hmm, bad news it seems...ipinfodb.com wrote "To streamline our maintenance, ipinfodb.com regrets to announce the removal of the Multiple Query APIs" which means (if I read it right) that we are no longer able to use this service with any script that requires multiple queries, like "Who's online"...any alternatives or any way to make it work?
  13. dr_lucas

    Who's Online Enhancement 1.4

    That's because ipinfodb.com just discontinued their old API and started a new one that requires free registration and API key... http://ipinfodb.com/
  14. Hi, This is the discussion thread of the 2Checkout IPN / INS (Instant Notification Service) for osCommerce 2.2 MS2 I will not be available to support it myself, but I am sure this is going to be a popular module and the community is large enough to offer support, updates & enhancements. I released this contribution as a token of my appreciation to all the great people that contributed so much to this wonderful osC project and community in general and to me in particular, this is my payback. :) Package available here: http://addons.oscommerce.com/info/6910
  15. Sorry, this is a leftover from the Unallowed payments module and the fix is very simple: Find this code in /includes/modules/payment/twoco.php: // START PAYMENT UNALLOWED if ( tep_get_payment_unallowed($this->code) ) { $this->enabled = ((MODULE_PAYMENT_TWOCO_STATUS == 'True') ? true : false); } // END PAYMENT UNALLOWED and change it to: $this->enabled = ((MODULE_PAYMENT_TWOCO_STATUS == 'True') ? true : false);
  16. dr_lucas

    Official PayPal IPN Support Thread

    Yes, Matt, you are correct. These Paypal programmers are a bunch of amateurs for rolling our such big changes without thoroughly beta-testing them... :(
  17. dr_lucas

    Official PayPal IPN Support Thread

    Paypal has just made some changes to their IPN system and now all orders received using this payment module come as invalid [COMPLETED], no stock is updated and no email is sent. Does anyone know how to revise the module to handle the new Paypal IPN?
  18. dr_lucas

    Moneybookers IPN SQL errors at setup

    The only reason for that to happen is if you have a non-standard osCommerce orders_status MS2.2 RC2a table in your osC MySQL database with either more or less than 5 columns that the standard osCommerce orders_status table has. These are the 5 columns in the latest osCommerce: orders_status_id language_id orders_status_name public_flag downloads_flag You probably have an old version of osC installed, so I highly recommend that you upgrade to the latest MS2.2 RC2a. If you don't want to upgrade the entire shop, I suggest you run the following SQL commands at least (they will add 2 extra columns to the table): alter table orders_status add public_flag int DEFAULT '1'; alter table orders_status add downloads_flag int DEFAULT '0'; And then try installing MB sql again.
  19. dr_lucas

    Who's Online Enhancement 1.4

    Actually, here is an even more elegant solution, not just a workaround: Find: if (STORE_SESSIONS == 'mysql') { $session_data = tep_db_query("select value from " . TABLE_SESSIONS . " WHERE sesskey = '" . $session_id . "'"); $session_data = tep_db_fetch_array($session_data); $session_data = trim($session_data['value']); } else { if ((file_exists(tep_session_save_path() . '/sess_' . $session_id)) && (filesize(tep_session_save_path() . '/sess_' . $session_id) > 0)) { $session_data = file(tep_session_save_path() . '/sess_' . $session_id); $session_data = trim(implode('', $session_data)); } } Replace with: // First we check if the session exist in a file, else we will use mysql if ((file_exists(tep_session_save_path() . '/sess_' . $session_id)) && (filesize(tep_session_save_path() . '/sess_' . $session_id) > 0)) { $session_data = file(tep_session_save_path() . '/sess_' . $session_id); $session_data = trim(implode('', $session_data)); } else { $session_data = tep_db_query("select value from " . TABLE_SESSIONS . " WHERE sesskey = '" . $session_id . "'"); $session_data = tep_db_fetch_array($session_data); $session_data = trim($session_data['value']); } Find: if (STORE_SESSIONS == 'mysql') { $session_data = tep_db_query("select value from " . TABLE_SESSIONS . " WHERE sesskey = '" . $info . "'"); $session_data = tep_db_fetch_array($session_data); $session_data = trim($session_data['value']); } else { if ( (file_exists(tep_session_save_path() . '/sess_' . $info)) && (filesize(tep_session_save_path() . '/sess_' . $info) > 0) ) { $session_data = file(tep_session_save_path() . '/sess_' . $info); $session_data = trim(implode('', $session_data)); } } Replace with: // First we check if the session exist in a file, else we will use mysql if ( (file_exists(tep_session_save_path() . '/sess_' . $info)) && (filesize(tep_session_save_path() . '/sess_' . $info) > 0) ) { $session_data = file(tep_session_save_path() . '/sess_' . $info); $session_data = trim(implode('', $session_data)); } else { $session_data = tep_db_query("select value from " . TABLE_SESSIONS . " WHERE sesskey = '" . $info . "'"); $session_data = tep_db_fetch_array($session_data); $session_data = trim($session_data['value']); }
  20. dr_lucas

    Who's Online Enhancement 1.4

    ok, I fixed that annoyance myself. If anybody STORE_SESSIONS set to default in catalog side and STORE_SESSIONS set to mysql in admin do this: Find: if (STORE_SESSIONS == 'mysql') { $session_data = tep_db_query("select value from " . TABLE_SESSIONS . " WHERE sesskey = '" . $session_id . "'"); $session_data = tep_db_fetch_array($session_data); $session_data = trim($session_data['value']); } else { if ((file_exists(tep_session_save_path() . '/sess_' . $session_id)) && (filesize(tep_session_save_path() . '/sess_' . $session_id) > 0)) { $session_data = file(tep_session_save_path() . '/sess_' . $session_id); $session_data = trim(implode('', $session_data)); } } And replace with: /* if (STORE_SESSIONS == 'mysql') { $session_data = tep_db_query("select value from " . TABLE_SESSIONS . " WHERE sesskey = '" . $session_id . "'"); $session_data = tep_db_fetch_array($session_data); $session_data = trim($session_data['value']); } else { if ((file_exists(tep_session_save_path() . '/sess_' . $session_id)) && (filesize(tep_session_save_path() . '/sess_' . $session_id) > 0)) { $session_data = file(tep_session_save_path() . '/sess_' . $session_id); $session_data = trim(implode('', $session_data)); } } */ if ((file_exists(tep_session_save_path() . '/sess_' . $session_id)) && (filesize(tep_session_save_path() . '/sess_' . $session_id) > 0)) { $session_data = file(tep_session_save_path() . '/sess_' . $session_id); $session_data = trim(implode('', $session_data)); } Find: if (STORE_SESSIONS == 'mysql') { $session_data = tep_db_query("select value from " . TABLE_SESSIONS . " WHERE sesskey = '" . $info . "'"); $session_data = tep_db_fetch_array($session_data); $session_data = trim($session_data['value']); } else { if ( (file_exists(tep_session_save_path() . '/sess_' . $info)) && (filesize(tep_session_save_path() . '/sess_' . $info) > 0) ) { $session_data = file(tep_session_save_path() . '/sess_' . $info); $session_data = trim(implode('', $session_data)); } } And replace with: /* if (STORE_SESSIONS == 'mysql') { $session_data = tep_db_query("select value from " . TABLE_SESSIONS . " WHERE sesskey = '" . $info . "'"); $session_data = tep_db_fetch_array($session_data); $session_data = trim($session_data['value']); } else { if ( (file_exists(tep_session_save_path() . '/sess_' . $info)) && (filesize(tep_session_save_path() . '/sess_' . $info) > 0) ) { $session_data = file(tep_session_save_path() . '/sess_' . $info); $session_data = trim(implode('', $session_data)); } } */ if ( (file_exists(tep_session_save_path() . '/sess_' . $info)) && (filesize(tep_session_save_path() . '/sess_' . $info) > 0) ) { $session_data = file(tep_session_save_path() . '/sess_' . $info); $session_data = trim(implode('', $session_data)); } Done.
  21. dr_lucas

    Who's Online Enhancement 1.4

    Hi, For several reasons I must keep my catalog sessions in default and admin stored in mysql, so they don't match, but other user tracking contributions show the visitors cart just fine except for this one which requires the STORE_SESSION match. Why is it required? Is there any workaround to make it work without this requirement?
  22. dr_lucas

    Order Controller v1.0

    Thanks for your wonderful contribution! I currently can not use it myself because I am printing every invoice/slip 4 pages per sheet on a duplex printer (ie. 4 pages per side of the paper x 2 sides = 8 pages per sheet) so it prints several customers' orders on each sheet (if the orders are small). Is there any way to make it force sheet break (so it will print a new sheet at the end of each invoice), rather than a page break? or is there any other solution? I really would love to use this contribution if it works for me, any help would be most appreciated! Thanks in advance!
  23. dr_lucas

    Moneybookers Madness

    Yes, it basically suppose to open IFRAME when you click confirm, not redirect you to Moneybookers, so Opera's behavior is the wrong one. This mod works with IFRAME before I updated it, check the previous uploads, it was added in a previous version.
  24. dr_lucas

    Moneybookers Madness

    I have uploaded a new updated MoneyBookers module with Zillion bug fixes, check it out!
×