vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin Tips & Tricks (https://vborg.vbsupport.ru/forumdisplay.php?f=239)
-   -   Advice for new people wanting to modify vBulletin (https://vborg.vbsupport.ru/showthread.php?t=221568)

James Birkett 08-22-2009 10:00 PM

Advice for new people wanting to modify vBulletin
 
In vBulletin they have a debug mode - and it is extremely useful, especially for people wanting to modify vBulletin.
Their debug mode allows you to see what parts of the forum are calling which hooks, as shown below:

https://vborg.vbsupport.ru/external/2009/08/35.jpg

As you can see, it shows what hooks are being called (that is the showthread.php page) - so you have an idea of which hook to use. It also holds information about page loads, global phrases etc.

How to turn debug mode on?
Put this in your config.php:
PHP Code:

$config['Misc']['debug'] = true

You could always have debug mode on for yourself by doing:
PHP Code:

if($_SERVER['REMOTE_ADDR'] == 'Your IP')    {
$config['Misc']['debug'] = true;


Hope this helps - it's very basic.

Additional info:
You must be in debug mode in order to edit/create new settings/settings groups, as well as adding templates to custom products.
Some other features is the rebuild bitfields, option to edit the admin help manager (blue ?) and some more.

RLShare 08-26-2009 03:05 AM

You should also add that you need to be in debug mode in order to create new settings/setting groups, add new templates to custom products and etc...

bluej 08-28-2009 03:45 AM

maybe some dumb questions, but does it matter where on the config.php you put this code?

also, once you have it added how do you use it? i mean what do you do to see this list?

this is new to me, so sorry if it is a silly question...:)

Brandon_R 08-28-2009 05:03 PM

You can add it anywhere as long as its inside the PHP tags <?php ?>. After you add it look at the bottom of your forum pages it will show the information.

MaXeL3G3ND 10-17-2009 11:11 AM

Wow nice info, I didn't even know that you needed to be in debug mode for
some of those developer features! :-D (I thought it was JUST for debugging xD)

I should seriously consider reading the documentation now :)

lm3a.net 12-11-2009 10:00 AM

Thank you for the information

Dorgham 02-25-2013 06:11 PM

Thank you :)

matrex722 04-04-2013 03:11 PM

does it work with 3.8.x forums ?

Lynne 04-04-2013 03:18 PM

Quote:

Originally Posted by matrex722 (Post 2414231)
does it work with 3.8.x forums ?

Yes, debug mode is available in 3.8.x also.

matrex722 04-04-2013 03:20 PM

ok i will edite it now
thank you so much


All times are GMT. The time now is 09:29 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.01579 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
  • (2)bbcode_php_printable
  • (1)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