Gossamer Forum
Home : Products : Gossamer Forum : Development, Plugins and Globals :

Re: [Westin] How to send a PM by regular URL link?

Quote Reply
Re: [Westin] How to send a PM by regular URL link? In reply to
Nah, afraid not. GForum works so that it doesn't simply pass in whatever you pass in via gforum.cgi?xxxx , it actually has to look for the value. There is ways around this (I've had to learn them, as I'm working with GForum almost as much as GLinks now), but in this case - its a little more complex.

The below may work - but not had time to fully test, so not 100% sure =)

Make a new global called "grab_subject_from_in", with this code:

Code:
sub {
return { message_subject => $IN->param('message_subject') }
}

Then, you would need to find the template that deals with sending messages (can't remember it off the top of my head), and do this at the top of the template:

Code:
<%grab_subject_from_in%>

Then, open up include_message_html_common_write.html and also include_message_common_write.html, and find:

Code:
<tr>
<td align="right">
<%body_font%>
Subject:
<%/body_font%>
</td>
<td>
<input type="text" name="msg_subject" size="60" value="<%msg_subject%>" class="button" tabindex=2>
</td>
</tr>


..and change to:

Code:
<tr>
<td align="right">
<%body_font%>
Subject:
<%/body_font%>
</td>
<td>
<%if message_subject%>
<input type="hidden" name="msg_subject" value="<%message_subject%>" />
<%message_subject%>
<%else%>

<input type="text" name="msg_subject" size="60" value="<%msg_subject%>" class="button" tabindex=2>
<%endif%>
</td>
</tr>


Then, in theory - is you pass in message_subject=xxxxx, it should auto-fill it for ya.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Subject Author Views Date
Thread How to send a PM by regular URL link? Westin 8001 Apr 29, 2009, 7:11 PM
Thread Re: [Westin] How to send a PM by regular URL link?
Andy 7715 Apr 29, 2009, 11:53 PM
Thread Re: [Andy] How to send a PM by regular URL link?
Westin 7635 May 12, 2009, 8:01 AM
Thread Re: [Westin] How to send a PM by regular URL link?
Andy 7681 May 12, 2009, 8:11 AM
Thread Re: [Andy] How to send a PM by regular URL link?
Westin 7648 May 12, 2009, 8:38 AM
Post Re: [Westin] How to send a PM by regular URL link?
Andy 7639 May 12, 2009, 8:40 AM