Avacweb Chat Quote Button
(version 1.6 - 1.9.1) (Not supported in 2.0)This plug in will add a quote button at the end of each message. To test this out, view the chatbox on this forum.
Here's the plug in code:
- Code:
[panda=js]avacweb_chat_config.message_hook.push(function(row, username, userid, usr, msg) {
row.innerHTML += '<span class="awc-quote" onclick="parent.avacweb_chat.quote_msg(\'' + username.replace(/'/g, "\\'") + '\', this.parentNode)">Quote</span>';
});
avacweb_chat_config.add_event('onload', function() {
avacweb_chat.quote_msg = function(user, row) {
avacweb_chat.insert_text( '[quote="' + user + '"]' + $('.msg', row).text() + '[/quote]' );
};
});
This plug in also requires some CSS, so put this in your forums CSS[tip]Found at ACP > Display > Colors > CSS Stylesheet[/tip]
- Code:
[panda=css].awc-quote { float: right; font-weight: bold; text-shadow: 0 1px white; cursor: pointer; }
Enjoy!