Jump to content
Latest News: (loading..)

FWR Media

♥Ambassador
  • Content count

    6,718
  • Joined

  • Last visited

  • Days Won

    46

Reputation Activity

  1. Like
    FWR Media got a reaction from caravansplus in ULTIMATE Seo Urls 5 - by FWR Media   
    Sorry I didn't reply to your personal contact, caught me a bit busy.
     
    If the URLs are being generated fine then it is one of a few things.
     
    1) .htaccess settings ( although I wouldn't expect a redirect loop from here )
    2) Admin settings - turn off the option to redirect index.php to root domain.
    3) Your includes/configure.php settings are incorrect.
    4) You are using path_standard and AcceptPathInfo is not set to On ( this can go in .htaccess )
    5) You have a very strnge server set up that I've never come across :)
     
    Is it a linux server?
  2. Like
    FWR Media got a reaction from burt in Meta Robot NoIndex Header Tag Module Proposal for v2.3.3   
    I hadn't thought of arraymap and glob for a while ( too busy getting confused with IteratorItoratorIteratorIt........... s )
     
    @@burt so thanks for bring it up.
     
    Tested against my system arraymap with glob is significantly faster ( 4 X ) on simple file extension searches like *.php but significantly slow on directory searches GLOB_ONLYDIR.
     
    E.g. an iteration searching for directories in osCommerce root ( tests are ran 100 times ): -
     
    FilteredDirectoryIterator ran for: 0.40297293663025 seconds
     
    array_map/glob ran for: 0.41827583312988 seconds
     
    Yet with the extension search ( *.php ) in root it is a different story: -
     
    FilteredDirectoryIterator ran for: 0.43397998809814 seconds
     
    array_map/glob ran for: 0.12356305122375 seconds
     
    Anyone got any data on directory iterations?
     
    For now I have changed my system to use arraymap/glob only where it is a simple allow full filename/allow extension search and where the search is only one item and where it is a file search.
  3. Like
    FWR Media got a reaction from 32 Degrees in ULTIMATE Seo Urls 5 - by FWR Media   
    You need to look at catalog/includes/modules/ultimate_seo_urls5/page_modules/product_reviews.php
     
    Change the query to extract the manufacturers name
     
    Create code or a method to order the link_text array to manufacturer - product_name before it is passed into $this->linktext() near the bottom. E.g. the product_info.php module has Product_Info_Page_Module::linkTextOrder().
     
    If you do this however you must also create permanent 301 redirects from the old uri to the new.
  4. Like
    FWR Media got a reaction from Moxamint in KissIT Image Thumnailer   
    Well .. thank you .. don't often get that :)
  5. Like
    FWR Media got a reaction from clippers in KissMT Dynamic SEO Meta & Canonical Header Tags   
    Bug Update
     
    Who it affects: -
    Any payment system file or other file not in root that calls template_top.php
     
    Thanks for the catch Ausgirl
     
    The package has been updated locally but no new package has been uploaded to osCommerce addons as yet.
     
    Code changes are below: -
     
    catalog/includes/modules/kiss_meta_tags/classes/kiss_meta_tags_class.php
    Find ( line 88 ) ..
     

    $this->module->process();
    Replace with ...
     

    if ( $this->module instanceof KissMT_Modules ) { $this->module->process(); }
     
    Find ( line 141 ) ..
     

    trigger_error( 'KissMT could not find a valid base filename, please inform the developer.', E_USER_WARNING );
     
    Replace with ..
     

    return (((strlen(ini_get('cgi.fix_pathinfo')) > 0) && ((bool)ini_get('cgi.fix_pathinfo') == false)) || !isset($HTTP_SERVER_VARS['SCRIPT_NAME'])) ? basename($HTTP_SERVER_VARS['PHP_SELF']) : basename($HTTP_SERVER_VARS['SCRIPT_NAME']);
     

    Find ( line 184 ) ..
     

    private function loadModules() {

    Replace with ..
     

    private function loadModules() { if ( !tep_not_null( $this->basename ) ) { return false; }
  6. Like
    FWR Media got a reaction from al3ks in KissIT Image Thumnailer   
    KissIT Image Thumbnailer
     
    Compatibility: PHP 5.2/5.3/5.4 ( PHP 4 or ancient versions of PHP5 will NOT work )
    osCommerce 2.2
    osCommerce 2.3.X
     
    Main Benefits:
    Images should never be resized by the browser/html/javascript as this is EXTREMELY slow. Supplying the browser with correctly scaled images will speed up the loading of image rich osCommerce shops dramatically.
     
    Being a KISS ( Keep It Simple Stupid ) contribution this installs extremely quickly and with minimal core file changes.
     
    KissIT thumbnails any and all osCommerce images where the image dimensions are not equal to the image output dimensions.
     
    PHP image manipulation functions are very heavy on resources, KissIT is optimised to only use such functions when thumbs are first created, after which no such functions are used again. Ensuring that KissIT provides the best possible performance.
     
    In osCommerce 2.3.1 product pages the gallery system ( bxGallery ) uses both browser and javascript resizing, KissIT improves this greatly by providing much smaller thumbnails.
     
    Please note: KissMT will only deal with images where the correct osCommerce wrapper function is used ( tep_image() ) and where numeric width and height are passed into the wrapper.
     
    Contribution location: KissIT Image Thumbnailer
  7. Like
    FWR Media got a reaction from al3ks in KissIT Image Thumnailer   
    KissIT Image Thumbnailer
     
    Compatibility: PHP 5.2/5.3/5.4 ( PHP 4 or ancient versions of PHP5 will NOT work )
    osCommerce 2.2
    osCommerce 2.3.X
     
    Main Benefits:
    Images should never be resized by the browser/html/javascript as this is EXTREMELY slow. Supplying the browser with correctly scaled images will speed up the loading of image rich osCommerce shops dramatically.
     
    Being a KISS ( Keep It Simple Stupid ) contribution this installs extremely quickly and with minimal core file changes.
     
    KissIT thumbnails any and all osCommerce images where the image dimensions are not equal to the image output dimensions.
     
    PHP image manipulation functions are very heavy on resources, KissIT is optimised to only use such functions when thumbs are first created, after which no such functions are used again. Ensuring that KissIT provides the best possible performance.
     
    In osCommerce 2.3.1 product pages the gallery system ( bxGallery ) uses both browser and javascript resizing, KissIT improves this greatly by providing much smaller thumbnails.
     
    Please note: KissMT will only deal with images where the correct osCommerce wrapper function is used ( tep_image() ) and where numeric width and height are passed into the wrapper.
     
    Contribution location: KissIT Image Thumbnailer
  8. Like
    FWR Media got a reaction from xtjie in auctionTastic   
    auctionTastic
     
    Create multiple product auctions in osCommerce
     
    Originally based on another auction contribution (credits.txt included) this is a total rewrite due to the original having unworkable code. At 27 odd files this is quite a large contribution although changes to core files has been kept to very very little.
     
    Full instructions are included:
     
    Package includes: -

    Auto Installer
    Upload folder (contains all files new to oscommerce)
    Modified files folder (files where we are modifying oscommerce code)
    Documentation folder (install instructions including manual file changes - new code syntax highlighted)

     
    Features:-
     

    Multiple auction products
    Products with attributes can be auctioned
    Products can be bought as normal even if auctioned
    Standard product price shown above auction price (including addition of attributes value)
    product info page refresh options in admin
    My Auction view in My Account
    Inform current highest bidders of new bids
    Inform winning bidders at end of auction
    Product added to cart of winning bidder at end of auction (Can't be removed by them)
    Valid HTML (I hope)
    Compatible with PHP4/5 MySQL4/5
    Error free (error_reporting(E_ALL))
    Compatible with .. RC2a (lower probably will work but untested)

     
    Feedback and bug reports appreciated as always.
     
    The files are http://addons.oscommerce.com/info/6431
     
    The contribution is set so that no others can add packages this is to maintain some quality. This does not stop users from making suggestions here that could be integrated into a later release.
     
    Finally I wanted to mention that this was not built by design it started off as a customer asking me to install another auctions contrib, the further I went into it the clearer it became that the previous contribution just couldn't work with the code in place, before I knew it I wasn't just changing code I was rewriting it . . the code would have been a lot better if planned from the start but it seems relatively solid.
  9. Like
    FWR Media got a reaction from zeemedia in KissER Error Handling & Debugging [contribution]   
    KissER Error Handling & Debugging
     
    a KISS contribution ( Keep It Simple Stupid )
     
    Compatibility:
    osCommerce ( MS2.2/RC ALL )
    PHP5.2+/5.3+ ( PHP 4 NOT supported )
     
    Installation:
    Simple 2-3 minutes
     
    Potential code conflicts:
    Effectively none the one exception would be if the tep_db_query() function had been modified for Chemos old query debug.
     
    What is it and what will it do for me?
     
    Main Benefits:
     


     
    Would you like to be able to find and handle errors that your site is currently hiding/suppressing?
    Would you like to have a file to check to see if your site has any errors while at the front end the users see nothing?
    Ever been developing a site and would like to see errors without them breaking up the page?
    Ever wanted to look for errors but don't want to "turn up" the error reporting because users would see them?
    Ever wanted to show a new client just how many errors their current osCommerce site has but they can't see?
    Would you like to stop errors from printing out full paths in view of the hacking world?
    Would you like to easily be able to debug: queries, variables, arrays, objects or site slowdowns?

     
    Gracefull Error Handling:
    Disclaimer: Some PHP errors like parse errors and fatal errors can NOT be handled gracefully.
     
    osCommerce has nothing in place at all to deal with errors, either you suppress errors ( error_reporting ( E_ALL & ~E_NOTICE ) ) which is the standard osCommerce set up. Or you set error reporting high ( error_reporting ( E_ALL | E_STRICT ) ) and the site falls apart with errors all over the shop. ( obviously not possible on a live site ).
     
    Understandably because of this the vast majority of osCommerce installations suppress all errors. What this means is that most osCommerce installations have tons of errors but the owners of the sites are happily ignorant of this fact. You will probably be surprised to know that some shops even suppress warnings, terrible!
     
    Also, when errors print to screen via standard PHP error handling they show your servers full path which is a potential serious security risk, KissER suppresses these full paths.
     
    There are those ( usually contributors of dodgy contributions or incapable developers ) who would tell you "don't worry about those, they are only notices .. they're fine!", rubbish!, errors are errors and a good shop should have none. An error free shop will be faster, more secure and easier to debug. Ignore errors at your peril!
     
    Think your site is error free? I very much doubt it!
     
    But the last thing I want my users to see is errors!!
     
    Agreed .. which is why KissER Error Handling & Debugging has settings where these errors can be printed to screen but only visible to you, or silently written to an error file where you can view and handle them at your leisure.
     
    Debugging:
     
    Powerful set of simple to use debugging tools where you can easily debug: -
     


     
    queries
    variables
    arrays
    objects

     
    You can also use "break points" to locate where a site is slowing down or breaking.
     
    Download the current version
  10. Like
    FWR Media got a reaction from zipicip in ULTIMATE Seo Urls 5 - by FWR Media   
    The instructions give specific code to replace but if yours is different it, in this case, makes no difference as we are replacing the entire function.
     
    Just replace the entire tep_href_link() function with the new version.
  11. Like
    FWR Media got a reaction from omulec in KissMT Dynamic SEO Meta & Canonical Header Tags   
    That looks about right at a glance.
     
    Just bear in mind that special language characters really should not be saved to a file .. it is bad practise due to encoding issues.
     
    However .. because with osCommerce there is no unified UTF-8 database ( different users choose different database encoding ) I had no choice but to put the language text in files.
     
    Make sure that whatever files you save with language text in you save as the correct character set for your site.
  12. Like
    FWR Media got a reaction from furhead in Ultimate Seo Urls 5 Pro   
    This is the original development thread for PRO the support topic is the USU5 support topic.
  13. Like
    FWR Media got a reaction from stevel in ULTIMATE Seo Urls 5 - by FWR Media   
    I agree with everything steve has said except for the above.
     
    Force Cookie usage is an ideal imo.
     
    http://forums.oscommerce.com/topic/370464-oscsid-why-you-should-lose-it/
  14. Like
    FWR Media got a reaction from Frank19 in Ultimate Seo Urls 5 Pro   
    I can replicate this and have logged the bug. Will look into it.
  15. Like
    FWR Media got a reaction from DavidMeans in KissMT Dynamic SEO Meta & Canonical Header Tags   
    KissMT Dynamic SEO Meta & Canonical Header Tags
    powerful seo meta tags & canonical elements in just 5 minutes.
     
    Compatibility:
    Oscommerce MS2.2, RC (all versions)
    PHP 5.2+/5.3+ ( PHP 4 NOT supported )
    MySQL 4/5
     
    Download:
    http://addons.oscommerce.com/info/7199
     
    Credits: ( thanks to all the beta testers without whom the initial KissMT release could never have been so solid )
    Special thanks to:
    Tom aka tomh/perfectpassion, Graeme aka knott, ken aka ken44, James aka jwilkins
    Thanks also to:
    Wim aka Mister_dj, Onno aka Onnootje, John aka berkedam, Fabian aka proimage,
    Daniel aka Morpheus1979, Marie aka mariemeh.
     
    Recommendations:
    We recommend the use of Ultimate Seo Urls 5/5 Pro as the perfect Seo Url addition to this contribution.
    http://addons.oscommerce.com/info/6768
     
    Header tags seo and other meta tag contributions:
    Want to try this out but leave your existing meta tags contribution in place? Do the safe 2 minute test! ( documentation/2_minute_test.html )
     
    Features:


     
    Fast 5 minute install ( easy for beginners and experienced )
    Dynamically generated meaningful meta tags with no complexity.
    No core osCommerce file changes ( except replacing the <title></title> in the catalog files ).
    Updates and upgrades with no core osCommerce file changes ( just replace the module directory ).
    Compatible with highly modified sites. ( due to "no core osCommerce file changes" )
    Modern Canonical elements, as recommended by Mat Cutts of Google, protecting you against indexed sessions ( osCsid ) and duplicate content.
    Automated Meta titles intelligently built (to your specified length)
    Automated keyword generation with stopwords removed. (multi language capable)
    Automated description generation.
    Automated meta title capitalisation excluding small words (multi language capable)
    Highly efficient system using 2 queries maximum and none after cache load. ( so ideal even for the biggest shops )
    Modern PHP 5.2/5.3 code
    Error free with no deprecated code ( even on high error reporting E_ALL | E_STRICT )
    Perfect for small and large shops ( due to efficiency )
    No complex manual "fiddling" required. ( works out of the box )
    HTML/XHTML output. ( easy to validate )
    Performance output for testing & development ( or just to exemplify efficiency )

     
    Extra features: ( requires additional install )


     
    Admin based settings ( database install )
    SEO Category content. Text content for every category page. ( also used in meta tags )
    SEO Manufacturers content. Text content for every manufacturers page. ( also used in meta tags )
    H1 tagged SEO automatic page titles. ( to your specified length )

  16. Like
    FWR Media got a reaction from Denkster in ULTIMATE Seo Urls 5 - by FWR Media   
    That is not correctly installed Steve, it should look like: -
     

    // set the language if (!tep_session_is_registered('language') || isset($HTTP_GET_VARS['language'])) { if (!tep_session_is_registered('language')) { tep_session_register('language'); tep_session_register('languages_id'); } include(DIR_WS_CLASSES . 'language.php'); $lng = new language(); if (isset($HTTP_GET_VARS['language']) && tep_not_null($HTTP_GET_VARS['language'])) { $lng->set_language($HTTP_GET_VARS['language']); } else { $lng->get_browser_language(); } $language = $lng->language['directory']; $languages_id = $lng->language['id']; } /** * ULTIMATE Seo Urls 5 PRO by FWR Media */ Usu_Main::i()->setVar( 'languages_id', $languages_id ) ->setVar( 'request_type', $request_type ) ->setVar( 'session_started', $session_started ) ->setVar( 'sid', $SID ) ->setVar( 'language', $language ) ->setVar( 'filename', $PHP_SELF ) ->initiate( ( isset( $lng ) && ( $lng instanceof language ) ) ? $lng : array(), $languages_id, $language ); // include the language translations require(DIR_WS_LANGUAGES . $language . '.php');
  17. Like
    FWR Media got a reaction from Denkster in ULTIMATE Seo Urls 5 - by FWR Media   
    Hi Steve
     
    Nice to see someone of your osCommerce experience giving it a good bashing :)
     
    Re: 500 errors the one potential cause which I'm aware of is that USU5 initially installs without using mod_rewrite and RewriteRules. This creates path based URIs like mydomain.com/index.php/my-great-category-c-47.
     
    Some servers are set up not to accept path based URIs which can cause an initial issue the following in .htaccess can resolve the problem: -
     
    AcceptPathInfo On
     
    The alternative being to add the .htaccess code and turn on the rewrite mode in admin. If the problem persists please don't hesitate to post here.
     
    Re: point one - yes good point, I'll add this to my "to do" list.
     
    Re: point 2 I'm not sure I get this bit ..
     
     
    I haven't looked for a while but was of the impression that USU5 installs if the required defines are not present. Let me know your thoughts please.
     
    Re: the feature request, it makes absolute sense of course.
     
    The script currently works as it does because I have found it generally a good idea ( given the experience level of most contrib users ) for my addons to "simply work" straight off not requiring the user to do anything. I have found the other approach creates confusion for them.
     
    Perhaps an option for more experienced user/developers to have a different install mode?
     
    Anyway .. thanks for trying it out and feeding back Steve, .. look forward to your thoughts.
  18. Like
    FWR Media got a reaction from JLewis in ULTIMATE Seo Urls 5 - by FWR Media   
    ULTIMATE Seo Urls 5
    by FWR Media
     
    New - Modern - More Efficient - Faster - Compatible - Less Queries
     
    Author: Robert Fisher - www.fwrmedia.co.uk
    Thanks to the beta testers:
    Tom Hodges-Hoyland, Jan Zonjee, toyicebear, GLCustoms
     
    Requirements:
    Server: *nix or Windows/IIS
     
    PHP requirements:
    Version: 5.2.0+ (actually 5.1.3+ I believe at time of launch)
    Zlib
    filter_var
    SPL (Standard PHP Library)
     
    Traditional Rewrite URIs require:
    *nix server (Windows/IIS does not have mod_rewrite)
    mod_rewrite (as part of the apache build)
    AllowOveride All (php.ini setting)
     
    Compatibility:
    MySQL 5 (Strict Trans Tables)
    Traditional rewrite uris (*nix) produce exactly the same uris as the old 2 series (assuming the same settings)
    The above means that should you upgrade from 2 series you don't have to worry about changed links
    Installation difficulty:
    There are only eight small changes to just seven files so this is easy and quick. (2 minute "drop on top" install for devs/testers)
    Simple database installer.
     
    Upgrade from old series 2 seo urls:
    Upgrade instructions included.
    Removal script for old database entries.
    Simple database installer.
     
    New:
    Works on Windows/IIS (BETA at time of launch due to lack of extensive testing)
    Two seo uri choices .. standard and rewrite .. Windows/IIS can only use standard
    error free - error_reporting(E_ALL | E_STRICT)
    Modular design
    Plug in modules for contributions
    Simple database installer
    Inbuilt uri validation
    301 redirects
    Custom 404 Page not found
    Zero queries or database use after cache fully loaded
    Cache saving is sequential rather than one big DB hit
    Admin selectable debug output
    File (array) based character conversion (BETA at time of launch)
    Simple cache life in admin based on "cache days"
    Extensive security measures to safeguard the querystring
    Series 2 database removal tool
    Ability to switch between uri types via admin without changing any code as below:
    On: standard seo uris - rewrite seo uris
    Off: standard osC uris - experimental search engine safe uris
     
    Included Modules:
    Products
    Categories
    Manufacturers
    Popup image
     
    Included contribution modules (ALPHA at time of release as untested):
    Information Pages
    Articles, Article Info
    Links
    Newsdesk Index, Newsdesk Info, Newsdesk Reviews Info, Newsdesk Reviews Article
     
    Features Removed (from old 2 series):
    Page cache compatibility - the original author suggests that this should not be installed.
     
    The contribution can be found at: -
     
    http://addons.oscommerce.com/info/6768
  19. Like
    FWR Media got a reaction from Denkster in ULTIMATE Seo Urls 5 - by FWR Media   
    Well spotted!
     
    I can't believe this hasn't been picked up before.
     
    That is indeed a typo, a carry over from the old USU5.
     
    Everyone should change this code.
     
    Thanks for the report Manniman.
  20. Like
    FWR Media got a reaction from Denkster in ULTIMATE Seo Urls 5 - by FWR Media   
    Is it my eyes ( no pun intended ) or is that a capital I at the front of Index.php
  21. Like
    FWR Media got a reaction from Denkster in ULTIMATE Seo Urls 5 - by FWR Media   
    Then again., maybe not. Maybe some versions of IIS produce Index.php when access at domain root with no filename.
     
    Try this.
     
    catalog/includes/modules/ultimate_seo_urls5/main/usu5.php ( lines 179 - 182 )
     
    Find ..
     

    public function setVar( $var_name, $value ) { $this->vars[$var_name] = $value; return $this; } // end method
     
    Change to ..
     

    public function setVar( $var_name, $value ) { if ( $var_name == 'filename' ) $value = strtolower( $value ); $this->vars[$var_name] = $value; return $this; } // end method
     
    see if that makes a difference.
  22. Like
    FWR Media got a reaction from Denkster in ULTIMATE Seo Urls 5 - by FWR Media   
    Glad you got it sorted but I still need my code checked please. USU5 needs to function correctly with IIS default document set at Index.php.
     
    Could you set the server back and try my code please?
  23. Like
    FWR Media got a reaction from Denkster in ULTIMATE Seo Urls 5 - by FWR Media   
    Thanks for taking the time to do that.
     
    The whole scenario now will benefit other IIS users.
  24. Like
    FWR Media got a reaction from muhammad_barki in Product links redirecting to homepage   
    Sounds like the standard result of adding a cheap Template Monster or other template.
  25. Like
    FWR Media got a reaction from Hotclutch in ULTIMATE Seo Urls 5 - by FWR Media   
    Hi Ashley
     
    Please try the attached file and post back here how it handles your issue.
     
    This replacement file intends to handle an issue where an old/changed cPath would not 301 redirect to the new version.
     
    catalog/includes/modules/ultimate_seo_urls5/main/validator.php
     
    validator.php
×