Jump to content

Phliplip

Members
  • Content count

    18
  • Joined

  • Last visited

Profile Information

  • Real Name
    Philip Espersen
  1. Phliplip

    Faster Page Loads

    Yeah i know i forgot to write which file the line should be replaced, in the description at the contribution download page. But didn't wanted to add another "file" just to tell that! /Philip ;)
  2. Phliplip

    Faster Page Loads

    While fooling around i found that the modules.php could insert a row in the configurations table with an empty configuration_key, resulting in the cache function inserted; define('', ''); Thus the cached config file got currupted and issuing an error both in catalog and admin. To handle this and to secure other contribs don't imply this error, please replace following line in admin/includes/configuration_cache.php; $configuration_query = tep_db_query('select configuration_key as cfgKey, configuration_value as cfgValue from ' . TABLE_CONFIGURATION); With; $configuration_query = tep_db_query("select configuration_key as cfgKey, configuration_value as cfgValue from " . TABLE_CONFIGURATION . " where configuration_key != ''"); The file to download is just a dummy textfile, containing this text. No more no less.
  3. Insomniac2 and Azer: I'm installing Administration Access Level Accounts 2.2a (http://www.oscommerce.com/community/contributions,1359) onto the shop i have developed FAN on. Please let me know if this is the contrib you are talking about. I will try to have a look at this issue.
  4. Couldn't agree more ;) BUT $HTTP_GET_VARS is the notation that i currently used in the latest official release (osCommerce 2.2 Milestone 2 Update 060817). And therefore to hold the coding standard and best practise of that release, i've changed it back! Using both $HTTP_GET_VARS and $_GET could possibly mess up osCommerce and other contribs. Example: -- test.php -- <?php echo($HTTP_GET_VARS['foo']."<br>"); echo($_GET['foo']."<br>"); echo("<br>"); $_GET['foo'] = "MIA"; echo($HTTP_GET_VARS['foo']."<br>"); echo($_GET['foo']."<br>"); ?> ---- GET request to test.php?foo=foobar will output following. -- foobar foobar foobar MIA -- This is because $HTTP_GET_VARS and $_GET is 2 different arrays. And therefore $HTTP_GET_VARS don't reflect changes done to $_GET!
  5. Azer: I wasn't able to reply on you PM. So here comes: Hi Azer, Thanks for the words :) I have uploaded a corrected version, please enjoy :-" Regarding your articles page. I don't know that the first piece of code is supposed to do, but the last code looks familiar to the other changes i have done, so please commit the following. ------ Before: onclick="document.location.href=\'' . tep_href_link(FILENAME_ARTICLES, 'tPath=' . $tPath . '&aID=' . $articles['articles_id']) . '\'" Add: ondblclick="document.location.href=\'' . tep_href_link(FILENAME_ARTICLES, 'tPath=' . $tPath . '&aID=' . $articles['articles_id'] . '&action=edit) . '\'" -- Before: onclick="document.location.href=\'' . tep_href_link(FILENAME_ARTICLES, 'tPath=' . $tPath . '&aID=' . $articles['articles_id'] . '&action=article_preview&read=only') . '\'" Add: ondblclick="document.location.href=\'' . tep_href_link(FILENAME_ARTICLES, 'tPath=' . $tPath . '&aID=' . $articles['articles_id'] . '&action=edit') . '\'" ------------------ I haven't installed this contrib, so this is done from the code in your message. Please check that 'edit' is the correct action for this contrib. If you want' normal behavior just replace 'action=edit' with 'action=article_preview&read=only' and then you don' need to commit the second change. Hope it works, and please let me know where to find the articles contribution you are using. Best regards, Philip Espersen
  6. I have released a corrected version, where $_GET is replaced with $HTTP_GET_VARS. Another notice, from user insomniac2. http://forums.oscommerce.com/index.php?showuser=87520 Posted on the contribution page! ----- Although this is a nice mod if you are using Admin Access you will not want to install this code without some custom coding. The onclick feature will bypass the admin rights ... and people double clicking will be able to access or edit information they are not supposed to be able to. You will need to create a second set of queries for non Top Level Admins. ----- For further notice, please post compability issues in the support thread. Thank ;)
  7. Hi Azer: Sorry, my mistake! I have done some changes to my osC package, to fully support PHP5 (Actually tried to submit it, but it was considered a fork). I will change FAN to fully support the $HTTP_GET_VARS ASAP.
  8. This is the support thread for Faster Admin Navigation - FAN. Contribution: http://www.oscommerce.com/community/contributions,4875 Abstract: This contribution aims to speed-up the general navigation in specific sections in the osCommerce admin. -- Example: -- -------------- To speed-up the navigation through the categories and products in admin, this contribution add doubleclick functionality to the rows of categories and products. Click on categories or products to se quick-info pane (normal behavior). Double Click on categories to se content of category, same as clicking once to select category and clicking again once page is loaded. Double Click on products to edit the product, note this is not same behavior as clicking once to select product and clicking again once page is loaded. Normal behavior for this action is to view the product information page. -------------- I have tested it to work in both IE 6.0 and FF 1.5/2.0 - In Opera 9.0 it doesn't work at all. Though ondblclick="" in theory shouldn't work at all, due to the onclick="" on the same element! So i have experienced, that the onclick was used instead of the ondblclick! You could possibly fix it by delaying the onclick="", but then again. If the onclick is used, just click again on the selected item.
  9. Phliplip

    NEW! Complete Order Editing Tool!

    Hi Group! Running v2.5.1 The problem is that i'm also using Quantity Price Breaks Per Product (http://www.oscommerce.com/community/contributions,1242) And if i have a produkt with a price break at fx. 6 products.. the price is not updated correctly if i edit a order including that produkt, setting it frm 5 to 6 products! It still uses the price as were it 5.. Anybody got that covered before!? I know its most unlikely that it can do it on the fly, but at least when the order is updated!
×