Quote:
Originally Posted by Illustrious
I made it so that it will quote the selected text whenever I click the "quick reply" button:
I found this:
Code:
<a href="$post[replylink]" rel="nofollow" id="qr_$post[postid]" onclick="return false"><img src="$stylevar[imgdir_button]/quickreply.gif" alt="$vbphrase[quick_reply_to_this_message]" border="0" /></a>
To this:
Code:
<a href="javascript:;" onclick="quickquote('$post[musername]', '$post[postid]');"><img src="$stylevar[imgdir_button]/quickreply.gif" alt="$vbphrase[quick_reply_to_this_message]" border="0" /></a>
But indeed, if you could get it to work with WYIWYG editor, it would be awesome.
|
This...this edit brings it just one step away from being the quick quote hack I've been wanting since how awesome the 3.0 one was!!!
The only problem with this now is that doing this edit makes it so the QR button no longer functions normally.
If it can be made so that:
1: If there is text selected, pressing the QR button quotes it in quick reply.
2: If no text is selected, the QR buttons functions normally (e.g., marks that post as the post being replied to).
It will be pure awesomeness. As I said, I've been waiting for the second coming of the quick quote hack that I used to have back on 3.0, and with the edit I quoted, it truly is just one step away. Hopefully someone can complete it...
EDIT!!!
Nevermind! I worked it myself. I took illustrious' idea and, instead of replacing the original QR button, I added it right above it (so it appears to the left), and changed the image name to multiquote_off.gif, so that it calls the multiquote's button image. Then I turned off the built-in multiquote feature.
Now it works EXACTLY like I always wanted! So awesome...