Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Specify what can be fed through RSS?

edited January 2007 in Vanilla 1.0 Help
In my project manager install, I have about 2-3 discussions (via whispers) per client. So, when a client logs in, all they see is those 2-3 discussions (seperated into 2 categories), then 2 other categories which they have read-only access to (announcements and documentation).

Because of this, I don't want to have an RSS feed link on the main index/discussions list. Nor do I want them to be able to feed any other category other then those 2 read-only categories. Instead, I'd only like them to be able to feed their client-specific discussions (vanilla/discussion/380/discussion-name/).

How would I go about doing this? I basically see it as hiding the CSS for index.php and categories.php, but showing it for specific discussion pages and for only the two categories that I want it to.

BTW <- Not a coder, so hold my hand, please.

Comments

  • This would also include the Discussion Overview area, as it doesn't work anyways, but I have it installed and would like to have it just not show up on that page.
  • TBH sounds like Vanilla needs a finer grained permissions more and more...
  • edited January 2007
    To prevent the RSS extension from working on the discussions page and the categories page:
    // Normal extension file's headers go above this line if ( ('index.php') != $Context->SelfUrl) || ('categories.php' != $Context->SelfUrl) ) { // add this line after the headers // extension's code goes in here } // add this line just before the end of the extension file ?>
    Essentially all your doing is adding two lines, one for the IF, and one to hold the end curly bracket, which ends the if.
This discussion has been closed.