Extension talk:Bullet Feed

This is my first public extension and have yet to really dive into code and make something really useful. I know that other great php programmer on this site have made probably better structured scripts for the same thing, but I couldn't find one that I could readily put in a minimalistic format such as found on http://hdwiki.nmu.edu. If you have any questions, comments, etc, feel free to email me at cperry@nmu.edu -03:42, 6 February 2008 (UTC)

Update

 * Updated the links algorithm again to take into account $wgServer instead of computing my own.
 * -muraj 07:17, 3 April 2008 (UTC)


 * Fixed descriptions not parsing html into html code.
 * Implemented a more portable algorithm for parsing default links
 * Default site address is now http://domain_name/$wgScriptPath
 * -muraj 15:43, 28 February 2008 (UTC)

Couple of changes
I made a couple minor changes to the code - adding $wgExtensionCredits so it appears in Special:Version and changing the alt URL generator slightly ($header). I dug into $wgTitle and found that there are quite a few methods for URL generation which helped with that task. $site and $link in feedAction can probably be optimized quite a bit (I didn't spend too long trying to decode what was going on in $link). They both seem to work OK for me though so I left them alone. Thanks for the extension. 67.97.209.36 22:41, 29 July 2008 (UTC)

Possible to use RSS page as normal viewable page too?
Is it possible to use the bullet-list page as a normal viewable page too?

i.e. so it doesn't display the  and  tags on the page?

I already have a bullet list "news" page so this extension could be ideal...

Thanks Jonathan3 07:08, 24 September 2008 (UTC)


 * ...maybe this is the whole point of the extension & I've missed it ;-) Let me know... Jonathan3 07:16, 24 September 2008 (UTC)


 * To answer my own question... the bullet points between the  tags do get displayed as normal; however, the description between the  tags don't get displayed on the wiki page. The extension seems to work very well. Jonathan3 18:58, 2 October 2008 (UTC)

Minor amendment
Some of my bullet points had links to several wiki pages. The code picks the first one and makes the RSS item link to that. To work round this I changed it so that the link is always the "Recent Changes" page of the wiki. I know this isn't ideal, but it saved me some trouble rejigging my bullet points. Change the relevant line to: $i=new FeedItem(strip_tags($title),$desc[1],'http://www.mysite.co.uk/Special:Recentchanges',$Date=wfTimestampNow-$titlekey); Jonathan3 18:58, 2 October 2008 (UTC)

Another minor amendment
All links in the description work on the RSS feed whereas in the title only one can be used (the first one is selected). But the text between the rss-desc tags don't get displayed on the wiki page. I wanted to use the rss-desc tags (so that multiple links in the news item could be shown) but wanted the content to be displayed on the wiki page as well as on the RSS. I changed the relevant line to: return $parser->recursiveTagParse($input).''; I have NOT made any changes to the original text on the Extension page :-) Jonathan3 19:24, 2 October 2008 (UTC)

RSS autodiscovery doesn't seem to work on IE7
...although it works fine in Firefox. Jonathan3 20:01, 2 October 2008 (UTC)