Kunena 5.1 Released (13 May 2018)

The Kunena team is pleased to announce Kunena 5.1.0 [K 5.1.0].
Please read the blog post for information: www.kunena.org/blog/192-kunena-5-1-released

× Please note: The Kunena project team takes NO responsibility for maintaining nor supporting anything in this category.

Question how to create a category from php

1 year 3 months ago #1 by creat326

I thinking of creating a development section on one of my kunena forums and I want the system to automatically create categories when an user submits a new gaming module. So for instance, let's imagine someone submits "game module x" into my system.
I want to create a category under Forum/Game Modules/ called "gaming module x" so that people can post questions inside there about that module.

I want to be able to create this category automatically from a php call, how can I do this? I'm sure it's a couple of lines if you know the api but I can't figure it out. Since I need to create the category and assign permissions to this particular user as the moderator of that category.

Please Log in or Create an account to join the conversation.

  • Not Allowed: to create new topic.
  • Not Allowed: to reply.
  • Not Allowed: to add attachements.
  • Not Allowed: to edit your message.
Time to create page: 0.080 seconds