![]() |
Auto PM
Code:
$botpermissions['adminpermissions'] = 2; |
The "override quota" setting needs to be before the recipients are set, I believe.
|
How to stop it from giving errors ? And all the queries are made after $pmdm->save(); right ?
|
Again, see my post above - it should address your "PM quota/not enabled" error. If you have any other errors, you have to say so - we aren't mind readers.
|
Edit : I figured out, best way would be to test if user can recieve PM or not - how would I do that ?
|
Bump
|
Did you try what Hanson suggested - putting the override before the set_recipients?
|
I did, but now I want to find out if user has enabled PM or not
|
I would also like an answer to this question?
|
So my question is how do I find out if user has enabled PM (or enabled only for mods etc) ? I have been trying to find those options in the database
|
You will need to look at user.options You will need to find the code that deciphers that field. Or find the code that has deciphered it and find what the new variable is called that you can look at.
|
Unfortunately value of user.options (which is 2048 in my case) doesn't help in deciphering it. Any idea where can i find the code that deciphers it ?
|
Doing a search for "user.options" in the files gives me this in class_profileblock.php:
PHP Code:
Doing a search of "$this->registry->bf_misc_useroptions" in the files turns up a lot more info, like this in class_dm_pm.php: PHP Code:
|
<a href="https://vborg.vbsupport.ru/showthread.php?t=166940" target="_blank">This might be an interesting read.</a>
|
All times are GMT. The time now is 11:07 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:
|