Subject completion on personal messages

Started by secondclass, June 14, 2005, 07:01:36 PM

Previous topic - Next topic

secondclass

Does anyone know how to get the subject box completed on personal messages?

I'm trying to have a contact me about... page for my forum, and wanted to be sure the subject is always the same for later sorting. So far have got this  link

hxxp:www.secondclass.org.uk/index.php?action=pm;sa=send;u=2 [nonactive]

and want to be able to add something like subj=Team7 after the u=2 part, but don't know how to make it work. I want it to work along the lines of mailto:[email protected]?subject="team7" in html

Thanks in advance,

Niels

[Unknown]

You can do it by finding this in PersonalMessage.php (1.1) or InstantMessage.php (1.0):

$form_subject = '';

And replacing it with:

$form_subject = isset($_REQUEST['subject']) ? htmlspecialchars(stripslashes($_REQUEST['subject'])) : '';

And use:

http://www.secondclass.org.uk/index.php?action=pm;sa=send;u=2;subject=test

-[Unknown]

secondclass


Advertisement: