yanarasod Posted May 19, 2006 Posted May 19, 2006 hi i had some problems with this contr. for some specified pages, at first the error was with about_us page which jack_ms told me that i may have done something wrong, i took it for granted and then renamed the page to aboutus to avoid the default structure of the header tags includes. but this didn't stop here now i see the error coming in products_reviews _write.php, all other pages are ok excpet this. i again thought it might be me doing something wrong but no when removed the code to products_reviews_write.php the title of my page came to default but then it was ok and not showing erorr as HEADER_TITLE_TAG_PRODUCTS_WRITE_REVIEWS in the title bar. all other pages defined in the catalog/includes/header_tags.php work fine except this and about_us.php which i renamed to avoid error, see this code for the specific page products_write_reviews.php. if anyone else has this problem and have it solved then please share the procees to make it error-free. thanks // PRODUCTS_REVIEWS_WRITE.PHP case((basename($PHP_SELF)==FILENAME_PRODUCT_REVIEWS_WRITE)): if ( HEAD_DESC_TAG_PRODUCT_REVIEWS_WRITE=='' ) { if ( HTDA_PRODUCT_REVIEWS_WRITE_ON=='1' ) { $tags_array['desc']= tep_get_header_tag_products_desc($HTTP_GET_VARS['reviews_id']) . ' ' . HEAD_DESC_TAG_ALL; } else { $tags_array['desc']= tep_get_header_tag_products_desc($HTTP_GET_VARS['reviews_id']); } } else { $tags_array['desc']= HEAD_DESC_TAG_PRODUCT_REVIEWS_WRITE; } if ( HEAD_KEY_TAG_PRODUCT_REVIEWS_WRITE=='' ) { if ( HTKA_PRODUCT_REVIEWS_WRITE_ON=='1' ) { $tags_array['keywords']= tep_get_header_tag_products_keywords($HTTP_GET_VARS['reviews_id']) . ' ' . HEAD_KEY_TAG_ALL; } else { $tags_array['keywords']= tep_get_header_tag_products_keywords($HTTP_GET_VARS['reviews_id']); } } else { $tags_array['keywords']= HEAD_KEY_TAG_PRODUCT_REVIEWS_WRITE; } if ( HEAD_TITLE_TAG_PRODUCT_REVIEWS_WRITE=='' ) { if ( HTTA_PRODUCT_REVIEWS_WRITE_ON=='1' ) { $tags_array['title']= ' Reviews: ' . tep_get_header_tag_products_title($HTTP_GET_VARS['reviews_id']) . HEAD_TITLE_TAG_ALL; } else { $tags_array['title']= tep_get_header_tag_products_title($HTTP_GET_VARS['reviews_id']); } } else { $tags_array['title']= HEAD_TITLE_TAG_PRODUCT_REVIEWS_WRITE; } break;
kgt Posted May 19, 2006 Posted May 19, 2006 Plenty of people get header tags installed without any problem. If you get errors, you need to post the exact text of the error. Contributions Discount Coupon Codes Donations
yanarasod Posted May 19, 2006 Author Posted May 19, 2006 i posted the error in the post #1 , the title comes as HEADER_TITLE_TAG_PRODUCTS_WRITE_REVIEWS whereby all other pages have the default title without any errors
Epic Mike Posted May 21, 2006 Posted May 21, 2006 i posted the error in the post #1 , the title comes as HEADER_TITLE_TAG_PRODUCTS_WRITE_REVIEWS whereby all other pages have the default title without any errors You need to define tags for that page. Look in admin/tools/header tags and add that page. Then set whatever you want to be displayed. Or you can just download header_tags.php and edit it yourself. If you've tried these, then download header_tags.php and look for that page. Make sure it is spelled correctly and not something like PRODUCT_WRITE_REVIEW
yanarasod Posted May 21, 2006 Author Posted May 21, 2006 well, you don't understand this thing, it isn't related to the admin, why are you connecting it, see all other pages like products and reviews automatically have their default. in the header_tags.php it is defined to include product_reviews_write , all other pages except this dont work, so then why is the need to include it in the i includes_header_tags.php when the default tags set in the file don't work. you see that the title of the products page changes automatically after the products name, and it has not been set in the admin, however it works, but why then only product_reviews_write doesn't work. so should i remove the code which defines the reviews write page from the header_tags.php.
Epic Mike Posted May 21, 2006 Posted May 21, 2006 Yes, remove the code and then add that page again. If that doesn't work, then just remove the header tags code from the write a review page and manually put in the title that you want. In other words, when you initially went through the 30 some pages in catalog/ adding the code to call header tags...take that back out of the write a review page. You should block that page from search engines anyway, so the only function that the header tags would provide would be to just look good for your customers and tell them what page they're on. Good luck.
Epic Mike Posted May 21, 2006 Posted May 21, 2006 well, you don't understand this thing, it isn't related to the admin, why are you connecting it, see all other pages like products and reviews automatically have their default. in the header_tags.php it is defined to include product_reviews_write , all other pages except this dont work, so then why is the need to include it in the i includes_header_tags.php when the default tags set in the file don't work. you see that the title of the products page changes automatically after the products name, and it has not been set in the admin, however it works, but why then only product_reviews_write doesn't work. so should i remove the code which defines the reviews write page from the header_tags.php. One more thing...the reason I keep referring to admin is because that's where most people edit their header tags. Alternitively, you can just ftp the header_tags.php. I was not saying there was a problem with admin, but your header tags ARE working properly on reviews_write.php You just don't have them defined. Thats why I tried to get you to go to admin/tools/header_tags and look for the reviews_write page. You either don't have anything entered for that page or you are calling on the wrong text instead of HEADER_TITLE_TAG_PRODUCTS_WRITE_REVIEWS Even if this is a default install, sometimes ftp doesn't upload everything properly and sometimes contributions have mistakes. Like I said in the last post though, it really doesn't matter. If it doesn't work, just define it manually on the write-reviews page because this is only for your customers. If you still can't get it, then post the HEADER_TITLE_TAG_PRODUCTS_WRITE_REVIEWS part of the header_tags.php
yanarasod Posted May 22, 2006 Author Posted May 22, 2006 things got solved i dont know how, it's showing everything correctly now. i just made some changes to header_tags.php it's nice though. thanks.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.