![]() |
Help with conditional that requires min. post count and min. number days registered
Hello, hopefully someone familiar with PHP can help me with what is likely a very simple question...
I am using the Easy Forms modification to standardize my Classifieds section which has been working great. This modification has a field for "Form Hook: Form Start:" which I am trying to utilize with a conditional to filter who may start a thread in my classifieds section. I am looking to allow new threads to be posted by users who both: 1) have 30 posts or more 2) have been registered for 30 days or more I am looking to not allow new threads to be posted by users who either: 1) have less than 30 posts 2) have been registered for less than 30 days The code I was trying to use (and is incorrect) is: PHP Code:
Can someone take a look and let me know what I have mixed up here? Unfortunately my PHP knowledge is limited so I can't figure it out solo. Thanks a lot, Bryan |
"Registered less than 30 days" would be $vbulletin->userinfo['joindate'] greater than TIMENOW - (86400 * 30), not less than.
|
thank you sir, i just applied that change to my site
|
All times are GMT. The time now is 03:28 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|