The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Hint about pm
If I want to join two condition in a one line
1)number of posts ( minimum 50 post) 2)user group id =2 ( members group) To prevent members from sending pm's before 50 post put they have the permission to read any receive pm, is it look like this: PHP Code:
Regards |
#2
|
|||
|
|||
single & is a reference double && is the AND operator
|
#3
|
|||
|
|||
Quote:
any hint ? |
#4
|
|||
|
|||
try
PHP Code:
|
#5
|
||||
|
||||
1) & is bitwise AND if used as an Operator
2) It's $vbulletin->userinfo, not $vbulletin->bbuserinfo |
#6
|
|||
|
|||
I tried those codes:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
And no one of them work. :tired: |
#7
|
||||
|
||||
Hmm, where did you put Code #1
|
#8
|
|||
|
|||
Hook private_newpm_start
|
#9
|
||||
|
||||
Once again:
It's $vbulletin->userinfo and not $vbulletin->$userinfo or $vbulletin->$bbuserinfo. Furthermore, Hook private_newpm_start is not sufficient, as this will keep them form using the Form - but not from sending PMs You must also place the check in private_insertpm_process |
#10
|
|||
|
|||
Its work 100%
Thanks alooooot ^_^ |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|