Jump to content

bigd357

Members
  • Content count

    3
  • Joined

  • Last visited

Profile Information

  • Real Name
    Dustin Fennell
  1. bigd357

    Article Manager v1.0

    I have an article written on my website at eProductShop on how to get the header tags to work properly with HTC 2.6.3, STS, and Article Manager 1.5.1. Hopefully it helps.
  2. bigd357

    Article Manager v1.0

    Well my wife and I figured out a way to get it to work correctly. I will post the fix we came up with to help anyone with the same problem soon.
  3. bigd357

    Article Manager v1.0

    I am having some issues trying to get the Header tag controller to work correctly with Article Manager 1.5.1. Everything is working fine with the articles, but I cannot get the header tags to for the individual articles to work at all. I have HTC 2.6.3 installed with STS v4.5.8 and everything functions correctly. When I edit includes/languages/english/article_header_tags.php only the define('HEAD_TITLE_TAG_ALL','Articles'); define('HEAD_DESC_TAG_ALL','These articles provide information to complement the products and services provided by eproductshop.com'); define('HEAD_KEY_TAG_ALL','software, websites, ebooks, information, oscommerce,'); will change the Header tags for the article pages. The code for the individual pages do nothing to the tags. Here is my code. <?php /* $Id: article_header_tags.php, v1.0 2003/12/04 12:00:00 ra Exp $ osCommerce, Open Source E-Commerce Solutions [url="http://www.oscommerce.com"]http://www.oscommerce.com[/url] Copyright © 2003 osCommerce Released under the GNU General Public License */ // Mofification of Header Tags Contribution // WebMakers.com Added: Header Tags Generator v2.0 /* If you have the Header Tags Controller already installed, replicate the global details from header_tags.php into the indented section below */ // Define your email address to appear on all pages define('HEAD_REPLY_TAG_ALL','admin@sitename.com'); // For all pages not defined or left blank, and for articles not defined // These are included unless you set the toggle switch in each section below to OFF ( '0' ) // The HEAD_TITLE_TAG_ALL is included BEFORE the specific one for the page // The HEAD_DESC_TAG_ALL is included AFTER the specific one for the page // The HEAD_KEY_TAG_ALL is included AFTER the specific one for the page define('HEAD_TITLE_TAG_ALL','Articles'); define('HEAD_DESC_TAG_ALL','These articles provide information to complement the products and services provided by eproductshop.com'); define('HEAD_KEY_TAG_ALL','software, websites, ebooks, information, oscommerce,'); /* End of Indented Section */ // DEFINE TAGS FOR INDIVIDUAL PAGES // articles.php define('HTTA_ARTICLES_ON','1'); // Include HEAD_TITLE_TAG_ALL in Title define('HTKA_ARTICLES_ON','1'); // Include HEAD_KEY_TAG_ALL in Keywords define('HTDA_ARTICLES_ON','1'); // Include HEAD_DESC_TAG_ALL in Description define('HEAD_TITLE_TAG_ARTICLES','Articles'); define('HEAD_DESC_TAG_ARTICLES','Articles'); define('HEAD_KEY_TAG_ARTICLES','articles'); // article_info.php - if left blank in articles_description table these values will be used define('HTTA_ARTICLE_INFO_ON','1'); define('HTKA_ARTICLE_INFO_ON','1'); define('HTDA_ARTICLE_INFO_ON','1'); define('HEAD_TITLE_TAG_ARTICLE_INFO','Articles'); define('HEAD_DESC_TAG_ARTICLE_INFO',''); define('HEAD_KEY_TAG_ARTICLE_INFO',''); // articles_new.php - new articles // If HEAD_KEY_TAG_ARTICLES_NEW is left blank, it will build the keywords from the articles_names of all new articles define('HTTA_ARTICLES_NEW_ON','1'); define('HTKA_ARTICLES_NEW_ON','1'); define('HTDA_ARTICLES_NEW_ON','1'); define('HEAD_TITLE_TAG_ARTICLES_NEW',''); define('HEAD_DESC_TAG_ARTICLES_NEW',''); define('HEAD_KEY_TAG_ARTICLES_NEW',''); // article_reviews_info.php and article_reviews.php - if left blank in articles_description table these values will be used define('HTTA_ARTICLE_REVIEWS_INFO_ON','1'); define('HTKA_ARTICLE_REVIEWS_INFO_ON','1'); define('HTDA_ARTICLE_REVIEWS_INFO_ON','1'); define('HEAD_TITLE_TAG_ARTICLE_REVIEWS_INFO',''); define('HEAD_DESC_TAG_ARTICLE_REVIEWS_INFO',''); define('HEAD_KEY_TAG_ARTICLE_REVIEWS_INFO',''); ?> no matter what I enter into any of the individual pages tags it does not display in the source code. The main problem is that when I create an article, the keywords for that article are not being displayed in the <head> section or anywhere. I can get the header tags for the individual pages to display if I change the <head> code in the include/article_xxx.php files. From <head> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <?php // Mofification of Header Tags Contribution // BOF: WebMakers.com Changed: Header Tag Controller v1.0 // Replaced by header_tags.php if ( file_exists(DIR_WS_INCLUDES . 'article_header_tags.php') ) { require(DIR_WS_INCLUDES . 'article_header_tags.php'); } else { ?> <title><?php echo TITLE ?></title> <?php } // EOF: WebMakers.com Changed: Header Tag Controller v1.0 ?> to <head> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <title><?php echo TITLE; ?></title> <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> <link rel="stylesheet" type="text/css" href="stylesheet.css"> </head> Because STS will automatically pickup the HTC tags a display them correctly, but the keywords and descriptions for the individual articles entered on the admin side still are not displayed in the source code. I checked the database and the entries for the tags are there but not being displayed. www.eproductshop.com is the site if you want to take a look. I am sorry for the long post, but I wanted to make sure you had plenty of information so you can help. I am new to OSC and PHP, MySQL. I have been able to figure out most issues myself except this one. Please help. Thanks
×