FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » Parsing a subject in a PM url
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Parsing a subject in a PM url [message #161786] Sat, 06 February 2010 14:37 Go to next message
Kermit is currently offline  Kermit   United Kingdom
Messages: 35
Registered: November 2004
Karma: 0
Member
Hi, I imagine this might be possible but haven't been able to find answer searching here, the wiki and google.

Is it possible to parse a predefined subject title in a PM. I can get this far which creates a pm to the relavent forum member but I'd like to pre-fill in the subject

http://www.ourforum.com/index.php?t=ppost&&toi=1373

Any help appreciated Razz

[Updated on: Sat, 06 February 2010 14:37]

Report message to a moderator

Re: Parsing a subject in a PM url [message #161787 is a reply to message #161786] Sat, 06 February 2010 23:41 Go to previous message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
Looking at ppost.tmpl, you'll see that the subject is a variable:

<input type="text" spellcheck="true" maxlength="100" name="msg_subject" value="{VAR: msg_subject}" size="50" tabindex="2" />


So, edit src/ppost.php.t and assign whatever you want to it:

/* setup some default values */
$msg_subject = $msg_body = $msg_icon = $old_subject = $msg_ref_msg_id = '';


Easy as pie.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Include php file
Next Topic: Initial Forum Layout ?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 24 13:13:41 GMT 2024

Total time taken to generate the page: 0.02416 seconds