Blowag To-Do 
Tuesday, March 14, 2006, 09:55 AM

Comment RSS Feed


The goal of this task is to include recent comments in either
1. Existing RSS/RDF/ATOM feeds
2. Special RSS/RDF/ATOM comment feed

Reason: To read comments through an RSS aggregator.

Ideas:
1. The "Most Recent Comments" menu calls the get_most_recent() function from sb_menu.php. It limits the characters per entry to 40. You could make this a passed variable and use the function with no limit for feeds and pass it 40 for normal usage. It creates a big long string $str_comments, adding to the end of it for each comment the name (with link), date, & comment text. Since this is in the sb_menu script, it might be best to copy the function entirely and rewrite it for RSS usage.

2. The rss.php script calls generate_rss() function from the sb_feed.php script. That script gets the LIST of entries for the feed from blog_entry_listing() function in sb_display.php and stores the list in variable "$entry_file_array". We could pass a comment option to the feed reader to also call a new function called blog_comment_listing() to get a list of recent comments "$comment_file_array". Then it could go through a similar interative task of grabbing the data from the comment files using the new function blog_comment_to_array() instead of blog_entry_to_array(file). This array is then parsed and printed with formatting out to the xml RSS feed.

Comments on front page


1) Darren, Brit & I thought it would be nice if comments were just shown on the main page along with the original post. Then everything would be right there, easy to see. I have looked into this and it seems possible but I cannot figure out how all the code fits together yet.

2) If not showing comments on front page, perhaps move recent comments block up higher so you can see it.

Adsense PHPSESSID Issue


Adsense has trouble coming up with relevant ads due to the PHPSESSID in the URL for most of our pages. Adsense expects the same URLs always which doesn't happen with these sessids. This sessid is only supposed to be used when someone is logged in but it seems to tag it onto the end of most hyperlinks on the various pages. Although I have noticed that is usually not appended to the Most Recent Entries Links and sometimes not on the Calendar Links. This may not be a problem, ads seem to be working okay

1) Change the "Categories" block to have links without the PHPSESSID tag attached.

Post Rankings


Need to create a robots.txt with the following:
User-agent: *
Disallow: /blog/rate_cgi.php
Disallow: /blorwag/rate_cgi.php


Completed



1. Visitors cannot post comments. You enter a comment and hit post and it says "whoops!". - Fixed by enabling emoticons (see comment) :)

2. Change "Most Recent Entries" to point at the comments.php instead of index.php. This would mean when you click an entry it would display the entry + comments rather than entry + prior entries. It worked by changing "sb_themes.php" file in the "function menu_most_recent_entries":
$entry = sb_strip_extension( $contents[$i][ 'entry' ] );

$entry_array[ 'permalink' ][ 'url' ] = $base_permalink_url . 'index.php?entry=' . $entry;

to
$entry = sb_strip_extension( $contents[$i][ 'entry' ] );

$year = sb_strip_extension( $contents[$i][ 'year' ] );

$month = sb_strip_extension( $contents[$i][ 'month' ] );

$entry_array[ 'permalink' ][ 'url' ] = $base_permalink_url . 'comments.php?entry=' . $entry . '&y=' . $year . '&m=' . $month;