Differences

This shows you the differences between two versions of the page.

Link to this comparison view

software:sphpblog [2008/06/06 23:39]
cyril created
software:sphpblog [2013/09/19 16:40]
Line 1: Line 1:
-====== 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 [[http://schneible.net/commentrss.zip|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'' into ''blog_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''): 
-<code php> 
-// 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 ); 
- 
-</code> 
software/sphpblog.txt ยท Last modified: 2013/09/19 16:40 (external edit)
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0