View Full Version : Create a forum 1 thing to do then it is done
chad777
10-28-2002, 01:16 AM
Ok I have created a create a forum hack for vb.
this allows users to create a forum in a certain category with a name they pick and a description they pick.
there are only 1 thing I need to get done before I can release it.
1. Making the script insert whatever user created the forum as the mod for that forum.
I don't even know where to start on this
right now everything works except those 1 things.
meaning anyone can create a forum - I don't like this
it is already totality integrated with vb and looks great!
if anyone can help please let me know
Thanks
DrkFusion
10-28-2002, 11:05 AM
Hey, when I get back from work, I will help you, I have it basically planned out in my head, its pretty easy what you are trying to do..
-Arunan
Xenon
10-28-2002, 02:20 PM
well the solution can also be found in admin/forum.php
$DB_site->query("INSERT INTO moderator (moderatorid,forumid,userid,newpostemail,newthread email,caneditposts,candeleteposts,canviewips,canma nagethreads,canopenclose,caneditthreads,caneditsty les,canbanusers,canviewprofile,canannounce,canmass move,canmassprune,canmoderateposts,canmoderateatta chments) VALUES (NULL,'$parentid','$userid','$newpostemail','$newt hreademail','$caneditposts','$candeleteposts','$ca nviewips','$canmanagethreads','$canopenclose','$ca neditthreads','$caneditstyles','$canbanusers','$ca nviewprofile','$canannounce','$canmassmove','$canm assprune','$canmoderateposts','$canmoderateattachm ents')");
this is the queryline to add a moderator. you have just to replace the variables into hardcoded 0 or 1 ;)
DrkFusion
10-28-2002, 07:32 PM
For teh actual addition of forum part, enter a query that puts the userid of the user, into the moderator field, where the forumid is equal to the name of the new forum...I may not be clear, but trust me its along this line ;)
Link14716
10-31-2002, 03:00 AM
Well hell, we have Quick Reply, Quick Thread, and Quick Register, why not a Quick Forum! LMAO!
Pretty good idea, but could easily be abused. Maybe if you added a new column to the forum table and make it so it logs the user's userid and add a query and if statement checking to see if that user has made a forum. If so, give them a standard error. :) DO that and it'll probably decrease on the abusing by 1000%.
chad777
11-01-2002, 01:29 AM
if you want to help get this release please see beta hacks....vB add forum beta 1
FleaBag
11-01-2002, 07:28 PM
I think it might be a good idea to add some features such as follows...
Users can only create 1 forum per account.
No 2 accounts using the same IP address can create a forum.
X number of supporting members required for forums to be validated.
Moderation list of forum applications to check that the forum is in the correct category/suitable for public viewing.
Erwin
11-02-2002, 12:33 AM
You cannot base it on same IPs - people using AOL for example will have different IPs each time they log on, and different members may share the same IP on different days.
DrkFusion
11-02-2002, 12:35 AM
I would add a new field to users, then put the id of the forum there, and on the form page, make it do a checkup, if the forumid exisits there then do not load form, and this can be used to show a delete forum button, and many other options, the options are endless.
Good Luck
-Arunan
FleaBag
11-12-2002, 05:14 PM
This still in development?
chad777
11-12-2002, 05:16 PM
kind of ....it is in the beta hack section. I have asked people to help me finish it
FleaBag
11-12-2002, 05:40 PM
That's cool, thanks. :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.