Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Sep 2004
Posts: 15
Newbie
Newbie
Offline
Joined: Sep 2004
Posts: 15
Since the Content Islands feature in 6.5.x is worthless, I decided to write my own RSS generator that rips post info out of the Threads database. It works pretty well, but I've run into some inconsistencies decoding HTML entities with html_entity_decode().

Does Threads use its own encode/decode functions that I could incorporate into my script, or do I just have to live with the discrepancies? I've looked through ubbt.inc.php and showthreaded.php and haven't found anything definitive.

Also, I'd like the RSS feed to bump posts that have been edited to the top of the feed. However, I can't account only for edits, since not all new posts are edited. Is there a way to account for both in one SQL query? Or do I have to do two queries (edits and non-edits) and merge-sort them into an array while throwing out any duplicates?

Here is my SQL query:

SELECT U_Username,U_Number,Bo_Keyword,Bo_Title,B_Board,B_Main,B_Posted,B_LastEdit,B_Subject,B_Body,B_PosterId
FROM w3t_Posts,w3t_Boards,w3t_Users
WHERE w3t_Posts.B_Board NOT IN (--list of forums for the RSS to ignore--)
AND w3t_Posts.B_Board LIKE w3t_Boards.Bo_Keyword
AND w3t_Posts.B_PosterId LIKE w3t_Users.U_Number
ORDER BY -B_Posted LIMIT 20

I'd really like to keep it to one query if at all possible, since this one takes over three seconds and is run 48 times/day.

Thanks!

Last edited by paradox183; 04/04/2006 1:02 PM.
Sponsored Links
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
the rss feeds in content islands don't work for you?

I don't have the code in front of me right now, but I'd think if threads used encode/decode it would be in the same files that generate current rss feeds in CI's


- Allen wavey
- What Drives You?

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Gizmo
Gizmo
Portland, OR, USA
Posts: 5,834
Joined: January 2000
Forum Statistics
Forums63
Topics37,575
Posts293,931
Members13,824
Most Online6,139
Sep 21st, 2024
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
Greg Hard 4,625
Top Posters(30 Days)
Gizmo 1
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2025 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.1
(Snapshot build 20240918)