Quote:
Originally Posted by ICannt.org
Essentially, we've got Easy Forms installed and we want users to only be able to submit a form on particular forums so they can follow a pre-defined template instead of being able to post whatever they want.
I've got a "Notice" on the forums saying with a bit of text, including a link to the needed form, but I know of no other way to hide the "New Thread" button.
I originally tried simply taking away permissions for Registered Users to Create New Threads, but then that wouldn't let them upload attachments to the form - which is a necessity.
If you know of any other way to do this, that would be greatly appreciated.
|
You can make a plugin so that if the "New Thread" button is used it generates your form.
Hook Location: newthread_start
Two examples in the code below - (
change the forum ID numbers and the form addresses)
PHP Code:
if (in_array($forumid, array(1,2))) {
header( 'Location: http://www.xxxxxxx.org/forums/misc.php?do=form&fid=3' ) ;
}
if ($forumid==4)
{
header( 'Location: http://www.xxxxxxx.org/forums/misc.php?do=form&fid=5' ) ;
}