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

PrivateReply Plugin - major bug :/

Quote Reply
PrivateReply Plugin - major bug :/
Hi,

I've just been trying to debug and issue for someone, after we made some changes to the templates.

However, the issue seems to actually be coming from the PrivateReply plugin.

I'm running this on 1.2.4 , and also a test isntall of 1.2.4.

The issue looks like a permission issue (please see attachments).

Basically, it seems like after trying to change the editor version, it just gives as an error:


Quote:
Home: Permission Denied

Oops! You are not authorized to view that page.

Maybe just a simple fix somewhere? I've tried looking, and it all seems to be calling the right "do" function when clicking:

do%3Dmessage_post_reply_write%3Bbasic_editor%3D1%3Bbasic_editor_switch%3D1=Switch+to+Basic+Editor

TIA for any suggestions.

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!
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!