MyBB-Plugins Forums
Multiquote and quote help. - Printable Version

+- MyBB-Plugins Forums (http://forums.mybb-plugins.com)
+-- Forum: MyBB General Discussion (http://forums.mybb-plugins.com/Forum-MyBB-General-Discussion)
+--- Forum: Coding Help (http://forums.mybb-plugins.com/Forum-Coding-Help)
+--- Thread: Multiquote and quote help. (/Thread-Multiquote-and-quote-help)



Multiquote and quote help. - crazy4cs - 11-30-2012

I'm working over a plugin where I'm supposed to replace post's content with my error when getting doing quick quote or either quoting through newreply.

I also tried to review the multiquote snippet from hideuntilpost plugin but it doesn't work.

Tried few other things as well, but not getting a clue. Any help would be a boon.

Thank you.


RE: Multiquote and quote help. - Diogo Parrinha - 11-30-2012

You need to explain yourself better please. You can use the xmlhttp hook to interact with the multi quote process or quick quote.


RE: Multiquote and quote help. - Omar G. - 11-30-2012

You can hook at parse_quoted_message,


RE: Multiquote and quote help. - crazy4cs - 11-30-2012

Could you give me an example Omar if possible? That'd be great.

Thank you.


RE: Multiquote and quote help. - Omar G. - 12-01-2012

PHP Code:
$plugins->add_hook('parse_quoted_message''foo');
function 
foo(&$post)
{
    echo 
'<pre>';
    echo 
var_dump($post);
    echo 
'</pre>';
    exit;


$post holds the post subject, message, pid, tid, username, dateline, fid, visible status, userusername.