I have what is probably a very simple question for anyone with PHP experience... (which I unfortunately do not).
In the Form Hook: Form Start: field, I currently have the following code which requires users to have a post count of at least 30 to use the form:
Code:
if($vbulletin->userinfo['posts'] < 30)
{
$errormessage = "You need 30 posts to use this form.";
eval('print_output("' . fetch_template('STANDARD_ERROR') . '");');
}
I would like to add a second requirement here, which also requires users to have joined at least 30 days ago in order to use the form.
I found the following code, but am not sure how to properly add it to what I have currently:
Code:
$vbulletin->userinfo['joindate'] < TIMENOW - (86400 * 30)
Again, I am looking to require that users have at least 30 posts AND have joined at least 30 days ago in order to use the form.
Thanks in advance for the help!