Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Quick Nick & Quote in QR Details »»
Quick Nick & Quote in QR
Version: 1.1.0, by akanevsky akanevsky is offline
Developer Last Online: Feb 2016 Show Printable Version Email this Page

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.

IF YOU LIKE MY HACK, PLEASE CLICK INSTALL

Download Now

File Type: zip Quick.Nick.n.Quote.in.QR_1.1.0_by.akan.zip (8.1 KB, 147 views)

Screenshots

File Type: jpg screenshot.jpg (123.7 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 06-24-2009, 02:38 PM
nohuhu nohuhu is offline
 
Join Date: Dec 2008
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Psionic Vision,

ok, now i got it. sorry for me being stupid.
Reply With Quote
  #13  
Old 06-24-2009, 06:13 PM
nohuhu nohuhu is offline
 
Join Date: Dec 2008
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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...
Reply With Quote
  #14  
Old 06-24-2009, 07:21 PM
akanevsky akanevsky is offline
 
Join Date: Apr 2005
Posts: 3,972
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
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.
Reply With Quote
  #15  
Old 06-25-2009, 08:28 AM
nohuhu nohuhu is offline
 
Join Date: Dec 2008
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Psionic Vision View Post
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.
Reply With Quote
  #16  
Old 06-25-2009, 08:44 AM
nohuhu nohuhu is offline
 
Join Date: Dec 2008
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Psionic Vision,

never mind that, i already figured it out myself.
Reply With Quote
  #17  
Old 06-25-2009, 09:43 AM
nohuhu nohuhu is offline
 
Join Date: Dec 2008
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #18  
Old 06-25-2009, 03:47 PM
akanevsky akanevsky is offline
 
Join Date: Apr 2005
Posts: 3,972
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by nohuhu View Post
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 View Post
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.
Thank you for the suggestion.
Reply With Quote
  #19  
Old 06-25-2009, 06:21 PM
nohuhu nohuhu is offline
 
Join Date: Dec 2008
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Psionic Vision View Post
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.
Reply With Quote
  #20  
Old 10-10-2009, 07:04 AM
lordnara lordnara is offline
 
Join Date: Sep 2007
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i'm using tech forum templates, the button don't show
and yes.. i upload the quickquote.gif

thanks.... great mod
Reply With Quote
  #21  
Old 11-25-2009, 12:51 PM
psychonikeo psychonikeo is offline
 
Join Date: Nov 2009
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nevermind..
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:31 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08189 seconds
  • Memory Usage 2,337KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (8)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (2)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete