Yet Another Multi-Quote Hack
This modification is in the archives.
This particular hack allows users to multi-quote directly from the newreply page instead of in the thread itself. A "quote" link is placed in each post in the thread review, allowing for quck, efficient multi-quoting without the need to plan posts in advance.
Only two file edits and a template tweak, nothing major. Suggestions/bug reports (and fixes) are welcome... this is my first hack so be nice. XD Thanks to Snow for pointing out WYSIWYG incompatibility problem and fixing my javascript. *INSTALLATION* In newreply.php: FIND: PHP Code:
require_once('./includes/functions_bbcodeparse.php');
PHP Code:
$poststep1 = strip_quotes($post['pagetext']);
at the end, ADD: Code:
function do_quote_hack(quotestring,is_ie) { if (document.getElementById('htmlbox')) { if (is_moz) { moz_insert_smilie('<br>'+quotestring+'<br>'); } else { document.getElementById('htmlbox').innerHTML += quotestring; } } else { document.vbform.message.value += quotestring; } } FIND: HTML Code:
<td class="alt1" width="125" align="center">$username</td> HTML Code:
<td class="alt1" width="125" align="center"><p align=center>$username</p> <script language=javascript> var quotestring$post[postid] = '$poststep5'; </script> <p align=center><a href=# onClick="do_quote_hack(quotestring$post[postid],is_ie);"><img src="$stylevar[imgdir_button]/quote.gif" border=0></a></p></td> Screenshot is of the Thread Review section in newreply. Download No files for download. Screenshots
|