![]() |
Latest Threads in RSS Feed (need help)
OK, I digging though the bowels of the site, and stumbled apon a RSS feed hack that will pull the most recent threads from a forum you specify, and deliver them up in RSS format.
What I want to do, instead of having to specify the forum, is just have it dish out the latest threads from all forums. Here is what I have to work with: Code:
<?php echo '<?xml version="1.0"?>'; ?> Any help would be appreciated. |
whoa, slow down...trillian reads rss? how?
|
1 Attachment(s)
|
I worked a little with you code Marshalus.
What had to be changed was the query to grab the latest active threads. My query shows only threads from non-private forums. Then I added a replacement for german umlauts because Trillian doesn't show them correct. You can tweak a lot to customize it further and for example insert some text from the latest post. But then you have to change the query. PHP Code:
|
WOW.. indeed..the best i ever saw.. .. is there any posobility .. to get read out on the same way another sql database?
what i have to to.. give me a starting point :) |
Any ideas how to add the first xxx characters of the first post as well, and put this as a description, based on pogo's exellent script?
I'm also looking for a way to not include the last reply features (last post name & date/time) if there is no reply yet. |
I found out that Pogo's code has a weird bug: as soon as someone starts a poll thread, the RSS script shows already the threadtitle and link, which results in a url which does not exist, as long as the creation of the poll isn't finished :)
|
Quote:
Now I added visible=1 AND to the query and such threads are not shown anymore. To not include the last reply line you can change the code like this: replace: echo "<description> $firstposter - $replies $replyword - $lastreplydate $lastreplytime </description>\n"; with: if ($replies > 0) { echo "<description> $firstposter - $replies $replyword - $lastreplydate $lastreplytime </description>\n"; } |
Thanks for all your help so far pogo. I have another issue which is giving me headaches: I have an announcement forum, where only admins can start new posts (being custom set with vB's forum permissions), members can reply though.
For some reason, with your code, the new announcement headlines do not show up in our RSS feed. I guess it has to do with the forumpermission in the query. Can someone help me out on that? |
It's getting complicated. ;)
Try this query instead of the above one PHP Code:
|
All times are GMT. The time now is 03:30 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|