Fork me on GitHub

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Support for Vanilla Forums Cloud product

In this Discussion

Ready to contribute?

Amazing! Sign our contributors' agreement and then join us on GitHub.

Current releases are 2.1.3 (9 Sept 2014) and 2.0.18.13 (5 Aug 2014)

Ready for 2.1? Find out if your plugins are compatible. 2.0 will no longer be updated after Dec 2014.

Adding new categories, new groups programmatically from outside Vanilla?

RippRipp New
edited May 2012 in Vanilla 2.0 Help

I'm investigating using Vanilla within my application rather than writing forum software of my own.

Basically, I'd like to be able to:

a) When a user registers on my site and I use the SSO plugin to create an account on the Vanilla forum for them, I also have the option of creating a new group.

b) I need to be able to update the user's group membership from my application, rather than manually from Vanilla's dashboard.

c) I'd also like the option of creating new categories for each group.

The idea is that there are private sub-forums for each group which I want to control membership of/visibility of from within my application.

For example, you might sign up for my site, start off on Group 1, which has a private forum visible only to Group 1 members.

Then an event happens within my application and you get moved to Group 7 let's say. So you shouldn't be able to view Group 1 any more. But now you can see the category for Group 1.

Does this sound vaguely familiar to anyone...?

Basically, all of this functionality is available in the Vanilla Dashboard. But it doesn't look like the Dashboard exposes an API.

Answers

  • OK, if there no plugin available, there is a really ugly hack I can do.

    I could write a script to:

    1. Access my forum via HTTP

    2. log into the dashboard

    3. then provide the following functions

      a. add users

      b. create new groups

      c. create a new category

      d. change the category a user belongs to.

    Of course, this is a very ugly hack :)

    I'm hoping that there is a better solution than this, that Vanilla possibly exposes the Dashboard in another way.

  • RippRipp New
    edited May 2012

    Anybody? Or if there is a way to do this via writing a plugin, I'd be happy to do that too..I just need a pointer in the right direction.

Sign In or Register to comment.