The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
Hello everyone, I was wondering if anyone knows how to send a pm upon a specific action. For example:
if (this condition true) { send pm } I want to send a automatic pm if the member wins a contest for example congratulating. I have been trying to read other mods that do this but they are all somewhat different and to be honest I am not sure where to even begin. If anyone has any insight or can at least point me in the right direction it would be very helpful. Thank you for your time everyone. |
|
#2
|
|||
|
|||
|
You could look at private.php, the section that starts with if ($_POST['do'] == 'insertpm'). In your case you probably just need to set up the pm array and make the datamanager calls, so you can ignore the buddy list and flood check code, and you probably would want to ignore errors as well (so if there are any errors after pre save, you would probably just give up on sending the PM).
|
|
#3
|
|||
|
|||
|
Quote:
Thanks for the fast reply khn.....after taking a better look at it now, it looks easier than I thought it was going to be. Thanks again.--------------- Added [DATE]1311474514[/DATE] at [TIME]1311474514[/TIME] --------------- OK After an entire day of meddelling with the code I have gotten it down to this..: PHP Code:
.... When I take off the: PHP Code:
.. Please help!
|
|
#4
|
|||
|
|||
|
I'm pretty sure what you want to do with the query lines is something like:
PHP Code:
|
|
#5
|
|||
|
|||
|
OK Got It!!
For example: Create a php file: PHP Code:
note: This only sends a pm to myself (I'm AWDevelopment). |
| Благодарность от: | ||
| Mooff | ||
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|