Jump to content

dr_lucas

Members
  • Content count

    357
  • Joined

  • Last visited

  • Days Won

    7

dr_lucas last won the day on July 22 2017

dr_lucas had the most liked content!

7 Followers

Profile Information

  • Real Name
    Michaela
  • Gender
    Female
  • Website

Recent Profile Visitors

20,731 profile views
  1. @DAVID3733 Thanks for that link, now I finally have a working exchange rate server again after 2 months we didn't notice all fail (oanda, xe and fixer). We do still need a backup server, just in case this one fails and we won't notice again. Does anyone have any suggestions/alternatives, preferably that don't require registration. Thanks
  2. Thinking again, you may be right.
  3. I may have missed something, but could anyone please explain why is this code in /logoff.php tep_session_unregister('customer_id'); tep_session_unregister('customer_default_address_id'); tep_session_unregister('customer_first_name'); tep_session_unregister('customer_country_id'); tep_session_unregister('customer_zone_id'); if ( tep_session_is_registered('sendto') ) { tep_session_unregister('sendto'); } if ( tep_session_is_registered('billto') ) { tep_session_unregister('billto'); } if ( tep_session_is_registered('shipping') ) { tep_session_unregister('shipping'); } if ( tep_session_is_registered('payment') ) { tep_session_unregister('payment'); } if ( tep_session_is_registered('comments') ) { tep_session_unregister('comments'); } Better than simply unsetting the whole session with this one command: session_unset();
  4. dr_lucas

    SiteMonitor

    Jack already posted the link (https://apps.oscommerce.com/2W7tC&sitemonitor-v3-4) and it's working fine, the docs are there, so not sure what's the issue, Steve:
  5. dr_lucas

    NEW! Complete Order Editing Tool!

    My revised files contain proprietarty code, thus I can't share them as-is unfortunately. And it's not only edit_orders that was modified, but multiple files AFAICR. Trust me, if I could share them, I would have done so without being requested.
  6. dr_lucas

    NEW! Complete Order Editing Tool!

    It doesn't as I don't charge taxes, but my files do contain many fixes to other bugs including weight calculation bugs. I don't use the AJAX module either. Besides, I don't really have time to un-tailor code unfortunately. My advice is still a good one.
  7. dr_lucas

    NEW! Complete Order Editing Tool!

    But this is not something u must live with. You can either debug it and fix it for your own shop/s (as I did, but I can't share my fixes here as they are tailored for my needs) or hire someone to do it for you.
  8. dr_lucas

    PHP 7

    You can easily fix it. Read this: http://stackoverflow.com/questions/35128323/php-extended-class
  9. dr_lucas

    PHP 7

    PHP 7 has already been released @ Nov-Dec 2015, and yes, it does have an excellent performance improvement.
  10. dr_lucas

    PHP 7

    Actually the specific modification example I gave is not so good, because this infoBoxHeading class extends tableBox class and in this case it would be correct to modify tableBox class first from: class tableBox{ function tableBox{ // some code } // more code } TO: class tableBox{ function __construct(){ //leave it empty } function tableBox{ // some code } // more code } and then on the extended class, do this: class infoBoxHeading extends tableBox { function __construct($contents, $left_corner = true, $right_corner = true, $right_arrow = false) { global $infobox_header_text, $infobox_header_link; parent::__construct(); //calling the parent constructor, as tableBox method is being used here in this class if (SKIN_INFOBOX_ACTIVE == 'true'){ $infobox_header_text = $contents[0]['text']; $infobox_header_link = $right_arrow; } else { $this->table_cellpadding = '0'; if ($left_corner == true) { $left_corner = tep_image(DIR_WS_IMAGES . 'infobox/corner_left.gif'); } else { $left_corner = tep_image(DIR_WS_IMAGES . 'infobox/corner_right_left.gif'); } if ($right_arrow == true) { $right_arrow = '<a href="' . $right_arrow . '">' . tep_image(DIR_WS_IMAGES . 'infobox/arrow_right.gif', ICON_ARROW_RIGHT) . '</a>'; } else { $right_arrow = ''; } if ($right_corner == true) { $right_corner = $right_arrow . tep_image(DIR_WS_IMAGES . 'infobox/corner_right.gif'); } else { $right_corner = $right_arrow . tep_draw_separator('pixel_trans.gif', '11', '14'); } $info_box_contents = array(); $info_box_contents[] = array(array('params' => 'height="20" class="infoBoxHeading"', 'text' => $left_corner), array('params' => 'width="100%" height="20" class="infoBoxHeading"', 'text' => $contents[0]['text']), array('params' => 'height="14" class="infoBoxHeading" nowrap', 'text' => $right_corner)); $this->tableBox($info_box_contents, true); } } } Note that we don't only modify the method name here from infoBoxHeading to __construct, but we are also calling the parent construct via parent::__construct();
  11. dr_lucas

    PHP 7

    Yes, you will need to modify classes to use __construct classes to prevent DEPRECATED errros, but other than that - it should work just fine when switching from code already compatible with 5.5 (ie. working stable without any deprecated errors on php 5.5, supports UTF-8 and mysqli) to php 7. So, for example, code like this: class infoBoxHeading extends tableBox { function infoBoxHeading($contents, $left_corner = true, $right_corner = true, $right_arrow = false) { global $infobox_header_text, $infobox_header_link; if (SKIN_INFOBOX_ACTIVE == 'true'){ $infobox_header_text = $contents[0]['text']; $infobox_header_link = $right_arrow; } else { $this->table_cellpadding = '0'; if ($left_corner == true) { $left_corner = tep_image(DIR_WS_IMAGES . 'infobox/corner_left.gif'); } else { $left_corner = tep_image(DIR_WS_IMAGES . 'infobox/corner_right_left.gif'); } if ($right_arrow == true) { $right_arrow = '<a href="' . $right_arrow . '">' . tep_image(DIR_WS_IMAGES . 'infobox/arrow_right.gif', ICON_ARROW_RIGHT) . '</a>'; } else { $right_arrow = ''; } if ($right_corner == true) { $right_corner = $right_arrow . tep_image(DIR_WS_IMAGES . 'infobox/corner_right.gif'); } else { $right_corner = $right_arrow . tep_draw_separator('pixel_trans.gif', '11', '14'); } $info_box_contents = array(); $info_box_contents[] = array(array('params' => 'height="20" class="infoBoxHeading"', 'text' => $left_corner), array('params' => 'width="100%" height="20" class="infoBoxHeading"', 'text' => $contents[0]['text']), array('params' => 'height="14" class="infoBoxHeading" nowrap', 'text' => $right_corner)); $this->tableBox($info_box_contents, true); } } } Must be changed to this: class infoBoxHeading extends tableBox { function __construct($contents, $left_corner = true, $right_corner = true, $right_arrow = false) { global $infobox_header_text, $infobox_header_link; if (SKIN_INFOBOX_ACTIVE == 'true'){ $infobox_header_text = $contents[0]['text']; $infobox_header_link = $right_arrow; } else { $this->table_cellpadding = '0'; if ($left_corner == true) { $left_corner = tep_image(DIR_WS_IMAGES . 'infobox/corner_left.gif'); } else { $left_corner = tep_image(DIR_WS_IMAGES . 'infobox/corner_right_left.gif'); } if ($right_arrow == true) { $right_arrow = '<a href="' . $right_arrow . '">' . tep_image(DIR_WS_IMAGES . 'infobox/arrow_right.gif', ICON_ARROW_RIGHT) . '</a>'; } else { $right_arrow = ''; } if ($right_corner == true) { $right_corner = $right_arrow . tep_image(DIR_WS_IMAGES . 'infobox/corner_right.gif'); } else { $right_corner = $right_arrow . tep_draw_separator('pixel_trans.gif', '11', '14'); } $info_box_contents = array(); $info_box_contents[] = array(array('params' => 'height="20" class="infoBoxHeading"', 'text' => $left_corner), array('params' => 'width="100%" height="20" class="infoBoxHeading"', 'text' => $contents[0]['text']), array('params' => 'height="14" class="infoBoxHeading" nowrap', 'text' => $right_corner)); $this->tableBox($info_box_contents, true); } } } As you can see, the only modification was: function infoBoxHeading changed to function __construct I highly recommend switching to php 7, if you can.
  12. @@stefan21 Thank You! Exactly what I was looking for... :)
  13. Yeah, what @@BrockleyJohn siad, rr better just use the built-in Firefox developer tools which are already much better nowadays than Firebug. Alternatively use the excellent Chrome developer tools. Just click F12 in either of them and start your debugging journey.
  14. dr_lucas

    ULTIMATE Seo Urls 5 - by FWR Media

    Merry Christmas everyone! :) I have an issue with the period (.) character http://example.com//index.php?cPath=44_95&page=1&range=1.99_2.99 gets rewritten according to the rule and the 1.99_2.99 becomes 199_299 It doesn't happen when I turn off USU5 pro, so it's an issue with the module coding or .htaccess(?) How can I escape the period safely? (ie. without causing some random side effects)
  15. dr_lucas

    Google XML Sitemap SEO

    Correction, it seems all the version files show the same version 1.2, so I believe mine maybe a newer one - 1.4 or 1.5, if that makes any difference.
×