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

Re: [Andy] PrivateReply Plugin - major bug :/

Quote Reply
Re: [Andy] PrivateReply Plugin - major bug :/ In reply to
Ok, managed to fix it.

It was post=xxx being missed out on that button.

For anyone else having the same issue, you need to look at:

include_message_html_common_write.html

Find:

Code:
<input type="submit" class="button" name="do=<%this_do%>;basic_editor=1;basic_editor_switch=1<%if this_do eq message_reply_write%>;message=<%parent_msg_id%><%endif%>" value="Switch to Basic Editor">

..and change to:

Code:
<input type="submit" class="button" name="do=<%this_do%>;basic_editor=1;basic_editor_switch=1<%if this_do eq message_reply_write%>;message=<%parent_msg_id%><%endif%><%if this_do eq "message_post_reply_write"%>;post=<%post_id%><%endif%>" value="Switch to Basic Editor">

...and:

include_message_common_write.html

Find:

Code:
<input type="submit" class="button" name="do=<%this_do%>;advanced_editor=1;advanced_editor_switch=1<%if this_do eq message_reply_write%>;message=<%parent_msg_id%><%endif%>" value="Switch to Advanced Editor">

..and change with:

Code:
<input type="submit" class="button" name="do=<%this_do%>;advanced_editor=1;advanced_editor_switch=1<%if this_do eq message_reply_write%>;message=<%parent_msg_id%><%endif%><%if this_do eq "message_post_reply_write"%>;post=<%post_id%><%endif%>" value="Switch to Advanced Editor">

GT, the fix is just to add this onto the code - so maybe you wanna add this into some basic documentation for this plugin, so other people don't spend ages trying to fix like me? ;)

Code:
<%if this_do eq "message_post_reply_write"%>;post=<%post_id%><%endif%>

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 PrivateReply Plugin - major bug :/ Andy 6469 Oct 10, 2009, 1:15 AM
Post Re: [Andy] PrivateReply Plugin - major bug :/
Andy 6213 Oct 10, 2009, 1:24 AM