The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
I found this code in vb.org and would like to know if it can be implemented in VB3.6 (the previous code was for VB3.0).
Code:
if ($bbuserinfo[usergroupid]==X AND $foruminfo[forumid]==Z) {
$checkpostfromthread=$DB_site->query_first("SELECT count(*) as count FROM thread WHERE postuserid=$bbuserinfo[userid] AND forumid=$foruminfo[forumid]");
if ($checkpostfromthread['count']>Y) {eval(print_standard_error('canpostx'));exit;}
}
I want to be able to check the number of threads that a user has in that particular forum before allowing the user to create a new thread. |
|
#2
|
|||
|
|||
|
Would appreciate if an expert coder could advise - if it can or cannot be done. Thanks.
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|