VPSsupport Posted November 8, 2005 Posted November 8, 2005 I have checked all the files and I cant seem to find where or why my page title is wrong. Any ideas? many thanks Regards, Clive
MoisesZaragoza Posted November 8, 2005 Posted November 8, 2005 well try in catalog>admin>includes>languages>english.php or in catalog>includes>languages>english.php at the end of the day the code will be good
Jack_mcs Posted November 8, 2005 Posted November 8, 2005 That looks like a Header Tags define. If it is, you are missing the define for the about us page in includes/languages/english/header_tags.php. 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
VPSsupport Posted November 8, 2005 Author Posted November 8, 2005 That looks like a Header Tags define. If it is, you are missing the define for the about us page in includes/languages/english/header_tags.php. Jack Thanks Jack, but I checked the page you suggested and it is already defined - any other ideas? Regards, Clive
Saxas Posted November 8, 2005 Posted November 8, 2005 I think you mean the link in the informationbox that isn't correct? In that case you'll have to make a link in includes/boxes/information.php with something like: '<a href="' . tep_href_link(FILENAME_aboutus) . '">' . BOX_INFORMATION_about us . '</a><br>' . make this not the last line! (there are 4 nearly the same lines: put this line in between there where u want but not as last one) ************************************************************* Further on you have to make in includes/filenames.php a line like: define('FILENAME_aboutus', 'aboutus.php'); ****************************************** Next you have to place an aboutus.php page in your catalog menu and one in your catalog/include/languages/yourlanguage/yourlanguage.php If this was what u ment it should do the trick! Greetings, Saxas
VPSsupport Posted November 8, 2005 Author Posted November 8, 2005 I think you mean the link in the informationbox that isn't correct? In that case you'll have to make a link in includes/boxes/information.php with something like: '<a href="' . tep_href_link(FILENAME_aboutus) . '">' . BOX_INFORMATION_about us . '</a><br>' . make this not the last line! (there are 4 nearly the same lines: put this line in between there where u want but not as last one) ************************************************************* Further on you have to make in includes/filenames.php a line like: define('FILENAME_aboutus', 'aboutus.php'); ****************************************** Next you have to place an aboutus.php page in your catalog menu and one in your catalog/include/languages/yourlanguage/yourlanguage.php If this was what u ment it should do the trick! Greetings, Saxas Thanks for your reply Saxas, this is not my problem. Jack_mcs pointed me in the right direction. The problem appears to be with my Header Tags contribution. In Admin>Header Tags>Text control my About_us page is at the top all filled in with my description and keywords. When I view the source of the actual page I get the following: <title>HEAD_TITLE_TAG_ABOUTUS</title> <META NAME="Description" Content="HEAD_DESC_TAG_ABOUTUS"> <META NAME="Keywords" CONTENT="HEAD_KEY_TAG_ABOUTUS"> I have tried deleting the page and starting again put I get the same problem. I have also checked all various calls to the files and all seem ok - I cant figure this one out! Any ideas? Many thanks Regards, Clive
Jack_mcs Posted November 9, 2005 Posted November 9, 2005 Look in the includes/languages/english/header_tags.php file. Do you see something like define('HEAD_TITLE_TAG_ABOUTUS','About Us - '); 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
VPSsupport Posted November 9, 2005 Author Posted November 9, 2005 Look in the includes/languages/english/header_tags.php file. Do you see something likedefine('HEAD_TITLE_TAG_ABOUTUS','About Us - '); Jack Jack- Thanks for your support on this issue, I have the following in the header_tags.php: // About_Us.php define('HTTA_ABOUT_US_ON','0'); define('HTDA_ABOUT_US_ON','1'); define('HTKA_ABOUT_US_ON','1'); define('HEAD_TITLE_TAG_ABOUT_US','Storename - About Us'); define('HEAD_DESC_TAG_ABOUT_US','My Description'); define('HEAD_KEY_TAG_ABOUT_US','My Keywords'); Regards, Clive
Jack_mcs Posted November 9, 2005 Posted November 9, 2005 See the difference? HEAD_TITLE_TAG_ABOUT_US HEAD_TITLE_TAG_ABOUTUS 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
VPSsupport Posted November 9, 2005 Author Posted November 9, 2005 See the difference?HEAD_TITLE_TAG_ABOUT_US HEAD_TITLE_TAG_ABOUTUS Jack Hi Jack, I see what you are saying but my files are made up with the underscore. For example: define('HEAD_TITLE_TAG_CONTACT_US','Naturallydoesit - Contact Us'); define('HEAD_DESC_TAG_CONTACT_US','Store description'); define('HEAD_KEY_TAG_CONTACT_US','Store keywords); Or am I mising something obvious here? Thanks again Regards, Clive
VPSsupport Posted November 9, 2005 Author Posted November 9, 2005 Hi Jack, I see what you are saying but my files are made up with the underscore. For example: define('HEAD_TITLE_TAG_CONTACT_US','Naturallydoesit - Contact Us'); define('HEAD_DESC_TAG_CONTACT_US','Store description'); define('HEAD_KEY_TAG_CONTACT_US','Store keywords); Or am I mising something obvious here? Thanks again Jack - You are a Genius!! I looked futher at the problem an located the header_tags.php file in /includes/ and there it was: // about_us.PHP - was default.php case (strstr($_SERVER['PHP_SELF'],FILENAME_ABOUT_US) or strstr($PHP_SELF, FILENAME_ABOUT_US) ): $tags_array = tep_header_tag_page(HTTA_ABOUTUS_ON, HEAD_TITLE_TAG_ABOUTUS, HTDA_ABOUTUS_ON, HEAD_DESC_TAG_ABOUTUS, HTKA_ABOUTUS_ON, HEAD_KEY_TAG_ABOUTUS ); I looked down the page and I had another entry: // About_Us.php case (strstr($_SERVER['PHP_SELF'],FILENAME_ABOUT_US) or strstr($PHP_SELF, FILENAME_ABOUT_US)); $tags_array = tep_header_tag_page(HTTA_ABOUT_US_ON, HEAD_TITLE_TAG_ABOUT_US, HTDA_ABOUT_US_ON, HEAD_DESC_TAG_ABOUT_US, HTKA_ABOUT_US_ON, HEAD_KEY_TAG_ABOUT_US ); So I have changed the top about_us.php and added the underscores. I am still a little confused as to why this is still making reference to an old file but in any case it has fixed the initial problem. I will wait to see if this will come back to bit me. I appreciate all the support you have given Jack ( I like your style - you like to give a little piece of the answer to make us look deeper to find it out for ourselves). I am really starting to enjoy digging into the code, I might not of been able to say that if it wasn't for guys like you. Cheers! Regards, Clive
Jack_mcs Posted November 9, 2005 Posted November 9, 2005 Thak you for the kind words. :) As for the code in the includes/header_tags.php file, the contribution comes with an entry for aboutus. You have two of them. It won't really hurt anything but it may cause confusion down the road if you edit the wrong one so I suggest deleting one block. Do the same in the english/header_tags.php file. It doesn't matter if it is ABOUT_US or ABOUTUS as long as you are consistent in both files and the filename.php file has the correct one. 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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.