![]() |
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 |
single & is a reference double && is the AND operator
|
Quote:
any hint ? |
try
PHP Code:
|
1) & is bitwise AND if used as an Operator
2) It's $vbulletin->userinfo, not $vbulletin->bbuserinfo |
I tried those codes:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
And no one of them work. :tired: |
Hmm, where did you put Code #1
|
Hook private_newpm_start
|
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 |
Its work 100%
Thanks alooooot ^_^ |
Quote:
& bitwise...forgot about that |
All times are GMT. The time now is 02:08 AM. |
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:
|