PDA

View Full Version : Article Manager v1.0



michael_s
08-06-2007, 01:00 PM
I have fixed a couple of minor problems:
1. When displaying all articles the text below the page count was incorrectly displayed
2. When an article has no topic it is not displayed. I created a topic with the id of 0.
3. Also added an rss feed for articles.

The rss feed is heavily based on the News Blog V 1.0 contribution.


1. Add to catalog/includes/languages/english(and any other languages you use)

AFTER:
} elseif ($topic_depth == 'top') {

ADD:
define('TEXT_ARTICLES', 'Below is a list of articles with the most recent ones listed first.');

2. Create a topic for articles in the TOP category. The second SQl Statement needs to be duplicated for any language other than english you are using, replaceing the second VALUE with the id?s of the languages you are using.(look in phpMyAdmin)

Insert into your database via phpMyAdmin:
INSERT INTO topics (topics_id,topics_image, parent_id,sort_order, date_added, last_modified) VALUES (0,NULL, 0, 0, '2007-08-06 08:52:12', NULL);
INSERT INTO topics_description VALUES (0, 1, 'Miscellaneous Articles', 'Miscellaneous', 'Articles that do not fall into a specific category.');
INSERT INTO configuration (configuration_id,configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('', 'Number of articles to display in your RSS Feed.', 'NEWS_RSS_ARTICLE', '10', 'If you want all of your articles to display in the RSS type in something like 2000. The default is 10', '456', '34', now());
INSERT INTO configuration (configuration_id,configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('', 'Number of characters to display in each RSS article.', 'NEWS_RSS_CHARACTERS', '250', 'If you keep this at 250 it will hide a little bit of each of article from your viewers. They will have to come to your store to finish. The default is 250', '456', '35', now());

3. In catalog/includes/filenames.php
ADD:
define('FILENAME_ARTICLE_RSS', 'article_rss.php');

4. UPLOAD:
catalog/article_rss.php
catalog/includes/languages/english(and any other languages you use)/article_rss.php

5. Go to admin->configure->article manager an configure the two new options for rss.

More... (http://www.oscommerce.com/community/contributions,1709)