naylwin Posted October 5, 2007 Share Posted October 5, 2007 Sweet and short! If you are one of those who care about the SEO [search Engine Optimization] stuffs and don't want to deal with too many FINDs and REPLACEs and ask for support at forum and wait for reply about a week or so. Here is the contribution you might want to try it out. I personally wrote this contribution to use it on my site although there are many excellent contributions out there because I am one of those who don't want to deal with too many FINDs and REPLACEs. You will get this contribution installed on your OSC with one SQL command, one new file upload, and two FINDs and REPLACEs. Nay Quote Link to comment Share on other sites More sharing options...
naylwin Posted October 5, 2007 Author Share Posted October 5, 2007 Here is the contribution: http://addons.oscommerce.com/info/5455 [Please note that I rarely have time to come to this forum. So, please be patient for the reply. Thanks] Nay Quote Link to comment Share on other sites More sharing options...
futurestar Posted November 20, 2007 Share Posted November 20, 2007 Naylwin, Thanks for your contribution, it looks very simple to setup. However, I believe I have done everything correctly and it's not working for me. I have tried previous header mods, but I believe I removed all of the code correctly. I definitely have the DB setup correctly and have input test data. If you could take a quick look at the application_top.php and product_info.php here, I would appreciate it: http://www.vegasmaximus.com/UpdatedFiles.rar When the products are viewed, here is what is being displayed in the source code... <title>TITLE HERE</title><meta name="description" content=""><meta name="keywords" content=""> Thanks for your help! Quote Link to comment Share on other sites More sharing options...
naylwin Posted November 22, 2007 Author Share Posted November 22, 2007 Naylwin, Thanks for your contribution, it looks very simple to setup. However, I believe I have done everything correctly and it's not working for me. I have tried previous header mods, but I believe I removed all of the code correctly. I definitely have the DB setup correctly and have input test data. If you could take a quick look at the application_top.php and product_info.php here, I would appreciate it: http://www.vegasmaximus.com/UpdatedFiles.rar When the products are viewed, here is what is being displayed in the source code... <title>TITLE HERE</title><meta name="description" content=""><meta name="keywords" content=""> Thanks for your help! Hi futurestar! It seems that you have installed the STS 4.5 in your system. I believe that might be causing the problem. STS usually comes with the feature to handle custom variables such as $sts->template['MyText']='Hello World'; in catalog/includes/modules/sts_inc/sts_user_code.php. You can modify this code to use with title, meta tags, and etc. If that is too complicated for you, I would suggest you to place the code: <?php /* Nay Meta Tags */ if(isset($header_tags) && $header_tags){ if(!$header_tags->his_empty()){ echo $header_tags->houtput('META'); $htitle = (isset($header_tags->htitle) && $header_tags->htitle)?$header_tags->htitle:''; } } /* End Nay */ ?> <title><?php echo (isset($htitle) && tep_not_null($htitle))?$htitle:TITLE; ?></title> from product_info.php line: 24 to 34 to head section of product_info template (possibly catalog/includes/sts_templates/full/product_info.php_3.html). I hope this helps. Let me know if that works out for you. Nay Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.