Project Steve Guttenberg

PSG 1.9.0

Posted by Gavin on Wednesday, January 19, 2005 (Link)

Yes, I know it's hard to believe, but there's a new release of Project Steve Guttenberg! This is the end product of nearly a year of developments and improvements, and includes some cool new features:

  • A 'trigger' option that runs a command on the server when an article is created, edited or deleted,
  • support for referer tracking,
  • support for a custom HTML header and footer for articles in the RSS feed, so you can create RSS-only CSS,
  • a "view search results in rss" system for searches,
  • support for file uploads and enclosures which allows for podcasting,
  • support for Google's rel="nofollow" attribute to avoid comment spam.

Download PSG 1.9.0 from the downloads page.


Comments:

Re: PSG 1.9.0
Posted by simo on Monday, April 25, 2005
To add limited graphical smiley support, I uploaded some images into a subdirectory called smileys, this hack to formatArticle just replaces the strings with the images:

function formatArticle($article) {
// convert legacy journal_* classnames to new psg-* classnames:
$article = preg_replace('/<a class="journal_/i', '<a class="psg-', $article);

// array of available symbols/images
$smileys = array(';-)' => 'wink.png',
':-)' => 'smile.png',
':-(' => 'sad.png',
':-p' => 'tongue.png');

// replace text with image
foreach ($smileys as $smiley_text => $smiley_image) {
$article = str_replace($smiley_text, "<img src='smileys/$smiley_image' border=0 alt='$smiley_text'>", $article);
}

return $article;
}
No more comments can be posted to this article.

<< Previous: 80x15 ButtonNext: Mailing Lists >>

[ Archives | Search | Syndicate ]
© 2008 ProjectSteveGuttenberg.org.