Quote:
Originally Posted by upnorth
K so if we go that route how can I have the form force the user to login first.
|
Not sure about redirecting although I know there's a vB hook somewhere that can do that... what you could do (possibly - not tested it) is, in the form hack plugin right at the top, just after:
Code:
if ($_REQUEST['do'] == $formname)
{
put:
Code:
if (!$vbulletin->userinfo['userid'])
{
print_no_permission();
}
then if you need a redirector, replace (or add to) the print_no_permission() with the hook.
Alternatively you can amend this line in the plugin code:
Code:
// if (!in_array($vbulletin->userinfo['usergroupid'], array(2,5,6,7))) print_no_permission();
by removing the comment bars and amending the allowed usergroups (or removing the NOT bang and setting groups who cannot access, if that's easier).
Setting the post to be from a defined user is, from what I can tell, far more difficult, as the call to build_new_post() picks up the current user's id (whether a member or not).
Anyone found out how to circumvent the posts (from unregd users) going into the Moderation queue yet?