Would an rss feed of a specific category suffice? As with that just post the announcements in say an announcements category and then you can get the rss feed at www.domain.com/rss/categories/announcement
Yes - the category solution would work, except we're wanting to have these posts show up as their own distinct section on the homepage (above other posts as announcements behave).
So, if there's a way to accomplish that I'm all ears.
That's a cool feature (RSS of basically anything).
As for getting an RSS feed of the Announcements only, that is quite simple to do with a plugin.
1) Add a method _create hook to the Discussions controller. Call it Announcements. 2) In this method, simulate the Index() method in general, but make sure the query selects only Announcements 3) Access your shiny new RSS feed via: http://www.yourforum.com/rss/discussions/announcements
I haven't done much testing as this was done while I was sitting at my kitchen table Let me know if anything is broken (which is very possible as I built this against my current working copy of Vanilla2 RC).
I installed the plugin and am getting this error: Fatal error: Class 'Gdn_Plugin' not found in /Garden/plugins/AnnouncementRss/class.announcementrss.plugin.php on line 26
I upgraded to the latest version of Vanilla on Git, but am still getting that error. Any ideas? Thanks!
We added something to the plugin framework which isn't live yet. I've updated the addon now and it should be compatible with the older style. Let me know.
Comments
So, if there's a way to accomplish that I'm all ears.
As for getting an RSS feed of the Announcements only, that is quite simple to do with a plugin.
1) Add a method _create hook to the Discussions controller. Call it Announcements.
2) In this method, simulate the Index() method in general, but make sure the query selects only Announcements
3) Access your shiny new RSS feed via: http://www.yourforum.com/rss/discussions/announcements
Vanilla Forums COO [GitHub, Twitter, About.me]
@Tim I'm a PHP newb - could you code this plugin up for $50?
I haven't done much testing as this was done while I was sitting at my kitchen table
Good luck
Vanilla Forums COO [GitHub, Twitter, About.me]
I installed the plugin and am getting this error:
Fatal error: Class 'Gdn_Plugin' not found in /Garden/plugins/AnnouncementRss/class.announcementrss.plugin.php on line 26
I upgraded to the latest version of Vanilla on Git, but am still getting that error. Any ideas? Thanks!
Drew
We added something to the plugin framework which isn't live yet. I've updated the addon now and it should be compatible with the older style. Let me know.
Vanilla Forums COO [GitHub, Twitter, About.me]
Fatal error: Class 'DiscussionModel' not found in /Garden/plugins/AnnouncementRss/class.announcementrss.plugin.php on line 37
Vanilla Forums COO [GitHub, Twitter, About.me]