Firefox PHP

Send PM as...

Posted by InitHello 
Send PM as...
September 30, 2011 03:48PM
So I'm working on modifying a bulk PM plugin to suit my needs, and I'm wondering if there's any way to set the sending username, for example to 'System'. I've tried hooking into pm_before_send and setting $pm_message['from_username'] and $_POST['from'] already, to no avail.

If anyone could point me in the right direction, that would be appreciated.
Re: Send PM as...
September 30, 2011 04:32PM
If I'm not totally mistaken it will always be the display_name of the sending user.
So if you want to change that, then create a user "System" and set its user_id as the sender (can't promise that either as its not expected to send a PM under a different user).


Thomas Seifert
Phorum Development Team / Mysnip-Solutions.de
Custom Phorum and general software development
worry-free Phorum Hosting
Sorry, only registered users may post in this forum.

Click here to login