vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Board Optimization - vBMicroStats (https://vborg.vbsupport.ru/showthread.php?t=140449)

TECK 02-27-2007 02:00 AM

I made the debug mode really visible, in RED.
The big advantage is that you will not be forced anymore to edit the config.php file and insert a variable there, in order to activate the Debug Mode.
My option will do this for you in a snap.

Still, remember to disable it when you don't need it anymore...
I repeat myself: Make sure you enable this option, ONLY with your board off, orelse it can lead to security breaches (yes, is that powerful).

Xplorer4x4 02-27-2007 02:02 AM

haha well it wasnt an idea so much as misunderstanding. :$

Question: Will this(debug mode) show to members and admins?

TECK 02-27-2007 02:06 AM

The Debug Mode is for advanced troubleshooting your board, you must use it only with your Board turned OFF.
If you leave it ON, a good hacker could grab all the data you don't want him to know about it... unless the board is OFF.
Even then, I don't like it to have it turned ON on a live setup. On my test board, is always ON.

You can start a new thread, asking what exacly does the Debug Mode in vBulletin. :)

TECK 02-27-2007 02:10 AM

Guys and girls, please let me know what you think about the new version. Thanks.

Lizard King 02-27-2007 03:00 AM

You saved us tons of time to enable debug each other time :) Thanks again Floren

Nominated HOTM :)

DementedMindz 02-27-2007 03:01 AM

yeah same here Nominated HOTM

ncweb 02-27-2007 03:47 AM

Quote:

Originally Posted by abramelin (Post 1191052)
i dont want regular users to see anything, what must i do?


I wanted the same for my live site, its simple to just use conditional statements...
Granted I have no idea if it’s bad to nest these <if> statements? It worked for me… :cool:

Code:

<if condition="is_member_of($bbuserinfo,5,6,7)">
<if condition="$show['microstats']">{microstats}</if>
</if>


I very much like the addition to turn debug on/off via cp, less time when testing... thanks again TECK

-I love it :up:

projectego 02-27-2007 11:21 AM

Thanks for the update!

TECK 02-27-2007 12:24 PM

Quote:

Originally Posted by ncweb (Post 1191651)
I wanted the same for my live site, its simple to just use conditional statements...
Granted I have no idea if it’s bad to nest these <if> statements? It worked for me… :cool:

Code:

<if condition="is_member_of($bbuserinfo,5,6,7)">
<if condition="$show['microstats']">{microstats}</if>
</if>


I very much like the addition to turn debug on/off via cp, less time when testing... thanks again TECK

-I love it :up:

Thanks a lot guys, I mean it. :)
ncweb, is best to filter it in the actual code, not only template. Why? Because the script will still process all the microstats code for nothing, if you are not an admin. Waisting memory and processing time for no reason.
Take a look at the admin attachment I made earlier to see the differences.

Also, you could use a simpler condition:
Code:

<if condition="$show['microstats'] AND is_member_of($bbuserinfo, 5, 6, 7)"><!-- {microstats} --></if>
Notice that the {microstats} changed, following Ollie's idea.

Go ahead and release it for everyone, have fun. :)

Adam21 02-27-2007 02:21 PM

I nominate this thread for HOTM.Saves us tons of times,thank you for your hard work.:up:


All times are GMT. The time now is 12:01 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.01551 seconds
  • Memory Usage 1,740KB
  • 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
  • (3)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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