Hello,
how can I get a particular category content usign the RSS link from my forum?
regards,
Moderators: Gaia.
Page: 1
| Author | Post |
|---|---|
|
#1 Sat Mar 14, 2009 12:30 am
|
|
Member
![]() Registered: Mar 2009
Posts: 3
Location: Mexico
|
Hello,
how can I get a particular category content usign the RSS link from my forum? regards, |
|
#2 Sat Mar 14, 2009 12:43 pm
|
|
|
Developer
Registered: Apr 2004
Posts: 2230
Location: Belgium
|
The RSS feed only supplies posts from the entire forum, excluding any forums you have set in the relevant setting in the ACP.
|
|
#3 Tue Mar 17, 2009 7:59 pm
|
|
Member
![]() Registered: Mar 2009
Posts: 3
Location: Mexico
|
ok, nevertheless I think it would be worth to give it a try to this implementation. I will workout the code and let you guy know what the outcome is.
regards, |
|
#4 Tue Mar 17, 2009 9:18 pm
|
|
|
Developer
Registered: Apr 2004
Posts: 2230
Location: Belgium
|
Since this is a small feature it might be added to 1.0.10.
|
|
#5 Sat Mar 21, 2009 1:50 pm
|
|
|
Member
Registered: Jan 2008
Posts: 29
|
Small feature? I hope you ment it'd be little effort to implement this...
The advantage of this feature I wouldn't dare to call small.. Why pull the complete forum in RSS, when you can even get only 1 or more categories, and keep the off-topic (for others) out. Might be added to 1.0.10??? - I really hope i can download a new version of the rss.php in lets say... 30 mins? ![]() And while you're at it.. It would be nice to even have a variable number of items in the feed.. rss.xml?cat=x,y&items=10 Make for the admin an option to set a few settings: - Default items (if the arg isn't used): 5 - Maximum number of items: 20 For the people that want to use the feed on a site, but don't have serverside scripting, a nice javascript that they can add in their pages. |
|
#6 Sat Mar 21, 2009 10:04 pm
|
|
|
Developer
Registered: Apr 2004
Posts: 2230
Location: Belgium
|
Don't forget UseBB 1 is out of major development since a couple of years. I have been very busy taking courses at university in a bridging programme (previously I studied in university college) for the last six months and I still have a number of months to go (at least until July) until I can finally get back to work for UseBB 2.
The RSS feed surely can get much more flexible, but the question is how much development time should really still be dedicated to a package that should have been replaced by v2 for a few years already. |
|
#7 Sun Mar 22, 2009 6:23 pm
|
|
Member
![]() Registered: Mar 2009
Posts: 3
Location: Mexico
|
Hi guys,
I have the following solutions for those who like to use their rss feed with a particular forum. First that all, make a copy of the rss.php file and save it under a different name (let say rss2.php). Next find the following pice of code: // Get a list of forums // $result = $db->query("SELECT id, name, auth FROM ".TABLE_PREFIX."forums WHERE topics > 0".$exclude_forums_query_part); Now substitute / change the line so you end up with a modified code such as this: // Get a list of forums // $forumID=$_GET[forumID]; $result = $db->query("SELECT id, name, auth FROM ".TABLE_PREFIX."forums WHERE id = $forumID"); That's it ! Upload the modified rss file. Make a test by calling the file with a proper argument setting; i.e. rss2.php?forumID=5 , where 5 is a valid forum identifier Although its limitations, this code will deliver the result we want. Hope you find this useful. See you. « Last edit by miguiaculiacan on Sun Mar 22, 2009 6:28 pm. » |
|
#8 Mon Mar 23, 2009 8:51 am
|
|
|
Developer
Registered: Apr 2004
Posts: 2230
Location: Belgium
|
This way you leave the exclude forums setting in a non-working state, and most of all will this code introduce a big SQL injection issue.
![]() |
Page: 1
UseBB Community is powered by UseBB 1 Forum Software