jon_l Posted October 26, 2002 Posted October 26, 2002 Does anyone know if there is a contribution to dynamically generate meta tags for pages? I seem to remember one but can't find it. I am aware of the header tag contribution. If there isn't one for meta tags I imagine that the header tag contribution could be changed quite easily to do the job. Thanks, Jon. Quote
Ajeh Posted October 26, 2002 Posted October 26, 2002 Just the one I made :D Header Tag Controller is in the contributions. Quote
jon_l Posted November 18, 2002 Author Posted November 18, 2002 For some reason I thought the Header Tag Controller only worked on the <title> tag, when it actually does exactly what I wanted. Obviously I should of checked it out before making the post. Anyway, I've now installed it (very easy, though I did find the setup a little bit confusing, but there probably isn't a better way of doing it) and it works like a dream. Thanks for making the contribution.... Jon. Quote
Ajeh Posted November 18, 2002 Posted November 18, 2002 You are most welcome. I am glad this worked for you. Quote
Criz Posted November 20, 2002 Posted November 20, 2002 Dear All, I am currently installing the Header Tags Controller v2.0 and I am getting an error message. I have followed the included README-file, changed everything that had to be changed and found no errors except when I add // BOF: WebMakers.com Added: Header Tags Controller v1.0 require(DIR_WS_FUNCTIONS . 'header_tags.php'); // Clean out HTML comments from ALT tags etc. require(DIR_WS_FUNCTIONS . 'clean_html_comments.php'); // Also used by: WebMakers.com Added: FREE-CALL FOR PRICE // EOF: WebMakers.com Added: Header Tags Controller v1.0 to application_top.php I am getting the following error message. Fatal error: Failed opening required 'DIR_WS_FUNCTIONSheader_tags.php' (include_path='.:/usr/local/lib/php') in /catalog/includes/application_top.php on line 21 Does anyone have a clue why I am getting this message? Everything seems to be in place. Thanks! Chris Quote
Ajeh Posted November 20, 2002 Posted November 20, 2002 Check that your configure.php has a DIR_WS_FUNCTIONS in it. Also check if you typed that that you typed it right :shock: Quote
Criz Posted November 20, 2002 Posted November 20, 2002 I have this line in my configure.php define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/'); I thought this should do the trick? Am i missing something? Regards, Chris Quote
Criz Posted November 20, 2002 Posted November 20, 2002 define('DIR_WS_INCLUDES', 'includes/'); Is this correct? Quote
Ajeh Posted November 20, 2002 Posted November 20, 2002 So far so good. Something is making that definition come out wrong however as you are getting the DIR_WS_FUNCTION showing and it does not appear to be translating it. Quote
Criz Posted November 20, 2002 Posted November 20, 2002 If I click on a product page, I am getting the following error message Fatal error: Call to undefined function: clean_html_comments() in catalog/includes/header_tags.php on line 79 I am pretty new to php and osCommerce :wink: but I have the feeling that there is a connection between these error messages. Chris Quote
Criz Posted November 20, 2002 Posted November 20, 2002 By the way, line 79 of header_tags.php mentioned in the error message contains the following: $the_title= HEAD_TITLE_TAG_ALL . ' ' . clean_html_comments($the_product_info['products_head_title_tag']); Does this gives a clue for a solution of the error? Quote
Criz Posted November 20, 2002 Posted November 20, 2002 I found the answer :D in the following post: http://www.oscommerce.com/forums/viewtopic.php...roller&start=10 Someone had the some problem, it appears that I put the code to high in application_top.php. After scrolling down a couple of lines everything is working fine. Linda, thanks very much for your quick replies! You are doing a great job! :bigups: Regards, Chris PS Is it wise to install the admin mod, as installing it looks pretty tricky and complicated? What does it exactly add? Quote
-=d00p13=- Posted November 20, 2002 Posted November 20, 2002 Hey Linda!, Where can i find your contribution on the tags ???? I can only find the admin contribution in the contribution list but yours i can't find. I'll hop eyou can help me on this 1 THX Quote
Criz Posted November 20, 2002 Posted November 20, 2002 You can find her contribution here: http://www.oscommerce.com/downloads.php/co...ions,311/type,5 Regards, Chris Quote
-=d00p13=- Posted November 20, 2002 Posted November 20, 2002 Thanx. Now i know why i couldn't find it ....There are no spaces between the words. :D Thx 4 your help m8 Quote
Guest Posted November 22, 2002 Posted November 22, 2002 Hi Linda, just one point: How do I have to define the Keywords / Title ect for categories & subcategories? Torsten Quote
Ajeh Posted November 22, 2002 Posted November 22, 2002 Presently, you can individually define products. The other definitions are page related. I do not have a specific categories definition added as the definitions are built from the category names/product names when on the other pages. If you look at the code and how the headers are built it might help you see how they are constructed. Right now, this Add-on is not the top of my list of things to re-write, but it is on the list :D I will see about adding specifics on a Category and what would be involved here. Quote
Soulfly Posted February 4, 2004 Posted February 4, 2004 ive just installed this contribution and i get a parse error in admin/categories.php (error in bold): <tr> <td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td> </tr> <tr> <td class="main"><?php echo TEXT_PRODUCTS_WEIGHT; ?></td> <td class="main"><?php echo tep_draw_separator('pixel_trans.gif', '24', '15') . ' ' . tep_draw_input_field('products_weight', $pInfo->products_weight); ?></td> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td> </tr> <tr> <td class="main" align="right"><?php echo tep_draw_hidden_field('products_date_added', (tep_not_null($pInfo->products_date_added) ? $pInfo->products_date_added : date('Y-m-d'))) . tep_image_submit('button_preview.gif', IMAGE_PREVIEW) . ' <a href="' . tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . (isset($HTTP_GET_VARS['pID']) ? '&pID=' . $HTTP_GET_VARS['pID'] : '')) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>'; ?></td> </tr> </table></form> --- what can it be?? thanks! Quote
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.
Note: Your post will require moderator approval before it will be visible.