![]() |
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? :) |
I think you made a mistake here
Attachment 61169 vB instead of BB =P Quote:
Thank you again :) |
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... |
Take a look how it used to be vBMicroStats for vBulletin 2.x on forum home:
(17 queries performed, as default) |
Quote:
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... |
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. :(
|
Quote:
|
That is pretty easy Kev. :)
Open the XML file and find: Code:
<dependency dependencytype="vbulletin" minversion="3.6.4" maxversion="3.6.5" /> Code:
<dependency dependencytype="vbulletin" minversion="3.6.0" maxversion="3.6.5" /> Try it on a test board and let me know. Thanks. 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? I need your advice on this issue, since is your hack also. :) |
Quote:
|
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']; |
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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|