vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=242)
-   -   [How-To] Disable double click on Reply buttons (https://vborg.vbsupport.ru/showthread.php?t=235535)

boatswife 02-23-2010 02:15 AM

Quote:

Originally Posted by cbiweb (Post 1981316)
The code is there, but if you downloaded the compressed version of the file it looks slightly different. You need to search for these two strings:
Code:

YAHOO.util.Event.on(C[b],"click",qr_newreply_activate,this)
and
Code:

YAHOO.util.Event.on(A,"click",qr_replytothread_activate,this)
Comment them per my first post. Depending what result you want will determine which one(s) you comment out.

I only found out about the compressed version after I wrote the article, or I would've included it then. :)


I had the compressed version and found this code. I put the // in front of both strings and it didn't do anything. I then put a space before the // in each string and it now works.

I don't have a clue if that's the technical thing to do, but it's working for me.

cbiweb 02-23-2010 01:14 PM

Quote:

Originally Posted by BizAdventure (Post 1987933)
I am curious if you got this working on 4.0.2 - I cannot find that information in that file - I find similarities, but not what is above.

I can paste the code, but it's awfully long.

I just checked the compressed and non-compressed versions of vbulletin_quick_reply.js for 4.0.2, and the same code is still there. Are you sure you checked the correct file? I ask because I spent a few minutes looking for the code in the wrong file myself, lol. But yes, nothing's changed in 4.0.2.

Quote:

Originally Posted by boatswife (Post 1989340)
I had the compressed version and found this code. I put the // in front of both strings and it didn't do anything. I then put a space before the // in each string and it now works.

I don't have a clue if that's the technical thing to do, but it's working for me.

It does makes sense, now that you bring it up. Never thought to mention that. Glad you figured it out. :)


Quote:

Originally Posted by Switch3130 (Post 1982839)
After I made those changes I get errors on the thread page:

missing } in compound statement
[Break on this error] _tbody","hidden");vB_Editor[QR_EditorI...;return false}}var vB_QuickReply=true;

Did you ever get this sorted?

as7apcool 02-24-2010 09:43 PM

Thanks 4 good work

DocEldridge 02-25-2010 02:51 AM

Is there a way to change both the reply and reply with quote both to a single click?

Cloughie 02-26-2010 08:35 AM

This worked for me, good job.

Why VB introduced the double click thing is beyond me - its totally non web standard and so confusing for people.

Peter Caparelli 03-04-2010 06:18 PM

Cloughie, I couldn't agree with you more! Thank You cbiweb!!

cbiweb 03-05-2010 11:47 PM

You're all very welcome. :) Glad to help.

archet1337 03-06-2010 08:31 AM

I don't even have "YAHOO" in vbulletin_quick_reply.js .. where can I get a file that let me apply this mod?

cbiweb 03-06-2010 10:39 AM

If you're running 4.0.1 or 4.0.2, it is most definitely there. I can't be sure about any of the betas, the RC's or 4.0.0, since I only figured it out in 4.0.1.

archet1337 03-06-2010 10:53 AM

vbulletin_quick_reply.js says "vBulletin 4.0.2 Patch Level 1"

Am i allowed to post the file here so you can take a look?


All times are GMT. The time now is 05:24 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
  • Page Generation 0.01148 seconds
  • Memory Usage 1,736KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete