Guest rukiman Posted September 17, 2005 Share Posted September 17, 2005 (edited) File Name :: Search engine friendly URLs with PHP session killer and Meta tags Mod v4.0 Author :: Joseph Rukshan Fonseka Category :: Major Description :: Search engine friendly URLs with PHP session killer and Meta tags Mod for CubeCart 3 Version 4.0 Author: Joseph Rukshan Fonseka Email: [email protected] Mod website: http://www.intimatewear.com.au/cc3_mods/ This is a mod for cubecart 3.0.2 and newer BACK UP!!!! BACK UP!!!! License --------------------------------------------------------- You may use this mod on your cube cart without purchasing a license if you leave the search engine friendly link on the footer intact. Removing the link will violate the license. If you wish for the link to be removed you must purchase a license. The license purchased is for cube cart(s) running on a SINGLE domain name. NOTE!! This license for the mod is in NO WAY affliated with cube cart or Devellion Ltd at all!!! I suggest you download the mod and install it and only if you are happy with the results and wish to remove the search engine friendly link at the footer then consider purchasing a license for the mod! To obtain license go to http://www.intimatewear.com.au/cc3_mods/ Purchase the mod then contact me on my email and provide me with the domain names of both your live and test server (if different from localhost or 127.0.0.1) and I will send you a license copy without the link in the footer. NOTE!! Please install the mod first to make sure it is working and you are happy with it BEFORE you decide to buy a license. Licenses are NON refundable!!! Requirements --------------------------------------------------------- Your cube cart must be running on Apache (Windows or Linux) Your apache server will need to support either the RewriteRule OR directory 'look backs'. Most servers should support either one, however there are a minority of servers that do not support neither, so test the mod on your server. Features --------------------------------------------------------- * URLS in cube cart are easy for humans to read * URLS in cube cart are easy for search engine to spider * PHP sessions are killed if the user agent is identified as a search engine * Large list of known spiders. Taken from the OsCommerce project * Boxes such as shopping cart and sessions are hidden if the user agent is identified as a search engine These links have redir parameters tagged to the URLs which can exhaust a spider because of the infinite amount of links its creates. As of version 2.0 * Product and category names appear within the URL * Will strip dangerous characters from the product/category when generating the url * Does not require the RewriteRule for this mod to work * Cube cart can be in a folder other than the root directory, no special mods required for this. As of version 3.0 * Fixed bug with currency and language dropdown boxes * Fixed bug with search * Fixed bug with print form * Fixed bug with more images * Fixed other miscellaneous bugs * Added admin on/off search engine friendly url switch * Displays category names within the title bar just like the products. As of version 3.1 * Fixed bug where if a product had options, the buy button from within a category jumped to the homepage * Added switch to admin so user can now specify whether their server supports .htaccess files and the ForceType keyword. * Merged up mod to cube cart 3.0.2 files. As of version 3.2 * Fixed minor bug but huge impact. Paypal gateway wasn't working. AND possibly other gateways! As of version 4.0 * accented latin characters are now normalized within the url. * meta titles, descriptions and keywords can be customized for each sitedoc, product and category * product names and category structures now appear within the page titles * much better server support with the reintroduction of the RewriteRule rule * Fixed numerous other minor bugs Instructions --------------------------------------------------------- * Back up your cube cart before doing anything! * If you have a fresh install of cube cart version 3.0.2 then simply overwrite the files in your cube cart with the files in the zip file. NOTE! Make sure your cube cart is installed correctly and working before you apply this mod! * If you have made ANY mods to your cube cart or your cube cart is NOT version 3.0.2 then I suggest you use WinMerge and merge the search engine mods to your cube cart files. All changes are clearly marked with a comment to make it easy to identify what to merge. PLEASE NOTE!! If you have previously installed an older version of this MOD, then I suggest you undo all changes before applying this MOD. Easiest way is to do a diff between your cubecart and the original version of your cubecart and revert back all search engine friendly mods. If you do not know how to use winmerge or merge software DO NOT even attempt to install this on your modded cubecart. Get someone to do it for you! I cannot provide any support if you decide to install the mod yourself. * After moding your cube cart. Go to Store config -> General Settings in your admin panel. Scroll down and select YES for 'use search engine friendly URL' and click on the 'update settings' button. This will enable the server configuration setting. * Now you must select a server configuration to use. I suggest trying them in the order of: 1) Apache RewriteRule supported 2) Apache directory 'lookback' and ForceType supported 3) Apache directory 'lookback' supported only Select a server configuration and click on the 'update settings' button. Now go to your store and browse through it, if you can view your products then the server configuration you selected is valid for your server. If you have gone through the whole list and still cannot browse through your store then try following steps. 1) Select 'Apache RewriteRule supported' then edit the ORGINAL .htaccess file in the root directory and delete everything inbetween '# 1)' and '# end 1)'. Now try browsing your store. 2) If that did not work then select 'Apache directory 'lookback' and ForceType supported' then edit the ORGINAL .htaccess file in the root directory and delete everything inbetween '# 2)' and '# end 2)'. Now try browsing your store. 3) If that did not work then select 'Apache directory 'lookback' supported only' then delete the .htaccess file in the root directory. If your server allows .htaccess files then you don't need to delete it instead edit the file and delete everything inbetween '# <rf> search engine friendly mod' and '# <rf> end mod' In none of these works, then unfortunately you cannot use search engine friendly urls on your store. So please select NO to 'use search engine friendly URL'. You can contact your webhost admin and check with them if you can use the RewriteRule OR AcceptPathInfo (turns on Apache's directory 'lookback' feature). You do not need to turn on search engine friendly URL to use the sef meta tags however. * If you have search engine friendly urls working then download Xenu Link from http://home.snafu.de/tilman/xenulink.html, use this to check your cube cart. Point to the homepage. There should be a finite amount of pages crawled and hopefully no URLs with question marks in them. If you get a finite amount of pages and all links are Ok, congratulations your cube cart is search engine friendly! * If you wish to use the sef meta tags then click on the install link in the admin panel to extend your database tables. Then you can select 'Combine with global meta tags' to use the feature. Problems --------------------------------------------------------------- 1) If you can't get this mod working on your shop. I suggest to install a test cart that is a clean fresh install of cube cart 3.0.2 then apply this mod. If that works perphaps the merge to your cube cart might not have been 100% correct. 2) If you notice something odd/bug about your cube cart's behaviour. Turn off search engine friendly URLs from the admin panel and try again. If it happens still it will most likely be a cube cart bug. 3) If you think it is a genuine search engine friendly mod bug, please test it on my test cart http://www.intimatewear.com.au/testcart if it happens there too, email me the details of the bug. Disclaimer --------------------------------------------------------- BACK UP your cube cart files and database and try the mod first on a non active cube cart. I am not responsible for any loss of data or any thing else for that matter. It is your choice to add this mod to your cube cart and you do so at your own risk. Updated Sun, Sep 18 2005 5:17 am View File Edited September 18, 2005 by rukiman Link to comment Share on other sites More sharing options...
Guest rukiman Posted September 18, 2005 Share Posted September 18, 2005 I updated sef_urls.inc.php to handle stores with a large product base line. So please overwrite this file with the one in the zip file if you have already installed v4.0 of this mod prior to 17/09/2005. Link to comment Share on other sites More sharing options...
Guest Posted September 18, 2005 Share Posted September 18, 2005 very nice work. Installed and i see you found a way round the problem of needing the category divider as a /. Very impressed. As with the cube cart liscense, if i get the shop working and the client is happy i will liscence this mod without hesitation. Cheers Tim Link to comment Share on other sites More sharing options...
Guest rukiman Posted September 19, 2005 Share Posted September 19, 2005 Hey there. No worries ;) Link to comment Share on other sites More sharing options...
Guest sunshine Posted September 20, 2005 Share Posted September 20, 2005 Hi Rukiman, To clarify, can I just overwrite my files if this is a new site that has not gone live yet? 'I updated sef_urls.inc.php to handle stores with a large product base line. So please overwrite this file with the one in the zip file if you have already installed this mod prior to 17/09/2005.' Thank you in advance and thank you more for this mod. Link to comment Share on other sites More sharing options...
Guest rukiman Posted September 20, 2005 Share Posted September 20, 2005 Yes just overwrite the files in your cube cart with the files in the zip if you have cube cart 3.0.2 and not made any mods to the source code ignoring the skin. The zip file is the complete solution including the updated sef_urls.inc.php file Link to comment Share on other sites More sharing options...
Guest sunshine Posted September 20, 2005 Share Posted September 20, 2005 Hi Rukiman, Done! Perfecto Link to comment Share on other sites More sharing options...
Guest rukiman Posted September 22, 2005 Share Posted September 22, 2005 (edited) File Name :: Search engine friendly URLs with PHP session killer and Meta tags Mod v4.1 Author :: Joseph Rukshan Fonseka Category :: Major Description :: Search engine friendly URLs with PHP session killer and Meta tags Mod for CubeCart 3 Version 4.1 Author: Joseph Rukshan Fonseka Email: [email protected] Mod website: http://www.intimatewear.com.au/cc3_mods/ This is a mod for cubecart 3.0.3 and newer BACK UP!!!! BACK UP!!!! License --------------------------------------------------------- You may use this mod on your cube cart without purchasing a license if you leave the search engine friendly link on the footer intact. Removing the link will violate the license. If you wish for the link to be removed you must purchase a license. The license purchased is for cube cart(s) running on a SINGLE domain name. NOTE!! This license for the mod is in NO WAY affliated with cube cart or Devellion Ltd at all!!! I suggest you download the mod and install it and only if you are happy with the results and wish to remove the search engine friendly link at the footer then consider purchasing a license for the mod! To obtain a license go to http://www.intimatewear.com.au/cc3_mods/ Purchase the mod then contact me on my email and provide me with the domain name of your live server and I will send you a licensed copy without the link in the footer. NOTE!! Please install the mod first to make sure it is working and you are happy with it BEFORE you decide to buy a license. Licenses are NON refundable!!! NOTE!! If you have previously bought a license and upgraded to a later version of the mod, you must get it reissued DO NOT reuse your old licensed file it will be buggy!! Please visit the above website to get it reissued. Requirements --------------------------------------------------------- Your cube cart must be running on Apache (Windows or Linux) Your apache server will need to support either the RewriteRule OR directory 'look backs'. Most servers should support either one, however there are a minority of servers that do not support neither, so test the mod on your server. Features --------------------------------------------------------- * URLS in cube cart are easy for humans to read * URLS in cube cart are easy for search engine to spider * PHP sessions are killed if the user agent is identified as a search engine * Large list of known spiders. Taken from the OsCommerce project * Boxes such as shopping cart and sessions are hidden if the user agent is identified as a search engine These links have redir parameters tagged to the URLs which can exhaust a spider because of the infinite amount of links its creates. As of version 2.0 * Product and category names appear within the URL * Will strip dangerous characters from the product/category when generating the url * Does not require the RewriteRule for this mod to work * Cube cart can be in a folder other than the root directory, no special mods required for this. As of version 3.0 * Fixed bug with currency and language dropdown boxes * Fixed bug with search * Fixed bug with print form * Fixed bug with more images * Fixed other miscellaneous bugs * Added admin on/off search engine friendly url switch * Displays category names within the title bar just like the products. As of version 3.1 * Fixed bug where if a product had options, the buy button from within a category jumped to the homepage * Added switch to admin so user can now specify whether their server supports .htaccess files and the ForceType keyword. * Merged up mod to cube cart 3.0.2 files. As of version 3.2 * Fixed minor bug but huge impact. Paypal gateway wasn't working. AND possibly other gateways! As of version 4.0 * accented latin characters are now normalized within the url. * meta titles, descriptions and keywords can be customized for each sitedoc, product and category * product names and category structures now appear within the page titles * much better server support with the reintroduction of the RewriteRule rule * Fixed numerous other minor bugs As of version 4.1 * Page titles are displayed in the current language selected by the user, for search engines it will always be the default language. * Merged up mod to cube cart 3.0.3 files. Instructions --------------------------------------------------------- * Back up your cube cart before doing anything! * If you have a fresh install of cube cart version 3.0.3 then simply overwrite the files in your cube cart with the files in the zip file. NOTE! Make sure your cube cart is installed correctly and working before you apply this mod! * If you have made ANY mods to your cube cart or your cube cart is NOT version 3.0.3 then I suggest you use WinMerge and merge the search engine mods to your cube cart files. All changes are clearly marked with a comment to make it easy to identify what to merge. PLEASE NOTE!! If you have previously installed an older version of this MOD, then I suggest you undo all changes before applying this MOD. Easiest way is to do a diff between your cubecart and the original version of your cubecart and revert back all search engine friendly mods. If you do not know how to use winmerge or merge software DO NOT even attempt to install this on your modded cubecart. Get someone to do it for you! I cannot provide any support if you decide to install the mod yourself. * After moding your cube cart. Go to Store config -> General Settings in your admin panel. Scroll down and select YES for 'use search engine friendly URL' and click on the 'update settings' button. This will enable the server configuration setting in the admin panel. * Now you must select a server configuration to use from the admin panel. I suggest trying them in the order of: 1) Apache RewriteRule supported 2) Apache directory 'lookback' and ForceType supported 3) Apache directory 'lookback' supported only Select a server configuration and click on the 'update settings' button. Now go to your store and browse through it, if you can view your products then the server configuration you selected is valid for your server. If you have gone through the whole list and still cannot browse through your store then try following steps. 1) Select 'Apache RewriteRule supported' then edit the ORGINAL .htaccess file in the root directory and delete everything inbetween '# 1)' and '# end 1)'. Now try browsing your store. 2) If that did not work then select 'Apache directory 'lookback' and ForceType supported' then edit the ORGINAL .htaccess file in the root directory and delete everything inbetween '# 2)' and '# end 2)'. Now try browsing your store. 3) If that did not work then select 'Apache directory 'lookback' supported only' then delete the .htaccess file in the root directory. If your server allows .htaccess files then you don't need to delete it instead edit the file and delete everything inbetween '# <rf> search engine friendly mod' and '# <rf> end mod' In none of these works, then unfortunately you cannot use search engine friendly urls on your store. So please select NO to 'use search engine friendly URL'. You can contact your webhost admin and check with them if you can use the RewriteRule OR AcceptPathInfo (turns on Apache's directory 'lookback' feature). You do not need to turn on search engine friendly URLs to use the sef meta tags however. * If you have search engine friendly urls working then download Xenu Link from http://home.snafu.de/tilman/xenulink.html, use this to check your cube cart. Point to the homepage. There should be a finite amount of pages crawled and hopefully no URLs with question marks in them. If you get a finite amount of pages and all links are Ok, congratulations your cube cart is search engine friendly! * If you wish to use the sef meta tags then click on the install link in the admin panel to extend your database tables. Then you can select 'Combine with global meta tags' to use the feature. Problems --------------------------------------------------------------- 1) If you can't get this mod working on your shop. I suggest to install a test cart that is a clean fresh install of cube cart 3.0.3 then apply this mod. If that works perphaps the merge to your cube cart might not have been 100% correct. 2) If you notice something odd/bug about your cube cart's behaviour. Turn off search engine friendly URLs from the admin panel and try again. If it happens still it will most likely be a cube cart bug. 3) If you think it is a genuine search engine friendly mod bug, please test it on my test cart http://www.intimatewear.com.au/testcart if it happens there too, email me the details of the bug. Disclaimer --------------------------------------------------------- BACK UP your cube cart files and database and try the mod first on a non active cube cart. I am not responsible for any loss of data or any thing else for that matter. It is your choice to add this mod to your cube cart and you do so at your own risk. Updated Sat, Sep 24 2005 5:03 pm View File Edited September 24, 2005 by rukiman Link to comment Share on other sites More sharing options...
Guest rukiman Posted September 22, 2005 Share Posted September 22, 2005 Session ids are only generated if the user IS NOT a search engine. So if your user agent was identified as a search engine you would not see session ids. To test this. Go to google and search for 'www.intimatewear.com.au' then click on 'Find pages from this site'. Notice how there are no sessions ids for any of the pages indexed? Note that the results indexed atm are from the version 3.2 of my mod and hence you don't see proper page titles. Also notice that there is a very finite amount of pages indexed, the whole site has been indexed however there are no duplicate pages with different urls. Session ids are important for customers thats how the shopping cart remembers what items they have bought. Link to comment Share on other sites More sharing options...
Guest rukiman Posted September 22, 2005 Share Posted September 22, 2005 I will upgrade the baseline of the mod to 3.0.3 tonight so that those not brave enough to merge with the latest cube cart can use it. Link to comment Share on other sites More sharing options...
Guest rukiman Posted September 24, 2005 Share Posted September 24, 2005 search engine mod is updated to 4.1. If you have upgraded to version 3.0.3 of cube cart YOU MUST reintall this mod! There was a conflict in one of the files and this has now been addressed. Please read the readme.txt for more information. Link to comment Share on other sites More sharing options...
Guest rukiman Posted September 28, 2005 Share Posted September 28, 2005 There is a confirmed search engine mod bug FYI It only happens if you use the rewriterule server option AND your products have options. In this scenario the "buy" button will not work. It is to do with not being able to post data to a redirected url AND also extra new lines at the end of viewCat.inc.php. Next release (hopefully final unless other bugs are found) will address this. If you have discovered any other bugs let me know ASAP. Link to comment Share on other sites More sharing options...
Guest cntgifts Posted September 28, 2005 Share Posted September 28, 2005 ive tried the settigns on all 3 and i get the same error when clicking the buy now Warning: Cannot modify header information - headers already sent by (output started at /usr/home/abreas/public_html/rwwholesale/includes/content/viewCat.inc.php:352) in /usr/home/abreas/public_html/rwwholesale/includes/boxes/shoppingCart.inc.php on line 56 Link to comment Share on other sites More sharing options...
Guest rukiman Posted September 29, 2005 Share Posted September 29, 2005 Yes that error is caused by the extra new lines at the end of viewCat.inc.php in the includes/content directory just delete those extra lines. Link to comment Share on other sites More sharing options...
Guest Posted September 29, 2005 Share Posted September 29, 2005 Done installed works great Well done nice mod Thank you BTW whats the best way the place the meta keywords on the site any ideas www.firesales.com.au Link to comment Share on other sites More sharing options...
Guest rukiman Posted September 29, 2005 Share Posted September 29, 2005 ;) No worries. I don't understand the question. Do you mean how to add meta keywords? Go to the admin panel and browse to any product, category or sitedoc, if you have enabled "sef meta tags" you will see new fields to add your metas. If you meant whats a good way of making use of keywords in your site. Then take a look in this thread for some info. http://www.cubecart.com/site/forums/index....l=search+engine Link to comment Share on other sites More sharing options...
Guest Posted September 30, 2005 Share Posted September 30, 2005 After looking around my admin after the mod was in found the meta and keyword boxes down the bottom of the page. OOOOPPPSS. Link to comment Share on other sites More sharing options...
Guest kilobit Posted October 6, 2005 Share Posted October 6, 2005 Yea doesnt work on 3.0.4 i get his error after installin gmod on clecn cube 3.0.4 install. Fatal error: Call to undefined function: treatget() in /home/#####/public_html/cubecart3.0.4/includes/content/login.inc.php on line 74 Link to comment Share on other sites More sharing options...
Guest rukiman Posted October 6, 2005 Share Posted October 6, 2005 You cannot simply drop this mod into you cube cart if you have any version of cube cart other than 3.0.3. You will need to merge it to your cube cart if you are using 3.0.4. I will release a newer version sometime in the next 2 weeks with the baseline of the mod upgraded to the latest cube cart (so people can use drop it into their latest cubecart) and also addresses the remaining issue of the buy button when the rewriterule server options is selected. Will also include a robot.txt file. Link to comment Share on other sites More sharing options...
Guest Posted October 8, 2005 Share Posted October 8, 2005 ive just tried it, and i love it! will be purchasing a license as soon as the store is complete! one request though, you know how you have the option to combine the browser title with the global meta tags? you should also have the option to completely replace the global meta tags with the selected browser title. what ya think? Link to comment Share on other sites More sharing options...
Guest Posted October 8, 2005 Share Posted October 8, 2005 If you want to just have the cat and product metas on listed just delete the global metas on the general settings on the admin firesales.com.au Link to comment Share on other sites More sharing options...
Guest Posted October 8, 2005 Share Posted October 8, 2005 yeah, i thought of that just after i posted the message Tried winmerging into cc v3.0.4. Still doesnt work. everything works fine eccept for client login and register, and the search function. all give parse errors in include files. Link to comment Share on other sites More sharing options...
Guest Posted October 18, 2005 Share Posted October 18, 2005 Hows this doing i'm running v3.0.5 and looking forward to the release of this mod for newest version ;) Link to comment Share on other sites More sharing options...
Guest rukiman Posted October 18, 2005 Share Posted October 18, 2005 LOL coming up slow. Been moving house and only downloaded 3.0.5 two days ago and installing it today. Unfortunately merging wasn't as simple as I was hoping as session code has been changed in 3.0.5. I'd say give till Fri , Sun at the most ;) Link to comment Share on other sites More sharing options...
Guest Posted October 18, 2005 Share Posted October 18, 2005 splendid thank you very much ;) Link to comment Share on other sites More sharing options...
Recommended Posts