Computer Association of SIUE - Forums

CAOS Forums => News and Commentary => Topic started by: R. Andrew Lamonica on 2005-08-03T12:01:43-05:00 (Wednesday)

Title: New RSS Feed
Post by: R. Andrew Lamonica on 2005-08-03T12:01:43-05:00 (Wednesday)
As you can see, I have added the new CS Department RSS feed (http://www.cs.siue.edu/news/rss.aspx) to the headlines section of this page. If any CAOS officer disapproves of this change then let me know and I will take it down ASAP.

For those of you who are interested, the RSS 2.0 feed URL is:
http://www.cs.siue.edu/news/rss.aspx

The new news page is:
http://www.cs.siue.edu/news/

R. Andrew Lamonica
SIUE Dept. of Computer Science (http://www.cs.siue.edu)
Title: Re: New RSS Feed
Post by: Peter Motyka on 2005-08-03T12:04:17-05:00 (Wednesday)
Nice work Andrew!
Title: Re: New RSS Feed
Post by: Ross Mead on 2005-08-03T15:49:59-05:00 (Wednesday)
Yeah, very cool!  Nice job! :-)
Title: Re: New RSS Feed
Post by: Stiffler on 2005-08-03T18:49:32-05:00 (Wednesday)
That is really nice. :) Although, I think CS News should be above Slashdot and Wired news. Hmm ... Or maybe even above Recent forum topics? Just a thought.
Title: Re: New RSS Feed
Post by: Ross Mead on 2005-08-03T23:56:21-05:00 (Wednesday)
Yeah, we discussed putting the CS News above Slashdot and Wired, but it doesn't get updated nearly as much as either of those pages (though we hope that someday that might change! :-) ).  This could be a simple poll question:

What do you think about the CS News feed?
- I like it.
- I don't like it.
- I'd like it if it were updated more.
- It needs to be above Slashdot and Wired news.
- It should stay where it's at.
- There's a CS News webpage? :-P

Ehh, just a thought...  what do you guys think?
Title: Re: New RSS Feed
Post by: R. Andrew Lamonica on 2005-08-04T11:47:38-05:00 (Thursday)
I have replaced the old XOOPS RSS headlines template with one of my own devising.  I don't know Smarty so I had to use PHP in the template, but it seems to work and I chose variable names that should not conflict with anything.

This should help solve the problem of where to put the CS headlines.  

OLD
<{foreach item=feed from=$block.feeds}>

<{$feed}>


<{/foreach}>
[/size]

NEW
<{php}>
    $andrew_lamonica_feed_count = 0;
<{/php}>

   
        <{foreach item=feed from=$block.feeds}>      
           
            <{php}>
                if($andrew_lamonica_feed_count % 2)
                    print "";
                $andrew_lamonica_feed_count++;    
            <{/php}>
        <{/foreach}>
        <{php}>
            while($andrew_lamonica_feed_count % 2)
            {
                print "";
                $andrew_lamonica_feed_count++;    
            }
        <{/php}>
   

                <{$feed}>

           
[/size]