Guest Posted June 26, 2007 Posted June 26, 2007 Is there a module that can be installed for creating alt-tags for all images that are on a web site? Unfortunately my developer did not implement this feature and I think it is seriously effecting my SEO rating. Please assist me if you can. By the way I'm a newbie when it comes to php. :blush: -Lee
Jack_mcs Posted June 26, 2007 Posted June 26, 2007 The alt tags are included by default for the products. What images are you referring to? Jack Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
Guest Posted June 26, 2007 Posted June 26, 2007 Well for some reason mine weren't included because none of my images have alt tags. Especially my brand logos on the homepage, which are the ones I think that the SEO programs are hinting on. I'm not quite sure. :blink:
shooter-boy Posted June 26, 2007 Posted June 26, 2007 Sounds a little strange to me, as the tep_image function would have to have had it removed. Can you post a link to the site? Rob Rob Bell - Inspired Graphix Customising osCommerce in Australia, and the world! View my profile for web and email links. I'm sorry, but i cannot offer Free support via PM etc, and osCommerce forums prohibit me from putting any reference to paid support in my signauture. However viewing my profile may provide links to my website or something like that which you may find useful.
Guest Posted June 26, 2007 Posted June 26, 2007 Sounds a little strange to me, as the tep_image function would have to have had it removed. Can you post a link to the site? Rob PMed you with the site.
Jack_mcs Posted June 26, 2007 Posted June 26, 2007 Well for some reason mine weren't included because none of my images have alt tags. Especially my brand logos on the homepage, which are the ones I think that the SEO programs are hinting on. I'm not quite sure. :blink:If you are using a template, the code for the tags may not be used. In that case you will have to add them back in wherever the code to display an image appears. Jack Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
Guest Posted June 26, 2007 Posted June 26, 2007 If you are using a template, the code for the tags may not be used. In that case you will have to add them back in wherever the code to display an image appears. Jack Ok you totally lost me there? I'm a newbie with OsCommerce... Sorry..
Jack_mcs Posted June 26, 2007 Posted June 26, 2007 A template is a set of files used to change the look of your shop. They can be purchased at many sites. Most of the large template sites (and maybe the others) alter the oscommerce code by deleting it or changing it to html. If that has been done to your shop, then it would explain why the tags won't work. If you are using a standard oscommerce code set, then please post your includes/header.php file here so someone can find the problem with your logo not having an alt tag (you may want to post it either way in case it has been changed and you are not aware of it). Jack Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
Guest Posted June 26, 2007 Posted June 26, 2007 Ok I see, it's not just my logo that doesn't have the alt-tags it's also my brand logos and every other image that could be picked up by a search engine. I will look for that file right now and see if I can post it. You seem to be a great help and I really appreciate that! :thumbsup: I think after I spend some time hanging out here I may become an OsCommerce expert. :lol:
Guest Posted June 26, 2007 Posted June 26, 2007 Ok here is what I found. header.php File Type: PHP script text add('header', WARNING_INSTALL_DIRECTORY_EXISTS, 'warning'); } } // check if the configure.php file is writeable if (WARN_CONFIG_WRITEABLE == 'true') { if ( (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) && (is_writeable(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) ) { $messageStack->add('header', WARNING_CONFIG_FILE_WRITEABLE, 'warning'); } } // check if the session folder is writeable if (WARN_SESSION_DIRECTORY_NOT_WRITEABLE == 'true') { if (STORE_SESSIONS == '') { if (!is_dir(tep_session_save_path())) { $messageStack->add('header', WARNING_SESSION_DIRECTORY_NON_EXISTENT, 'warning'); } elseif (!is_writeable(tep_session_save_path())) { $messageStack->add('header', WARNING_SESSION_DIRECTORY_NOT_WRITEABLE, 'warning'); } } } // check session.auto_start is disabled if ( (function_exists('ini_get')) && (WARN_SESSION_AUTO_START == 'true') ) { if (ini_get('session.auto_start') == '1') { $messageStack->add('header', WARNING_SESSION_AUTO_START, 'warning'); } } if ( (WARN_DOWNLOAD_DIRECTORY_NOT_READABLE == 'true') && (DOWNLOAD_ENABLED == 'true') ) { if (!is_dir(DIR_FS_DOWNLOAD)) { $messageStack->add('header', WARNING_DOWNLOAD_DIRECTORY_NON_EXISTENT, 'warning'); } } if ($messageStack->size('header') > 0) { echo $messageStack->output('header'); } ?> '; ?> ' . tep_image(DIR_WS_IMAGES . 'header_cart.gif', HEADER_TITLE_CART_CONTENTS) . ' ' . tep_image(DIR_WS_IMAGES . 'header_checkout.gif', HEADER_TITLE_CHECKOUT) . ''; ?> trail(' » '); ?> | | |
Jack_mcs Posted June 27, 2007 Posted June 27, 2007 I'm assuming you only copied part of the code since what you show will not work at all. If it does work though, the part that is for the alt tag is HEADER_TITLE_CHECKOUT and that is correct code for a basic shop. I suppose the text for it, which is defined in includes/languages/english.php, could have been deleted. You should look in that file and see if there is an entry for HEADER_TITLE_CHECKOUT and that it has text associated with it. Jack Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
Guest Posted June 27, 2007 Posted June 27, 2007 I'm assuming you only copied part of the code since what you show will not work at all. If it does work though, the part that is for the alt tag is HEADER_TITLE_CHECKOUT and that is correct code for a basic shop. I suppose the text for it, which is defined in includes/languages/english.php, could have been deleted. You should look in that file and see if there is an entry for HEADER_TITLE_CHECKOUT and that it has text associated with it. Jack No this is the whole file. header.php.
Jack_mcs Posted June 27, 2007 Posted June 27, 2007 Oh, then that is the problem. It is missing quite a bit of code. You can download a new copy from the above menu - solutions->Downloads - but if your file had been changed in any way from the stock shop, it may not work correctly. Jack Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
Guest Posted June 27, 2007 Posted June 27, 2007 Oh, then that is the problem. It is missing quite a bit of code. You can download a new copy from the above menu - solutions->Downloads - but if your file had been changed in any way from the stock shop, it may not work correctly. Jack What about the appearance? Will it effect that? What exactly does this file control? :blink:
Jack_mcs Posted June 28, 2007 Posted June 28, 2007 Yes, it will. That file controls the header for the shop. If it appears as you posted it, the shop won't load without errors. I suggest download the oscommerce zip file and using the file from there. It will be better than what you have. Jack Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
Guest Posted June 28, 2007 Posted June 28, 2007 Yes, it will. That file controls the header for the shop. If it appears as you posted it, the shop won't load without errors.I suggest download the oscommerce zip file and using the file from there. It will be better than what you have. Jack I actually got my own programmer from a web site that I posted earlier and got in trouble for "advertising" it. He is instrumental when it comes to OsCommerce and PHP. My site is not only fixed, but is also 97% search engine optimized and it's only going to get better. He even installed a new module inside the admin control panel for creating alt tags for the manufacturer's names. I'm so pleased right now, I'm lost for words. Then to top it all off he gave me a list of all files he changed and exactly what he changed for me, so I can use it as a reference in the future. He is now my official offline programmer. :thumbsup:
Recommended Posts
Archived
This topic is now archived and is closed to further replies.