PDA

View Full Version : Can I include thread prefix and topic tag filters to external.php feeds?


SBlueman
06-01-2013, 11:48 PM
I would love to know if it's possible to build such a URL string to create RSS feeds:

http://yourforum.com/forums/external.php?type=RSS2&forumids=108,112&prefixid=prefix_id_goes_here&tag=tag_here

So basically IF the story is in X forum AND has a specific prefix id AND has a specific topic tag, then show the thread. Best part? I am using the Zoints topic tag mod. I might consider disabling the modification and using the default tag system if this would facilitate the url string.

Lynne
06-02-2013, 12:38 AM
You would not be able to do what you want without actually editing the external.php file itself.

SBlueman
06-02-2013, 02:22 AM
Well I am game, I just don't know what to edit and how. Anyone have any insight as to what to edit in external.php to make this work?

Lynne
06-03-2013, 12:25 AM
Your have to edit the query which gets the thread information to include the prefix and tags that you include. Be sure to 'clean' your passed variables (article in the articles forum about that) before you use them in your query.

SBlueman
06-03-2013, 02:46 AM
Which query would that be? And how do I include the prefix and tags? You'll have to forgive me and deal with me with kid gloves, I am not the most tech savvy guy out there.

Lynne
06-03-2013, 03:55 PM
It looks like the query is around line 297 and just above it is the hook external_query, so I guess you may be able to write a plugin to insert the extra lines for the query. As for adding the prefix... there is thread.prefixid, so if you have the id, you could just use that. And for the tags is thread.taglist.