![]() |
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:
|
It's indeed getting complicated. I can see the announement forum now, but your last query didn't work out the way I was expecting it. Instead of showing a clean list of latest threads, it shows thread titles multiple times when there have been multiple recent replies into one thread.
It looks like your last query gives a list of thread titles based on the post dates, instead of based on the last post date of a thread. So if there are 10 new posts in only 1 thread, the thread title will show up 10 times :) We're getting close, but still no cigar :cheeky: |
1 Attachment(s)
I've taken Pogo's script and added the actual post content to it.
feed.php?mode=xxx&limit=yyy&offset=zzz xxx can be
|
Sweet, I'm going to check this out...
UPDATE: This. Is. So. Cool. I can read my forums in Trillian PRO! :D |
Glad you like it. Thanks to pogo for providing the whole thing :)
|
Do I need a cronjob to keep this updated?
How do I get the rss file to be displayed on a website? Is it possible only show certain forums? I have a few news forums that would be cool to have a seperate rss file. One for my forums and one for my news. Could you guys create something like that for me? Please. :) |
Do I need a cronjob to keep this updated?
How do I get the rss file to be displayed on a website? Is it possible only show certain forums? I have a few news forums that would be cool to have a seperate rss file. One for my forums and one for my news. Could you guys create something like that for me? Please. :) |
How exactly do I install the hack.. I installed the plugin for trillian pro, and had it point to feed.php? But nothing happens. I have feed.php in my forums dir.
|
okay well now it shows the threads.. But when I click them.. It goes here.. http:///showthread.php?threadid=1792&goto=newpost how do I fix that?
|
Okay well I got everything working.. Had to change some stuff for vb3.. Is there a way to make the threads update faster?
|
This is limited to Trillian which does not allow to change the time interval for updating the feed. Maybe the soon-to-come-out-2.0 does that.
|
I found that I have to change my computers time to an hour later each time I wanted to update.. That's so lame :(
|
Has this become an official hack? I'm very interested in installing this on my board, but it's a little unclear how to install this puppy.
Any feedback would be appreciated. |
All times are GMT. The time now is 04:46 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:
|