The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
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 |
|
#2
|
|||
|
|||
|
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. |
|
#3
|
|||
|
|||
|
maybe a copy private.php with a query string $ in the value for title?
Craig |
|
#4
|
|||
|
|||
|
Well yes, you could also edit private.php.
|
|
#5
|
|||
|
|||
|
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 |
|
#6
|
|||
|
|||
|
I think it should be:
Code:
$vbulletin->input->clean_gpc('r', 'title', TYPE_NOHTML);
$pm['title'] =& $vbulletin->GPC['title'];
If you're insterested in using a plugin you could try hook location private_newpm_start. |
|
#7
|
|||
|
|||
|
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 |
|
#8
|
|||
|
|||
|
Did you try it? I haven't, but I think it should work.
|
|
#9
|
|||
|
|||
|
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 |
|
#10
|
|||
|
|||
|
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 ###############################
// form for creating a new private message
if ($_REQUEST['do'] == 'newpm')
{
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|