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-28-2007 05:40 PM

Ok guys and girls. I need you to "invent" a new option for MicroStats. :)
I need that because I plan to add phrases into main MicroStats template, so you can translate it easier.
I don't want to release a new version just for this, we need to excite the users with something new also, right? :)

Skavenger 02-28-2007 05:54 PM

I think you made a mistake here

Attachment 61169

vB instead of BB =P

Quote:

Originally Posted by TECK (Post 1192775)
The value 0KB is displayed when PHP is not compiled with the option "--enable-memory-limit". It's just an indicator for you to know that the memory limit is disabled in PHP.
...

Now I understand

Thank you again :)

TECK 02-28-2007 07:48 PM

No mistake, it's intended like this. You are not the first one who shows me this "typo". :)
It's a tradition that I kept from early versions, when I made this hack for vBulletin 2.x (year 2002 I think).
It also reminds me when I used to sleep only 4-5hrs/night while sharing most of my free time with the hackers to come up with all kind of useful edits in the raw vB code...
There were no plugins, way back. To tell you the truth, I like a lot better to edit directly the files. Many people learned PHP because of this. They were forced to watch the code closely...

TECK 02-28-2007 07:51 PM

Take a look how it used to be vBMicroStats for vBulletin 2.x on forum home:
(17 queries performed, as default)

ncweb 03-01-2007 01:00 AM

Quote:

Originally Posted by TECK (Post 1192785)
Ok guys and girls. I need you to "invent" a new option for MicroStats. :)
I need that because I plan to add phrases into main MicroStats template, so you can translate it easier.
I don't want to release a new version just for this, we need to excite the users with something new also, right? :)


Hey TECK, maybe if others would like to see this they will chime in :)
Not sure what good it would be in a shared environment but for dedicated it's nice to have.

I dont know much about how to do it but somthing like this maybe..
Code:

$memstats = shell_exec("grep Mem /proc/meminfo"); print '' . str_replace("\n", ' ', $memstats);

to display (i.e. MemTotal: 8299056 kB MemFree: 126812 kB ).

I for one would like to see an option to display all of the microstats to only admins via admincp.

Also, is it a good idea to compile PHP with the option "--enable-memory-limit". What would be the benefits of being able to set this in php conf or .htaccess. Thanks...

Xplorer4x4 03-01-2007 03:29 AM

I have debug mode on(just for a minute). But when i click explain so i can get more ifno on queries, it just loads showthread.php all over again rather then the query explanation page. :(

KevNJ 03-01-2007 05:36 AM

Quote:

Originally Posted by TECK (Post 1192785)
Ok guys and girls. I need you to "invent" a new option for MicroStats. :)
I need that because I plan to add phrases into main MicroStats template, so you can translate it easier.
I don't want to release a new version just for this, we need to excite the users with something new also, right? :)

Invent it to work with all 3.6.x versions? I tried to install it on 3.6.1 and it wouldnt let me. :(

TECK 03-01-2007 05:54 AM

That is pretty easy Kev. :)
Open the XML file and find:
Code:

<dependency dependencytype="vbulletin" minversion="3.6.4" maxversion="3.6.5" />
Change it to:
Code:

<dependency dependencytype="vbulletin" minversion="3.6.0" maxversion="3.6.5" />
If it breaks your site, please don't hit me. :)
Try it on a test board and let me know. Thanks.

Quote:

Originally Posted by Xplorer4x4 (Post 1193089)
I have debug mode on(just for a minute). But when i click explain so i can get more ifno on queries, it just loads showthread.php all over again rather then the query explanation page. :(

You are right, grrr. It looks like the only way to enable truly Debug mode is trough config.php file. Early, when the script loads the config variables, it won't detect fancy vBulletin options, just the basic ones contained into config.php file.

So what do you recommend me to do guys? We toss that option or simply simply display a text warning that the Debug mode is enabled/disabled?
I need your advice on this issue, since is your hack also. :)

Lizard King 03-01-2007 06:14 AM

Quote:

So what do you recommend me to do guys? We toss that option or simply simply display a text warning that the Debug mode is enabled/disabled?
If there is no work around then the best option is to disable the debug mode. But even if we may have an option with another file edit that may help us to get this working then that may be an option.

TECK 03-01-2007 07:13 AM

Is not possible, unfortunatelly. As I said before, at that early stage, you cannot combine something like:
Code:

$this->debug = $this->registry->options['vb36_mstats_debug'];
It won't recognize the vb options...


All times are GMT. The time now is 05:05 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.01340 seconds
  • Memory Usage 1,746KB
  • 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
  • (4)bbcode_code_printable
  • (5)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