This is an old revision of the document!
Table of Contents
Simple PHP Blog
Feeds
If you want to create different RSS feeds for each of your categories, use the c
variable in rss.php
. For example to see only posts in category number 1 :
blog/rss.php?c=1
You can also put several categories in the feed :
blog/rss.php?c=2,3
There is no native support of comments feed, but you can find a patch here.
Modifications
I use the theme slick
, but I have done some changes :
- Changed the font from Book Antica to Arial in themes/slick/style.css:96
- Changed the order of sidebar plugins in themes/slick/themes.php
- Added links to RSS Feeds for each category and comments in themes/slick/themes.php
- Removed the
Search
caption in the search plugin in themes/slick/themes.php
Some changes in the core too:
- Changed
blog_footer
intoblog_description
at scripts/sb_feed.php:57 for the<description>
node because a footer is not a description… - Changed some code at scripts/sb_display.php:116 in order to allow to display sets of categories (
index.php?category=2,3,4
):
// new code: $cats = split( ',', $category); $cat_sub_arr = array(); for ($i = 0; $i < count($cats); $i++) { $subcats = get_sub_categories($cats[$i]); for ($j = 0; $j < count($subcats); $j++) array_push($cat_sub_arr, $subcats[$j]); array_push($cat_sub_arr, $cats[$i]); } // old code: // $cat_sub_arr = get_sub_categories($category); // array_push( $cat_sub_arr, $category );