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 :: Unread Messages :: Show Polls :: Message Navigator
| Subscribe to topic | Bookmark topic 
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 09:37 Go to next message
Kermit is currently offline  Kermit   United Kingdom
Messages: 22
Registered: November 2004
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
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 09: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 18:41 Go to previous message
naudefj is currently offline  naudefj   South Africa
Messages: 3632
Registered: December 2004
Karma: 17
Senior Member
Administrator
Core Developer
add to buddy list
ignore all messages by this user
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.
Quick Reply
Formatting Tools:   
  Switch to threaded view of this topic Create a new topic
Previous Topic: Include php file
Next Topic: Initial Forum Layout ?
Goto Forum:
  

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

Current Time: Fri Dec 15 05:20:01 EST 2017

Total time taken to generate the page: 0.00594 seconds