The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Autofill PM from form.
Hi guys,
I was just wondering if any of you coders out there would know how to accomplich this: If I have an external page and want a member to send a different member a PM I can achieve it like this using chdir() : PHP Code:
Thats all fine and dandy. However, if I wanted to send a PM to the user that will autofill the PM text area in private.php from a text area in my external page how would I do it? Is this possible to achive without modifying vB. i.e is there a way of using $_POST and the url to achieve this? Any ideas would be very much appreciated. Kind regards |
#2
|
|||
|
|||
If your forcing the user to send a message to a certain user and want to fill in the text area for them. Why not use the PM Datamanager in your script to send a PM straight from your script?
PHP Code:
|
#3
|
|||
|
|||
Thanks for you extremely quick reply.
How would I implement the script above? Sorry, not a genius at PHP but know just enough to get me by. Could you, by any chance, give me a quick example of how to integrate it? Very much appreciated RLShare. |
#4
|
|||
|
|||
As long as you have 'global.php' included you would do it just as I posted it where ever you wanted to send a pm.
You would need to change the $title , $message , fromuserid , fromusername and Set recipients at the very least. Everything else is optional for you to change if you want and are pretty self explanatory, they all coinside with options that are available when you send a PM from the private message center in VB. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|