MyBB Community Forums

Full Version: 'newreply_do_newreply_end' hook doesn't apply to quick reply
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I am coding a plugin that calls a function on the occurence of the 'newreply_do_newreply_end' hook.

The function is really called if I clicked the "New reply" button and submit a reply to the thread.

But it is not called if I replied using the quick reply function :/

Any help?

Thanks!

I solved it temporarily like that:

1. Edit template 'showthread_quickreply'
2. Replace
<form method="post" action="newreply.php?tid={$tid}&amp;processed=1" name="quick_reply_form" id="quick_reply_form">
with:
<!-- <form method="post" action="newreply.php?tid={$tid}&amp;processed=1" name="quick_reply_form" id="quick_reply_form"> -->

3. Add:
<form action="newreply.php?tid={$tid}&amp;processed=1" method="post" enctype="multipart/form-data" name="input">
Under:
<!-- <form method="post" action="newreply.php?tid={$tid}&amp;processed=1" name="quick_reply_form" id="quick_reply_form"> -->

4. Replace:
<input type="hidden" name="method" value="quickreply">
With:
<!-- <input type="hidden" name="method" value="quickreply">	-->
What do you want to do with your plugin ?
Peharps you don't look for the good hook.