News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

code for subject pm

Started by sonic180, December 05, 2008, 07:00:47 PM

Previous topic - Next topic

sonic180

Hi all,

i want to give someone a link to send me a pm.

in the address i provided is the number of my account on the forum visible,
like this:
hxxp:www.parkieten-land.nl/smf/index.php?action=pm;sa=send;u=3856 [nonactive]
the u is the user,

can i add code to this link to determine subject as well?
(this does not work) something like
hxxp:www.parkieten-land.nl/smf/index.php?action=pm;sa=send;u=3856;S=information [nonactive]

hopefully someone can help me with an answer or the location of a topic which contains it!
i have used the search option but that does not give any result for me..

thank you!!

Nic

Oldiesmann

Sure.

Sources/PersonalMessage.php

Find
Code (Line 1579) Select
$form_subject = '';

Replace
$form_subject = isset($_REQUEST['subject']) ? $smcFunc['htmlspecialchars'](urldecode($_REQUEST['subject'])) : '';

I haven't tested this, but I'm fairly certain that will work. Let me know if it doesn't.
Michael Eshom
Christian Metal Fans

sonic180

going to test it! thank you so much!

Nathaniel

sonic180,
Did the test go well? If this is solved feel free to mark it as solved otherwise reply with some details of what isn't working.
SMF Friend (Former Support Specialist) | SimplePortal Developer
My SMF Mods | SimplePortal

"Quis custodiet ipsos custodes?" - Who will Guard the Guards?

Please don't send me ANY support related PMs. I will just delete them.

Advertisement: