MyBB Community Forums

Full Version: Subject parameter in URL
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is it possible to have preset fields/settings by the URL.
Reason I want this as it can be useful instead of a seperate contact page etc.

The url for a pm would be: http://www.dedeno.net/forum/private.php?...send&uid=1

Gives a page where you send the user with ID 1 a message, empty content and empty title, but is it possible to do something like
http://www.dedeno.net/forum/private.php?...send&uid=1&subject=question to automatically have the subject of the message set as question ?

Also curious to know what parameters are possible as well if that one works or how that one could be implemented.
Thanks in advance.
Hi Ansem,
I'm short on time, the info you need is here, but you get to connect the dots:

1) use the PHP in Templates plugin

2a) In the related template grab the variable(s) from the URL:
<?php
$subject= $_REQUEST["subject"];
?> 

2b) Use the variable(s) in the right spot.