Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Programming Discussions
  #1  
Old 02-24-2015, 02:27 PM
Medi0cr3 Medi0cr3 is offline
 
Join Date: Aug 2014
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default console.log <- Vbulletin using this and it rustles me.

When you load a page in vbulletin, it shows the console.log entries for expanding hiding/showing the forums displayed.

Is there anyway to stop making it show these console.log();

??????
Reply With Quote
  #2  
Old 02-24-2015, 05:54 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have no idea what you are talking about. Can see get a link to view the problem? Or an image?
Reply With Quote
Благодарность от:
RichieBoy67
  #3  
Old 02-25-2015, 03:12 PM
Medi0cr3 Medi0cr3 is offline
 
Join Date: Aug 2014
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<a href="http://puu.sh/gceSG/ff7874031a.png" target="_blank">http://puu.sh/gceSG/ff7874031a.png</a>

Press F12 and look for the Console.

You will see the log entries.

I do a fair bit of Jquery coding as well on some custom pages and it is very annoying to scroll through these entries. They appear to be the minimized individual forums from forum.php page
Reply With Quote
  #4  
Old 02-25-2015, 03:51 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wait a sec... so you want to not see the console.log entries on the page? Then turn off the console, no? What exactly does the browser console have to do with vbulletin (besides that you are viewing the 'talking' to the page? I really don't understand what you are asking for here.
Reply With Quote
  #5  
Old 02-25-2015, 04:16 PM
Dave Dave is offline
 
Join Date: May 2010
Posts: 2,583
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

He wants vBulletin to stop using the console.log function in the JavaScript files of vBulletin.
You'll have to edit the clientscript/vbulletin-core.js file and remove all the console.log calls.
Reply With Quote
2 благодарности(ей) от:
Lynne, Max Taxable
  #6  
Old 02-25-2015, 04:40 PM
Medi0cr3 Medi0cr3 is offline
 
Join Date: Aug 2014
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dave View Post
He wants vBulletin to stop using the console.log function in the JavaScript files of vBulletin.
You'll have to edit the clientscript/vbulletin-core.js file and remove all the console.log calls.
I saw that before I even posted, however, that is a @#($&* ton of code haha. I was just hoping there was a simple fix :erm:
Reply With Quote
  #7  
Old 02-25-2015, 05:54 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dave View Post
He wants vBulletin to stop using the console.log function in the JavaScript files of vBulletin.
You'll have to edit the clientscript/vbulletin-core.js file and remove all the console.log calls.
Thanks. Sometimes even coffee doesn't help with my morning comprehension!
Reply With Quote
  #8  
Old 02-25-2015, 07:01 PM
Medi0cr3 Medi0cr3 is offline
 
Join Date: Aug 2014
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
Thanks. Sometimes even coffee doesn't help with my morning comprehension!
Lol the guys at my work don't even want to talk to me without my coffee present lol
Reply With Quote
  #9  
Old 02-26-2015, 07:21 PM
TheLastSuperman's Avatar
TheLastSuperman TheLastSuperman is offline
Senior Member
 
Join Date: Sep 2008
Location: North Carolina
Posts: 5,844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Medi0cr3 View Post
Lol the guys at my work don't even want to talk to me without my coffee present lol
Shoot my wife doesn't want to deal with me until I've had a cup, you have it good my friend very good .
Reply With Quote
  #10  
Old 02-26-2015, 08:41 PM
nerbert nerbert is offline
 
Join Date: May 2008
Posts: 784
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Only console.log()? Or console.warn() and console.info() too?

I can do it with regular expression search and replace.

EDIT

One thing I'm not sure what to do with though:
Code:
vBulletin_Framework.prototype.console=function(){
	if(window.console||console.firebug){
		var args=new Array();
		for(var i=0;i<arguments.length;i++){
			args[args.length]=arguments[i]
		}
		try{
			eval("console.log('"+args.join("','")+"');")
		}
		catch(e){
		}
	}
};
Reply With Quote
Благодарность от:
Max Taxable
Reply

Thread Tools
Display Modes

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 10:55 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.08845 seconds
  • Memory Usage 2,255KB
  • Queries Executed 11 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (4)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete