What this hack does
This hack will allow your members to create 'diaries' (the term my site uses)--forums that are "owned" by a member or group of members. The owner(s) will be able to add and delete other owners to their diary, and modify the title/description of their diary.
How it works
When a user would like to create a diary, they will visit /forumdir/diarycp.php and submit their application (username and description of their desired diary). To prevent abuse, the application will be moved to /forumdir/queue.php. An administrator can either deny or confirm the application. If denied, the application is removed from the diary_queue table. If it is confirmed, it is removed from the diary_queue table and created as a new forum.
For nearly all of this functions I use the build-In Class System to prevent Errors and use the Internal Error-Handling.
The file located at /forumdir/diarycp.php will include the statistics of an owner's diary(s), including post count, thread count, latest post, forum name, as well as the 'Edit Diary', 'Add Owner', and 'Delete Owner' functions.
AdminCP
In this brand New Version you can modify the possible Settings for the New Forums and the Moderator-Settings in the ACP in the vBulletin Options. Attention: This Settings has only effect for new created Forums and/or Moderators/Owners.
You can Give each Usergroup additional Rights to see the DiaryCP, to create/edit Diaries and to Administrate Diaries.
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
Going to be using this mod on my forum soon, but was also find that when confirming a forum, the person who confirmed it would be set as the owner and not the true owner. To remedy this, open up queue.php
Code:
FIND
$moddata->set('username', htmlspecialchars_uni($vbulletin->userinfo['username']));
REPLACE WITH
$moddata->set('username', htmlspecialchars_uni($owner));
There was also a bug in the diary_main_modslist template:
Code:
REPLACE THE ENTIRE TEMPLATE WITH THE BELOW CODE
<a href="$vboptions[bburl]/member.php?u=$moderator[userid]">$moderator[username]</a>,
Going to be using this mod on my forum soon, but was also find that when confirming a forum, the person who confirmed it would be set as the owner and not the true owner. To remedy this, open up queue.php
Code:
FIND
$moddata->set('username', htmlspecialchars_uni($vbulletin->userinfo['username']));
REPLACE WITH
$moddata->set('username', htmlspecialchars_uni($owner));
There was also a bug in the diary_main_modslist template:
Code:
REPLACE THE ENTIRE TEMPLATE WITH THE BELOW CODE
<a href="$vboptions[bburl]/member.php?u=$moderator[userid]">$moderator[username]</a>,
@ all: Is it possible to send out a mail to the board admin(s), when a new forum is requested? This would be a perfect addon since I do not check my queue.php every day.