Version: 1.1.0, by akanevsky
Developer Last Online: Feb 2016
Category: New Posting Features -
Version: 3.8.x
Rating:
Released: 06-04-2009
Last Update: 06-04-2009
Installs: 29
Uses Plugins Auto-Templates
Code Changes Translations
No support by the author.
I no longer support my hacks. Please feel free to update them and release new versions elsewhere as long as I get the credit for the original modification.
/*=============================================*\
|| Quick Nick & Quote in QR
||
|| Author : Anton Kanevsky
|| Works on : vBulletin 3.5.x - 3.8.x
|| Released : Jun 05, 2009
||
|| Time required to install: 1 minute
|| Difficulty: easy
\*=============================================*/
DESCRIPTION
This product gives you an opportunity to quickly insert a post owner's nickname or a quote of some on-screen selection into your quick reply. Works properly in Opera, Internet Explorer and Mozilla, both in WYSIWYG and regular editor, and under Windows 9x, ME and XP platforms.
STATISTICS
File Uploads: 1
File Changes: 1
Products to Install: 1
FEATURES
[list][*]Insert Name Link in Posts (in Dropdown)[*]Insert Quote of Selection Button in Posts (next to the Quote Button)[*]Auto-Detection of Quote Format (between 3.5.x & 3.8.x)[*]
VERSION HISTORY
1.1.0 [+] Eliminated template edits. [+] The hack is now compatible with vBulletin 3.5.x - 3.8.x. [+] Added support for the new quote format first introduced in vBulletin 3.6.x.
1.0.2 [F] Fixed the empty-textarea-newline bug.
1.0.1 [F] Added compatibility with older browsers and platforms. [+] One less file edit (but one more template edit
1.0.0
First Release
The installation manual is contained within the attached file.
got it working. have an issue though: when editor is set to wysiwyg mode, using either "insert name" or "quick quote" functions produces an extra line break before inserted text. i took a look at your code and this behaviour seems to be expected as you check length of existing editor contents before inserting your own but somehow it doesn't work as expected with wysiwyg mode. in simple editor mode it works ok and only inserts extra line break when there is already some content in editor field. can you check this please?
also i have a feature request of a sorts: can you make your script to set focus on editor field after inserting either quote or username? that would be logical i think, usually i want to start writing my message immediately after quoting or addressing someone. i tried to append "this.focus()" call after "this.set_editor_contents()" but somehow it doesn't work. sorry i'm no javascript expert...
got it working. have an issue though: when editor is set to wysiwyg mode, using either "insert name" or "quick quote" functions produces an extra line break before inserted text. i took a look at your code and this behaviour seems to be expected as you check length of existing editor contents before inserting your own but somehow it doesn't work as expected with wysiwyg mode. in simple editor mode it works ok and only inserts extra line break when there is already some content in editor field. can you check this please?
That is a known bug. In WYSIWYG, there's some hidden formatting that causes the message length function to report a random non-zero number when the message area is empty - and I don't know how to work around the problem at this time.
Quote:
also i have a feature request of a sorts: can you make your script to set focus on editor field after inserting either quote or username? that would be logical i think, usually i want to start writing my message immediately after quoting or addressing someone. i tried to append "this.focus()" call after "this.set_editor_contents()" but somehow it doesn't work. sorry i'm no javascript expert...
A lot of people want to quote multiple things before starting to type a reply. If the focus kept jumping to message area every time, that would be very annoying to those people.
That is a known bug. In WYSIWYG, there's some hidden formatting that causes the message length function to report a random non-zero number when the message area is empty - and I don't know how to work around the problem at this time.
ok then, i'll have to advise my users not to use wysiwyg mode for quick reply.
Quote:
A lot of people want to quote multiple things before starting to type a reply. If the focus kept jumping to message area every time, that would be very annoying to those people.
i got your point but my users got used to phpbb behaviour and it focused on message area after clicking on username. i myself find it convenient too. is it possible to make it configurable? if not and you don't want to include this feature in your mod, can you advise me on how to do it then? i have no trouble running customized mods.
also i think it would do a lot of good to extract all html code from your postbit_factory plugin into separate template. this way it'd be much easier to change visual appearance of postbit.
i got your point but my users got used to phpbb behaviour and it focused on message area after clicking on username. i myself find it convenient too. is it possible to make it configurable? if not and you don't want to include this feature in your mod, can you advise me on how to do it then? i have no trouble running customized mods.
I could make it customizable on a per-user basis...
Quote:
Originally Posted by nohuhu
Psionic Vision,
also i think it would do a lot of good to extract all html code from your postbit_factory plugin into separate template. this way it'd be much easier to change visual appearance of postbit.
I could make it customizable on a per-user basis...
yes, that would be very helpful.
Quote:
Thank you for the suggestion.
well, upon closer look i turned this plugin off and made manual changes to my templates. it isn't that helpful either way 'cause it worked for vanilla postbit template but didn't work for customized postbit_legacy template, it didn't insert "quick quote" button. most probably it just couldn't find the piece of text that you chose as a placeholder for inserting new button. adding code from that plugin to the template worked like charm.