On 7/15/05, Michelle <michelle.sg1(a)gmail.com> wrote:
I modified the RSS feed because it was crashing the
server providing
our headlines. For New Articles, the entire contents of the article is
in the feed. I shortened the string as shown below; the titles and
summaries come out okay. I noticed in 1.4.5 even after my change, if
Recent Changes includes uploads, the entire upload log seems to be in
the RSS feed. I haven't figured out where that string is generated in
order to shorten it.
I managed to do it without hacking the code. I wanted to keep ease of
upgrade. So I created a new SpecialPage which is a copy of
Special:Newpages (i.e. includes\SpecialNewpages.php). I used
http://meta.wikimedia.org/wiki/Writing_a_new_special_page to allow me
to add the page to my install without hacking.
I then updated the SQL call to take only what I want in the RSS feed
(basically only the main namespace).
I then added a function feedItemDesc which overrides QueryPage.php's
function and modified it to display the output the way I want. Namely
the first 100 words of the article, the comment and a note to say if
it is updated or new.
Seems to be working pretty well and I can modify my special page to my
hearts content! :)
--
http://thedeadone.net