User Generated Boards

Started by RMVGaines, August 26, 2006, 05:36:33 PM

Previous topic - Next topic

RMVGaines

First off you will have to excuse me, I have some experience with PHP but not very much which I assume is one of the primary reasons I could not figure this out on my own by viewing SMF's source files.

In any case I wish to place a form onto my forum which allows users to generate their own boards. Each user will only be allowed to generate one board and I already have an understanding of how to enforce that via an entry in each user database entry which states if the user has a board or not.

What I could not figure out on my own is how to generate a board via my own script. Are their any APIs in the forum which could be adapted to this purpose and if not how should I go about writing a script to do this?

Thank you for your time
-Robert

codenaught

Where would this be implemented?

Sources/Subs-Boards.php has a function called createBoard() that you can use, adding permission checks such as only allowing one board created per user.
Dev Consultant
Former SMF Doc Coordinator

RMVGaines

I was going to build a separate page, addboard.php or something like that, which contained the form and ran any needed code such as authentication. the script was going to be called by a button added underneath each category which also passes the category name to the script.

I searched through sub-boards.php and several other scripts and could not find the function you mentioned. i am running SMF 1.0.8.

Sorry for not respondiung erlier and thank you for your help.

codenaught

createBoard() was introduced in SMF 1.1. It will still be possible to do, but createBoard() would have been easier. I can take a look into doing this and may even think of releasing a mod as it sounds like it could be useful on some forums.
Dev Consultant
Former SMF Doc Coordinator

RMVGaines

Alright and thank you again.

If you do go ahead and make a mod please let me know.

Advertisement: