vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   console.log <- Vbulletin using this and it rustles me. (https://vborg.vbsupport.ru/showthread.php?t=317500)

Medi0cr3 02-24-2015 02:27 PM

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();

??????

Lynne 02-24-2015 05:54 PM

I have no idea what you are talking about. Can see get a link to view the problem? Or an image?

Medi0cr3 02-25-2015 03:12 PM

<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

Lynne 02-25-2015 03:51 PM

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.

Dave 02-25-2015 04:16 PM

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.

Medi0cr3 02-25-2015 04:40 PM

Quote:

Originally Posted by Dave (Post 2538751)
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:

Lynne 02-25-2015 05:54 PM

Quote:

Originally Posted by Dave (Post 2538751)
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!

Medi0cr3 02-25-2015 07:01 PM

Quote:

Originally Posted by Lynne (Post 2538782)
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

TheLastSuperman 02-26-2015 07:21 PM

Quote:

Originally Posted by Medi0cr3 (Post 2538791)
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 ;) :p.

nerbert 02-26-2015 08:41 PM

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){
                }
        }
};



All times are GMT. The time now is 08:08 AM.

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.01834 seconds
  • Memory Usage 1,731KB
  • 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
  • (1)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete