![]() |
Quick Nick & Quote in QR
1 Attachment(s)
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. IF YOU LIKE MY HACK, PLEASE CLICK INSTALL |
First Post Reserved.
|
Thanks GJ Trying it out now
|
Thanks
Installed:D |
Excuse me for not fully understanding this, but I don't. It looks like all it does is add the users name in bold, however the built in quote feature of VBulletin already will quote the users name for you.
|
Quote:
|
Psionic Vision,
there's something i cannot understand in readme for this mod. it says, in file /clientscript/vbulletin_textedit.js find "// vB_Text_Editor methods" and append some text after this line. but in my 3.8.2 the vbulletin_textedit.js is "compressed", there are no comments in there. where do i insert your additional text? ain't it possible not to change vanilla vbulletin_textedit.js but add your script as separate file instead? |
You can always download the uncompressed vBulletin from the vBulletin client area.
|
Psionic Vision,
that's what i did exactly. but you see, "compressed" javascript means it has no comments, no extra whitespace except bare minimum, it's stripped of all unnecessary characters to save bandwidth. effectively it's one line of code and the only comment box it has is its header stating it's vBulletin 3.8.2, copyrights blah-blah-blah. so where do i insert your code? |
You have to download the uncompressed version first, so that you can edit the files.
|
Psionic Vision,
ok, now i got it. sorry for me being stupid. :) |
Psionic Vision,
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... |
Quote:
Quote:
|
Quote:
Quote:
|
Psionic Vision,
never mind that, i already figured it out myself. |
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. |
Quote:
Quote:
|
Quote:
Quote:
|
i'm using tech forum templates, the button don't show :(
and yes.. i upload the quickquote.gif :) thanks.... great mod :) |
nevermind..
|
In my vb3.8.7 I don't look in file ./clientscript/vbulletin_textedit.js text // vB_Text_Editor methods
|
All times are GMT. The time now is 05:49 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|