Panama Jack wrote: I am surprised no one has ever asked for this before. We have a mod we created that would only display Announcements from a specific forum as news on our main web site http://www.aatraders.com . When I found this RSS mod I wanted to use it just for the news on the main page but couldn't. It would send every message in the forum.
The following mod will allow you to select the topic type to display.
There is a new variable 'tt' for topic type that can be included in your url.
Example: http://forums.aatraders.com/rss.php?f=7&t=1&tt=2
The above will send ONLY Announcement topics instead of all topics.
tt = 0 ; Send just normal topics
tt = 1 ; Send just Sticky topics
tt = 2 ; Send just Announcement topics
Leave tt empty to send all topics as before.
Find:After Add:Code: Select all
if ( $topics_only == 1 ) { $sql_topics_only_where = 'AND p.post_id = t.topic_first_post_id'; }
Code: Select all
// Return only specific topics. 2 = Ammouncements, 1 = Stickies, 0 = Normal if ( isset($HTTP_GET_VARS['tt']) && ($HTTP_GET_VARS['tt'] == 0 || $HTTP_GET_VARS['tt'] == 1 || $HTTP_GET_VARS['tt'] == 2)) { $sql_topics_only_where .= " AND t.topic_type = '" . $HTTP_GET_VARS['tt'] . "'"; }
mosport wrote: sorry if this has been asked,
but i can only get public forums to work.
do i need to change the standard setup to let people view forums that they have access to ? (my board is mostly visible to registered users only)
thanks.
EDIT: works on abilon, but NOT on feedreeder...?
Edit2: this was the problem rss.php?login (i didnt include the login)
Code: Select all
<!--
This feed generated for Viper007Bond
More info at http://naklon.info/rss/about.htm
-->
The Suite wrote:Friends4U wrote:The mod does not do that... i have e few private forum but they do not show...
Friends4U,
It does that to mine. I have 2 private forums on my board and whenever I post in there it comes through on the feed.
What did you have to do on your end to fix that issue?