Any new/novel solutions to the problem of PMs not updating in their count #? I dont want to do the digitalcrowd method of manually incrementing the # in teh database because it seems to sometimes update correctly and not other times.
Is there a way to tell vb to reasses the PM count using a built in function? |
Quote:
|
Quote:
In private.php: Code:
// ###################### Start pm update counters ####################### Give that a whirl. |
How Can I Send A Private Message To Users As Soon As They Make Their 10th Post?
|
Quote:
Anyone got any help on this? |
FYI, there seems to be a new function within the PM datamanager in version 3.7.0, which is needed for sending automatic PMs (such as in the welcome pm)
$pmdm->set_info('is_automated', true); |
I am receiving an error that the user has PMs disabled, when the user doesn't. Any ideas? I'm attempting to send a PM to the main administrator account.
Code:
$pmdm =& datamanager_init('PM', $vbulletin, ERRTYPE_ARRAY); |
I found mferguson's modification fixed the problem I was having:
PHP Code:
|
Hello,
how does it works to send html in the private message? i want to send a javascript to open a popup window with a picture. the pm will be sent automatically thx 4 help |
Hi Andreas,
The following bit: PHP Code:
Thanks. -- Jason |
Quote:
First you need this BEFORE the message is called to be sent: $message = $vbphrase[your_phrase]; Then change the line you have posted above to read: $pmdm->set('message', $message); |
Does this work with 3.7.3?
And if so, wkhat file do I need to include in the php file? |
Quote:
no file to include. |
Since my code deals with PM's I need to exclude myself from receiving a PM as I am the one making the new comment.
PHP Code:
PHP Code:
Thanks |
You should be able to exclude yourself using the following query given that userid is a column in the threadcomment table.
PHP Code:
|
Thank you very much, thats what I needed.
Had to change it: PHP Code:
|
Glad to help!
|
Is it possible to transfer it for the vb 4.0. x ?
|
I am sending to a lot of recipients at once. Its in a loop sending to 20 recipients at a time (user1;user2;etc)
Occasionally Ill get the following error when checking $pmdm->errors: Quote:
I am using $botpermissions['adminpermissions'] = 2; to override if their mailbox is full, but don't want to send a PM to people who aren't allowed by way of permissions to receive them. Can this be checked in the query I am using to select names from the user table? Or is there code that can be used to check to see if the user is able to receive PM's? I appreciate any insight. Thanks, Steve |
hello, I want send a content to two people, but different title, how to?
|
All times are GMT. The time now is 02:17 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|