The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Working with rssposter_parse_rss hook
I'm trying to implement a source blocklist for our RSS feeds - we get newsfeeds from Google News and rather than trying to figure out Google's broken news-source nomenclature, I will just block items from unwanted sources from posting. I'm hooking rssposter_parse_rss and have defined a blocklist as $vbulletin->options['rssitemsourcefilter_blacklist']. Here's my plugin code so far:
PHP Code:
Any help appreciated. Thanks. |
#2
|
|||
|
|||
Unfortunately, I don't see how you can do what you want to do using that hook, and there really aren't any other hooks in the rss poster code. The only thing I can think of offhand is if you're posting the item as threads, you might be able to use a hook like threadfpdata_doset to set an error as if one of the fields were invalid, then when the rss poster calls save() to post the thread, it will fail. But to do that you need a way to detect that it's the rss poster cron job creating the thread, and you also need to be able to check the source.
Of course editing the vb files is always another option. |
#3
|
||||
|
||||
Kevin, thanks for your reply. I know I could add a little something to class_rss_poster or rssposter but was hoping to avoid that. I'll look at perhaps setting a flag that another hook might see. Thanks again.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|