![]() |
prefill user and title field in new pm
hi all, im trying to prefill a pm template, where i can prefill the recipient with say 3 user_id's and the title.
tried to do it like this: Code: private.php?do=newpm&u=291&title=free-upgrade it did not work, private.php?do=newpm&u=291 is fine but to a single user i need to do it for 3 users and also the subject/title. Any help would be great, i know it can be done as i have before, i just cant remember how. Thanks Craig |
You can do this:
Code:
private.php?do=newpm&userid[]=3&userid[]=1 but I don't see any way to set the title without a plugin. |
maybe a copy private.php with a query string $ in the value for title?
Craig |
Well yes, you could also edit private.php.
|
do you know what i would need to put, but i dont want it there for every pm, just links that i give to users.
Craig |
I think it should be:
Code:
$vbulletin->input->clean_gpc('r', 'title', TYPE_NOHTML); If you're insterested in using a plugin you could try hook location private_newpm_start. |
sorry but vb coding im not too good with, are you saying if i add that i should be able to use title in a querystring, the recipient is fine now, i just need to be able to pass a link like:
Code:
private.php?do=newpm&userid[]=1&userid[]=2&userid[]=3&title=Free-Upgrade Craig |
Quote:
|
should i just add those 2 lines of code to private.php
tried it and got: Fatal error: Call to a member function clean_gpc() on a non-object in Craig |
Where did you put it? If you're going to insert it in the file it should be in the section that starts with
Code:
// ############################### start new pm ############################### |
All times are GMT. The time now is 11:37 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:
|