PDA

View Full Version : Board Optimization - vBMicroStats


Pages : [1] 2

TECK
02-24-2007, 10:00 PM
This hack will add at the bottom of each vBulletin (powered) page, the statistics listed below.
Also, it will help you troubleshoot and optimize your vBulletin board by viewing or comparing PHP/MySQL options and other statistics that are normally hidden in your forum pages.

Regular Users:
? Load time of specified page in microseconds
? Number of queries executed
? PHP percent page usage
? MySQL percent page usage

Administrators Only:
? Active users browsing the forum (members and guests) new in 1.1.0
? Server memory usage per page (in Kb)
? Display DEBUG mode status
? Browser GZIP library compression status
? Server average loads (http://www.vbulletin.com/forum/showthread.php?action=showpost&postid=291831)
? Uncached templates (useful to troubleshoot the code)

The code modifications were tested into a clean installed vBulletin board. They work 100%.
The hack was tested in vBulletin 3.6.4 and 3.6.5.
If you want to test it into a lower version (3.6.x), let me know.
Also, if you encounter any problems, feel free to post your questions here.

Step by step install instructions are posted into readme.html file.
In order to perform an efficient modification of your files, I recommend you to use Komodo Edit or Textpad.
Both editors will allow you to complete all steps without any coding errors.

The code changes are very safe and designed not to interfere in any way with the vBulletin performance/functionality.
Make sure you modify, save and upload one file at the time to your server.
Then, simply run the product-vbmicrostats.xml file.

The PLUGIN itself is DISABLED by default.
This was done in order to make sure you properly edit your code first and to avoid surprises.
You will need to enable it, once your code modifications are completed:
Plugins and Products > Manage Products > vB Microstats > Enable (dropdown)
Then, go to your vBulletin Options, click on BB MicroStats setting group and set all your options.

Upgrade to version 1.0.2 (https://vborg.vbsupport.ru/showpost.php?p=1190735&postcount=18).
Upgrade to version 1.0.3 (https://vborg.vbsupport.ru/showpost.php?p=1191606&postcount=50).
Upgrade to version 1.1.0 (https://vborg.vbsupport.ru/showpost.php?p=1195096&postcount=87).

Want to be a guinea pig and try this hack (https://vborg.vbsupport.ru/showpost.php?p=1249437&postcount=176) into a higher vBulletin version? :)
Post your results, so others can read your feedback.

Brandon Sheley
02-25-2007, 07:59 PM
thanks for porting it to 3.6.4 :)

TECK
02-25-2007, 08:02 PM
It was about time... 285 years later, heh.
I really did not have time, sorry guys.

FleaBag
02-25-2007, 08:11 PM
Welcome back TECK. :)

TECK
02-25-2007, 08:13 PM
Thanks.
Matt, do I know you (changed nick)? Since you are old school... :D

projectego
02-25-2007, 08:23 PM
Awesome! Thanks very much! ;)

bluechris
02-25-2007, 08:30 PM
Great work, installed and working fine.

Thx man

TECK
02-25-2007, 08:32 PM
Little boring code change, heh. Actually, the code was not elegant.
Since we are already dealing with boolean values, no need to use the deprecated iif function.
Forgot to replace that from 3.5.x files.

Upload the /plugin files again, no other changes are needed.

TECK
02-25-2007, 08:44 PM
Great work, installed and working fine.

Thx man
Thanks. :)
From your site:
Page generated in 0,84680104 seconds (73,80% PHP - 26,20% MySQL) with 67 queries

:eek: :eek: :eek:

StrifeX
02-25-2007, 08:49 PM
67 Queries? Wow lol... I only have roughly 24 on Forumhome and I've got as much hacks and queries running as I need.

Good job TECK, I've been waiting for you to port this to 3.6.x :D ;)

ncweb
02-25-2007, 08:51 PM
I installed version 1.0.5 for 3.5.4 and made it work with 3.6.4 by using the code below.

Maybe a dumb question, but is there any reason I should use this version instead? It seems like there are more code changes and 2 new files.

Also, before I could get this post out the version changed from 1.0 to 1.0.1; what changes were made to the /plugins files? Great mod TECK, Thank you...

Till TECK gets to this, all you have to do to get this working in 3.6.4 is change what you edit in class_core.php. Instead of the instructions given, replace execute_query in class_core.php with:


function &execute_query($buffered = true, &$link)
{
$this->connection_recent =& $link;
$this->querycount++;

// start microstats timer
$this->mstimer_start();
$queryresult = $this->functions[$buffered ? 'query' : 'query_unbuffered']($this->sql, $link);
$this->mstimer_stop();

if ($queryresult)
{
// unset $sql to lower memory .. this isn't an error, so it's not needed
$this->sql = '';

return $queryresult;
}
else
{
$this->halt();

// unset $sql to lower memory .. error will have already been thrown
$this->sql = '';
}
}

/**
* vBMicroStats: Query execution time
*
* @return string
*/
var $mstime_total = 0;
var $mstime_before = array();
function mstimer_start()
{
$this->mstime_before[] = microtime();
}
function mstimer_stop($qtime_total = true)
{
$mstime_after = microtime();
$mspage_start = explode(' ', TIMESTART);
$mspage_start = $mspage_start[0] + $mspage_start[1];
$mstime_before = explode(' ', array_pop($this->mstime_before));
$mstime_before = $mstime_before[0] + $mstime_before[1] - $mspage_start;
$mstime_after = explode(' ', $mstime_after);
$mstime_after = $mstime_after[0] + $mstime_after[1] - $mspage_start;
$mstime_taken = $mstime_after - $mstime_before;
if ($qtime_total)
{
$this->mstime_total += $mstime_taken;
}
}

TECK
02-25-2007, 09:55 PM
One, the code edit in the above function is not accurate, the execution time will not be reflected properly.
Two, there are 2 execute_query() functions in VB, totally different. You DO NOT paste the same code in both places.

Hmm, I think I found a bug. Guys do this, logout and tell me if you still see the admin microstats.
You should only see the regular microstats, the second line should be hidden.

thincom2000
02-25-2007, 09:57 PM
Never thought I would say this, but now I wish I could turn on enable-memory-limit.

TECK
02-25-2007, 10:00 PM
Guys, make me a favor, logout and tell me if you still see the admin microstats.
Thanks.

thincom2000
02-25-2007, 10:55 PM
Guys, make me a favor, logout and tell me if you still see the admin microstats.
Thanks.

In plugins/hook_global_complete.php, find:
$show['adminoptions'] = $vbulletin->options['vb36_mstats_adminactive'] AND $vbulletin->userinfo['permissions']['adminpermissions'] & $vbulletin->bf_ugp_adminpermissions['cancontrolpanel'];
Replace with:
$show['adminoptions'] = ($vbulletin->options['vb36_mstats_adminactive'] AND $vbulletin->userinfo['permissions']['adminpermissions'] & $vbulletin->bf_ugp_adminpermissions['cancontrolpanel']) ? true : false;

TECK
02-25-2007, 11:08 PM
Thanks. So, does it show the admin stats when logged out?
The code should be:
$show['adminoptions'] = (bool)($vbulletin->options['vb36_mstats_adminactive'] AND $vbulletin->userinfo['permissions']['adminpermissions'] & $vbulletin->bf_ugp_adminpermissions['cancontrolpanel']);
Still, those are both boolean values, is like saying twice true or false.

For some servers, the data needs to be loaded directly into memory.
Can you guys post and tell me if with the actual unchanged code from version 1.0.1 you see the admin stats while logged out.

The fix is easy, but I need to make sure.

ncweb
02-26-2007, 12:06 AM
In 1.0.1 yes, I do see the admin stats as guest, registered and admin user.

/installed ;)

TECK
02-26-2007, 12:31 AM
Perfect, thanks. :)
Fixing this bug is very easy. I also decided to load into memory all data, it should improve performance.

To upgrade to version 1.0.2, all you have to do is:
1. Uninstall the vBMicrostats product but leave class_core.php and init.php code modifications in place.
They are good.

2. Delete folder /plugins.

3. Download the new 1.0.2 .zip file.

4. Run the product-vbmicrostats.xml installer.

5. Enable all BB MicroStats options, like before.

You are done. :)

DementedMindz
02-26-2007, 12:39 AM
teck will this code mod still work from this post? https://vborg.vbsupport.ru/showpost.php?p=980611&postcount=34

TECK
02-26-2007, 12:40 AM
Yes. :)
Use the new conditionals, compare the code.

DementedMindz
02-26-2007, 12:42 AM
ok thank you working on it now

Kaleem
02-26-2007, 12:44 AM
Installed Thank You :)

TECK
02-26-2007, 12:51 AM
Let me know how is the new version.

TECK
02-26-2007, 01:09 AM
Reeve of shinra is checking my thread, as I type.
Good to see you, old school friend. :)

DementedMindz
02-26-2007, 01:09 AM
seems like its working alot better then the last one. my stats use to stay the same alot on the 3.5.4 one but this one is reading the stats pretty well Page generated in 0.32 seconds (70.22% PHP - 29.78% MySQL) with 21 queries and the php and mysql change with each refresh where as the last one was reading it wrong it seemed.

TECK
02-26-2007, 01:12 AM
Thanks for the feedback. That's the reason why I told to ncweb not to use the old code.
The new one is pretty elegant. :)

You can see if it's working well this way: 70.22% PHP + 29.78% MySQL = 100% code ops.

DementedMindz
02-26-2007, 01:22 AM
yeah the last version on 3.5.4 wouldn't do that this is much nicer and works 100% every time only thing I have left to do now is enable-memory-limit in php. thanks again.

ncweb
02-26-2007, 01:26 AM
I find two instances of this in File: init.php (folder /includes)

if (!empty($db->explain))
{
$db->timer_stop(false);
}


One is at line: 213 and the other near the end at line: 432. I should be replacing the one at the end right?

Either way I am getting some very wierd numbers (-28 php - 128% mysql); please see screenshot. It always says more mysql than php, shouldn't that be the other way around? Thanks...

DementedMindz
02-26-2007, 01:43 AM
I find two instances of this in File: init.php (folder /includes)

if (!empty($db->explain))
{
$db->timer_stop(false);
}


One is at line: 213 and the other near the end at line: 432. I should be replacing the one at the end right?

Either way I am getting some very wierd numbers (-28 php - 128% mysql); please see screenshot. It always says more mysql than php, shouldn't that be the other way around? Thanks...


how can you find that one when it says to search for this..

if ($vbulletin->session->vars['styleid'] != 0)
{
$vbulletin->userinfo['styleid'] = $vbulletin->session->vars['styleid'];
}

if (!empty($db->explain))
{
$db->timer_stop(false);
}

ncweb
02-26-2007, 01:46 AM
Either way I am getting some very wierd numbers (-28 php - 128% mysql); please see screenshot. It always says more mysql than php, shouldn't that be the other way around? Thanks...

Any Ideas on this; it happens on both my winXP and CentOS 4.4 dev box. Has anyone else seen results like this? I'd provide some details of my LAMP setup but don't know what would be helpful. I was getting normal results before and this has me scratching my head :eek:

Smoothie
02-26-2007, 01:47 AM
Mr. F, welcome back.

TECK
02-26-2007, 01:50 AM
Mr. F, welcome back.
Thanks. :)
Any Ideas on this; it happens on both my winXP and CentOS 4.4 dev box. Has anyone else seen results like this? I'd provide some details of my LAMP setup but don't know what would be helpful. I was getting normal results before and this has me scratching my head :eek:

Yes, you need to replace ONLY the very last one.
Will update the readme file.

About the negative values, is all related to server time clock, microtime(). It's a confirmed bug.
Freddie (vB dev) managed to reproduce the bug but did not released a fix.
Since I use the vB core functions, this error is reflected into your time, if you are not lucky.

Read more here:
http://www.vbulletin.com/forum/bugs35.php?do=view&bugid=2481

TECK
02-26-2007, 01:57 AM
Thinking out loud, what PHP version you have? I have 5.2.1, working perfectly here:
http://67.68.90.79/forum/

Reeve of shinra
02-26-2007, 02:08 AM
Reeve of shinra is checking my thread, as I type.
Good to see you, old school friend. :)

Sup man! Its been ages since we last chatted so im gonna hijack your thread! how you been? :)


The stats are awesome, this has always been one of my favorite mods.

Things are working like a charm but I forgot that I had an older version (1.0.5) installed. I didn't choose to over write and I have two options in the admincp for the mod. No biggie, I disabled it for now and will probably uninstall later when I do a backup. Just thought I'd point that out if anyone else runs across it.

ncweb
02-26-2007, 02:11 AM
About the negative values, is all related to server time clock, microtime(). It's a confirmed bug.
Freddie (vB dev) managed to reproduce the bug but did not released a fix.
Since I use the vB core functions, this error is reflected into your time, if you are not lucky.

Read more here:
http://www.vbulletin.com/forum/bugs35.php?do=view&bugid=2481


Looks like the bug referenced at http://www.vbulletin.com/forum/bugs35.php?do=view&bugid=2481
never got fixed in 3.6.x.

Thinking out loud, what PHP version you have? I have 5.2.1, working perfectly here:
http://67.68.90.79/forum/


I'm running PHP 4.4.4; I saw on http://67.68.90.79/forum/ that the mysql % was higher than that of php. If that basically a default install then I guess that?s normal. Thanks for your time and the replies TECK

TECK
02-26-2007, 02:12 AM
I'm running PHP 4.4.4; I saw on http://67.68.90.79/forum/ that the mysql % was higher than that of php. If that basically a default install then I guess that’s normal. Thanks for your time and the replies TECK
Ya, is normal. The easiest way to see if you have the stats right is to enable the debug mode, the do an explain. Look at the time spent to do PHP and MySQl things, they are pretty balanced.
Those times reflect the percentage. You will also see there negative results, so that should answer your questions related to the vB bug.

Let's take an example shall we?
http://67.68.90.79/forum/showthread.php?t=1
Page generated in 0.13296827 seconds (61.87% PHP - 38.13% MySQL) with 9 queries
And the Explain:
Page generated in 0.13317393951416 seconds with 9 queries, spending 0.011376857757568 doing MySQL queries and 0.12249708175659 doing PHP things.

Glad I could help. :)
Sup man! Its been ages since we last chatted so im gonna hijack your thread! how you been? :)
Good to see you to Reeve. Trying to make people happy, since many wanted the microstats for 3.6.4.
I remember when people used to queue on your board for your hacks... good times. :)
If you feel like talking on MSN, drop me a PM, I'll send you the ID.

COBRAws
02-26-2007, 02:29 AM
Thanks for updating this m8

Lizard King
02-26-2007, 02:56 AM
Thanks for updating this after my request Floren :)

It is also nice to see you back alive at vb.org

Atakan KOC
02-26-2007, 08:20 AM
Nice. Thanks. :)

Xplorer4x4
02-26-2007, 08:22 AM
0KB Used | DEBUG Mode OFF | GZIP ON (level 1) | 0.54 : 0.59 : 0.55 | NO Uncached Template
I have turned debug on in ACP options but it does not show on the forum.

maxicep
02-26-2007, 09:03 AM
thanks nice hack,
i got a question how we uncached templates to cached ?

blockbusted
02-26-2007, 10:19 AM
Thanks for update.

Pyrix
02-26-2007, 11:11 AM
Can I suggest a small change?

Change '{microstats}' to '<!--{microstats}-->' in the template and in the str_replace in the plugin.

This way, on pages where the vb footer is used but it's not designed 'for' vbulletin (for example photopost, mediawiki) it doesn't leave the text {microstats} breaking your table, as it sees it as a comment.

It's what I've done on my site and it works a lot better.

Ollie

abramelin
02-26-2007, 12:17 PM
i dont want regular users to see anything, what must i do?

Snake
02-26-2007, 04:05 PM
Oh my god! I have been dying to see this hack to be ported over to 3.6.x. Hehe thank you very much, TECK, and welcome back of all sudden! :D

TECK
02-26-2007, 05:06 PM
Can I suggest a small change?

Change '{microstats}' to '<!--{microstats}-->' in the template and in the str_replace in the plugin.

This way, on pages where the vb footer is used but it's not designed 'for' vbulletin (for example photopost, mediawiki) it doesn't leave the text {microstats} breaking your table, as it sees it as a comment.

Ollie
Excellent suggestion, Ollie. I updated the code. :)
The file in the first post will still show as 1.0.2 version, since it's just a cosmetic change, it does not replace any of the hack's functionalities.
i dont want regular users to see anything, what must i do?
Hi abramelin,
I'm an old school guy, so I'm not really used to those questions. :)
The idea with a hack is to open the code and see how is done. I'm sure that if you open the .xml file you will see how to do it rightaway.

Still, is my pleasure to help you. Simply uninstall the product and run the new product-vbmicrostats_admin.xml file instead.
Since I implemented Ollie's request, you will have to edit ONLY the footer template like in the new readme.html file (see first post for the new file, it still shows as 1.0.2).
Leave the PHP files the way they are edited now, they are not needed to be re-modified in order to work with your hack request.

In exchange for my help, promise me this:
You will open the 2 .xml files and look at the code to compare it. :)

If you still don't understand it, let me know, I will explain you where are the changes.
The idea is to learn what is hapenning inside your code, not just to install a file.
Thanks. :)

TECK
02-26-2007, 07:45 PM
0KB Used | DEBUG Mode OFF | GZIP ON (level 1) | 0.54 : 0.59 : 0.55 | NO Uncached Template

I have turned debug on in ACP options but it does not show on the forum.
How did you turned ON the debug mode?
thanks nice hack,
i got a question how we uncached templates to cached ?
Show me what you got wrong. :)

Xplorer4x4
02-26-2007, 11:40 PM
How did you turned ON the debug mode?

vbulletin options->BB MicroStats->
"Debug Mode"
"Display the Debug Mode status."
Set it to yes.

TECK
02-27-2007, 12:47 AM
This is an option to display only the status of Debug Mode, not actually enable it.
I might look into it to automatically enable Debug mode, although, I think is not possible.

I will let you know in few minutes. :)

TECK
02-27-2007, 01:49 AM
Guys and girls, say all Thank You to Xplorer4x4 for this excellent idea.

Version 1.0.3 brings a very powerful option. Now, vBMicroStats can actually turn On/Off the vBulletin Debug Mode.
Make sure you enable this option, ONLY with your board off, orelse it can lead to security breaches (yes, is that powerful).
If your board is turned off to public, you don't have to worry about anything, well sort of.
The best way is to make sure you don't leave this option enabled for a long time either ways.

How to upgrade to Version 1.0.3:
1. Uninstall your current vBMicroStats product. Leave the PHP files the way they are edited now, they are not needed to be re-modified in order to work with the new version.
2. Install the new product, included in the vbmicrostats_103.zip file.
3. Look in the readme file to see how to change the footer template.

You are done. Don't you like those hard upgrades? :)

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
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:


<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
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:


<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:
<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:

TECK
02-27-2007, 06:07 PM
If you guys and girls notice something useful that should be added to the hack, let me know.
Make sure you post feedback about it, I would like to know from all of you how the hack is running on your sites, especially on large forums.

Thanks.

Hornstar
02-27-2007, 09:05 PM
If you guys and girls notice something useful that should be added to the hack, let me know.
Make sure you post feedback about it, I would like to know from all of you how the hack is running on your sites, especially on large forums.

Thanks.

Is it possible to show everything only to the admins?

TECK
02-27-2007, 11:00 PM
Yes. Go here:
https://vborg.vbsupport.ru/showpost.php?p=1191260&postcount=46

Download the XML file and edit it to fit the new version. :)
(compare the 2 installers)

If you post it, I will look to make sure everything is ok, then give you 5 stars and link it to the first post. :)
As you noticed, I try to involve people, like in the old golden vBulletin.org times.
Before, people used to post a lot more in the hack threads...

bluechris
02-28-2007, 09:12 AM
Strangely when i uninstall 1.02 and i install 1.03 all my footers show

{microstats}

... If i uninstall 1.03 and reinstall 1.02 i see stats fine.

Xplorer4x4
02-28-2007, 12:57 PM
Strangely when i uninstall 1.02 and i install 1.03 all my footers show

{microstats}

... If i uninstall 1.03 and reinstall 1.02 i see stats fine.

Same for me. :(

TECK
02-28-2007, 02:03 PM
Strangely when i uninstall 1.02 and i install 1.03 all my footers show

{microstats}

... If i uninstall 1.03 and reinstall 1.02 i see stats fine.
I used Ollie's suggestion.
Check the template modification section, in the readme file.
See how to update your footer template, there. :)

Xplorer4x4
02-28-2007, 03:42 PM
Thanks.

On one of my styles, I want to include the info in a table such as whoisonline table. I have a table made, it collapses fine, but i cant seem to find a template or any code to strip the template background from the code and simply display the stats. How could I do this?

Thanks tech!

TECK
02-28-2007, 04:24 PM
Show me a screenshot so I understand better your example. Visual guy here. :)

Skavenger
02-28-2007, 04:51 PM
Hi, first at all, thank you for the mod :)

I have a few questions about the results I see in the footer:
- I have enabled Memory Usage, the results are: 0KB Used, I read in the 'help' that I have to compile PHP with enable-memory-limit option, but... what does 0KB Used mean? and how do I compile PHP with enable-memory-limit option?

- What does Unchached Templates means?

Thank you

TECK
02-28-2007, 05:29 PM
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.
Otherwise, you will see values like 4,236.85KB, instead of 0KB.
All you have to do is contact your host and ask them to enable the option.

In vBulletin, a datastore is used to store into memory useful variables, templates, etc.
That system avoids calling the database each time you process some global info, increasing the script performance.
If you create a modification or a separate file and forget the cache your new templates (using the array variables defined into default vBulletin files), then each uncached template will execute a query instead of being stored into server memory.

Let's take an example. You install a new hack.
The hacker who created the hack forgot to cache one template. The result?
One extra query performed for nothing in each vBulletin page. The forum display would have 14 queries instead of 13 if you missed to cache 1 template, 15 queries if you missed to cache 2 templates and so on...
The microstats will show you always if there are any "forgotten" templates on your page, in order to avoid performing not needed queries. It will display the number of un-cached templates as well their names. The un-cached templates will be highlighted in light-blue, like in the first screenshot.
Cool, huh? :)

I hope this helps clearing your questions.
If I missed or forgot something, please let me know. :)

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

61169

vB instead of BB =P

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
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..

$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
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:
<dependency dependencytype="vbulletin" minversion="3.6.4" maxversion="3.6.5" />
Change it to:
<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.

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
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:
$this->debug = $this->registry->options['vb36_mstats_debug'];
It won't recognize the vb options...

TECK
03-01-2007, 11:55 PM
Still waiting on the options you want implemented...

thincom2000
03-02-2007, 04:10 AM
If Jelsoft were to combine the functions contained in the files class_database_slave.php and class_database_explain.php, and put the $vbulletin->debug checks inside each function, although it would increase load times a millisecond or so, we could then set $vbulletin->debug in the AdminCP without damaging the EXPLAIN feature.

Unless TECK gets to it first, maybe I'll release it as a hack.

Xplorer4x4
03-02-2007, 05:42 AM
If Jelsoft were to combine the functions contained in the files class_database_slave.php and class_database_explain.php, and put the $vbulletin->debug checks inside each function, although it would increase load times a millisecond or so, we could then set $vbulletin->debug in the AdminCP without damaging the EXPLAIN feature.

Unless TECK gets to it first, maybe I'll release it as a hack.

So would it be able to combine the variables needed from the 2 files into a new php script to enable debug mode rather then a file edit?

@TECK I say keep it, and make not that it is a cut down version of debug mode.

thincom2000
03-02-2007, 01:07 PM
It is possible to do this without a file edit, yes. That would require replacing both files I mentioned with "combination" files of the same names (class_database_slave.php and class_database_explain.php). Otherwise, if you do not want to overwrite both files, it is possible to upload a new file, and make a file edit to include the new file instead.

TECK
03-02-2007, 02:35 PM
If Jelsoft were to combine the functions contained in the files class_database_slave.php and class_database_explain.php, and put the $vbulletin->debug checks inside each function, although it would increase load times a millisecond or so, we could then set $vbulletin->debug in the AdminCP without damaging the EXPLAIN feature.

Unless TECK gets to it first, maybe I'll release it as a hack.
Not sure it is a good idea, although your logic is very good.
If would be only a milisecond, Jelsoft would have it enabled in Admin CP long time ago... I'm always worried about performance on large boards.
Anyways, I have to look into it, since vBulletin 3.6.5 was released and this hack needs to be modified, in order to be installed properly.
I sure like to have DEBUG at my finger tips, without uploading config.php back and forward.

Phooey
03-02-2007, 03:55 PM
Nice to see this ported to 3.6.X! I'll be installing it when I get home from work. :up:

TECK
03-03-2007, 09:08 PM
Version 1.1.0 released.
New administrative feature: Active users browsing the forum (members and guests)
Also, now vBMicrostats uses vBulletin language phrases, so you can edit them the way you like.
This is useful if you run your forum in several languages.

Current vBMicrostats phrases:
debug_mode_on
gzip_off
gzip_on_level_x
page_generated_in_x_seconds_y_php_z_mysql_n_querie s
server_load_x_y_z
uncached_templates_x
x_kb_used
x_users_y_members_z_guests

How to upgrade to Version 1.1.0:
1. Uninstall your current vBMicroStats product. Leave the PHP files the way they are edited now, they are not needed to be re-modified in order to work with the new version.
2. Install the new product, included in the vbmicrostats_110.zip file.

ManagerJosh
03-04-2007, 10:03 AM
Very nice Release Teck. Minor problem though when it's a non-admin viewing. It's not stretched out. It's compressed and aligned left.

Tested it against a stock style, so it's definitely a bug.

cashpath
03-04-2007, 03:34 PM
How would I change how this is displayed? I can't find a template so I'm assuming in a file?

Skavenger
03-04-2007, 04:57 PM
How would I change how this is displayed? I can't find a template so I'm assuming in a file?
AdminCP > Plugins & Products > Plugin Manager > Product : vBMicroStats > Global: Complete [Edit]

Look at the end of the template: // regular users template

Kaleem
03-04-2007, 05:13 PM
After the update its only shwoing me 100%PHP and 0%SQL

TECK
03-04-2007, 07:27 PM
Check the readme file, make sure all code is properly inserted.
What I did when I released 1.1.0 is:

1. Installed a fresh vBulletin forum.
2. Applied all code changes.
3. Edited the template.
4. Ran the installer.

See the new screenshots I took. :)

Smoothie
03-04-2007, 10:09 PM
what's the difference between this mod and this one?
https://vborg.vbsupport.ru/showthread.php?t=82900

ManagerJosh
03-05-2007, 08:29 AM
Very nice Release Teck. Minor problem though when it's a non-admin viewing. It's not stretched out. It's compressed and aligned left.

Tested it against a stock style, so it's definitely a bug.

Minor update. Problem appears when there is multiple styles in effect.

cashpath
03-05-2007, 02:30 PM
Thank you

TECK
03-05-2007, 04:14 PM
Minor update. Problem appears when there is multiple styles in effect.
There is a counter I built inside that detects how many styles or languages you have installed and it does a colspan for you to match the number.
I tested the script when the there are multiple styles and/or languages installed, everything is working perfectly.
I first enabled multiple languages, then both multiple languages/styles, then multiple styles only. All OK.
Anyone else with multiple languages/styles has this problem? I can't seem to replicate it.

what's the difference between this mod and this one?
https://vborg.vbsupport.ru/showthread.php?t=82900

From his thread:
This is a derivative of Erwin's microstats hack for vBulletin 3.5.0's plugin system. The main difference is that by default it shows the page generation time and query count to the public. Server loads and Uncached Queries are shown only to administrators.

Compare my options with his, totally different. Erwin created his hack, inspired from mines:
https://vborg.vbsupport.ru/showthread.php?t=59700

Okay, the original was by TECK. This is NOT based on his code - it is based on vB3's native code. If TECK wants me to remove this, I will do so. This is just my version that I use for my private forums.

Xplorer4x4
03-07-2007, 02:54 PM
I seem to have a pretty big problem. I still had microstats running with out the script edits only because I had upgraded to 3.6.5 and been to lazy to update. Well I installed the "latest threads in marquee" hack and evrything was fine.I enabled the debug mode in microstats then as I wanted to observe some of the variables with out picking them out of the XML file.
So now I try to disable debug mode and I can;t. I even delete the entire vbmicrostats plug in and yet debug mode is STILL in effect. I deleted the latest threads in marquee and debug is still in effect.

On top of the debug issue, if i change my forum display order, it does not save the changes. I tried to change a sub forum to make it a forum of a category instead, but it does not save.

I can not even disable the plug in system unless i do it globally in config.php

Even with config.php edited it still does not save my changes if i edit a forum.

Any ideas?

Lizard King
03-07-2007, 03:00 PM
Can you reinstall version 1.1.0 and then try to turn it off after clearing your browser cache.

Xplorer4x4
03-07-2007, 03:12 PM
Can you reinstall version 1.1.0 and then try to turn it off after clearing your browser cache.

I installed the plug in(but not file edits), cleared my browsers cache, then turned off the plug in. I assume you meant the plug in when you said "turn it off".

This did not work.

Lizard King
03-07-2007, 03:36 PM
I installed the plug in(but not file edits), cleared my browsers cache, then turned off the plug in. I assume you meant the plug in when you said "turn it off".

This did not work.
You need to make a full installation so you need to make the file edits also.

Xplorer4x4
03-07-2007, 04:21 PM
You need to make a full installation so you need to make the file edits also.

Thanks, but that did not work either. :(

TECK
03-07-2007, 05:03 PM
Please post a screenshot with what you have displayed on your site, related to the hack.
First, search the html code and tell me if you see in the source:
<!-- {vbmicrostats} -->

Then, go to vBulletin Options > BB MicroStats
Make sure the options you desire are enabled (the first option enables the hack).
We will get this baby working, is something minor ore;se it would not work on previous code edits.

Just for the heck of it, what version you had installed before 1.1.0?
Thanks.

Edit: You still have the problem related to installer? It looks like there are some leftovers in the database, you probably installed over the old old hack, without un-installing first.
Is OK we can clean this.

Just post all details here, I need screenshots to your plugin table.

Xplorer4x4
03-07-2007, 05:19 PM
http://img119.imageshack.us/img119/3060/screenvblg2.gif
When i click view source and search for <!-- {vbmicrostats} --> it does not show up(or did you mean in the template?).

I had 1.0.3 installed before 1.1.0.

Plugin table
http://img407.imageshack.us/img407/8616/tablebl7.gif

TECK
03-07-2007, 06:03 PM
Ya, in the HTML source, you are all good. :)
Sorry, I was not clear... I presumed you will show me the actual data from the plugin table.
Anyways, the process is really simple to clean your board. Do this:

1. Uninstall the hack.
Plugins & Products > Manage Products > vBMicroStats > Uninstall

2. Revert the footer template to default like before.

3. Upload the original vBulletin 3.6.5 class_core.php and init.php files to your server.
We do this just to make sure there are no code mistakes.

4. Close the board.

5. Open config.php and find the following line:
$config['Misc']['maxheight'] = 1944;

Replace it with:
$config['Misc']['maxheight'] = 1944;
$config['Misc']['debug'] = true;

Mod Debug should be enabled now.
If you have the Admin CP still open, just refresh once (F5) the current admin page in your browser.

6. Run the following queries (yes, you can run them all at once):
DELETE FROM `phrase` WHERE product LIKE '%vb36_mstats%';
DELETE FROM `product` WHERE productid LIKE '%vb36_mstats%';
DELETE FROM `productdependency` WHERE productid LIKE '%vb36_mstats%';
DELETE FROM `plugin` WHERE product LIKE '%vb36_mstats%';
DELETE FROM `settinggroup` WHERE product LIKE '%vb36_mstats%';
DELETE FROM `setting` WHERE product LIKE '%vb36_mstats%';

That will clean your database from all vBMicroStats leftovers. :)

7. Rebuild the bitfields.
vBulletin Options > Rebuild Bitfields

8. Disable Debug Mode.
You can simply set the Debug option to false, it will take care of the rest for you:
$config['Misc']['debug'] = false;

9. Log out and login into Admin CP.

10. Open the board, you are done. :)

Xplorer4x4
03-07-2007, 06:09 PM
Do I have to revert the footer or simply delete the code for microstats?

TECK
03-07-2007, 06:11 PM
Delete the microstats code.

TECK
03-07-2007, 06:16 PM
I forgot to mention, the above procedure, will simply revert your bulletin board to it's original state, before you ever installed vBMicroStats.
It's like my hack was never there.

Also, keep in mind that all errors you get now are not related to my hack.
vBMicroStats does not affect in any way the vBulletin (forum) options or functionality.
But I wanted you to feel better and make sure the database is cleaned properly, in case we have some code left there.

Xplorer4x4
03-07-2007, 06:30 PM
2. Revert the footer template to default like before.
My templates will not update because of the bug.

4. Close the board.
It would not even save the status of the board being closed.

6. Run the following queries (yes, you can run them all at once):
DELETE FROM `phrase` WHERE product LIKE '%vb36_mstats%';
DELETE FROM `product` WHERE productid LIKE '%vb36_mstats%';
DELETE FROM `productdependency` WHERE productid LIKE '%vb36_mstats%';
DELETE FROM `plugin` WHERE product LIKE '%vb36_mstats%';
DELETE FROM `settinggroup` WHERE product LIKE '%vb36_mstats%';
DELETE FROM `setting` WHERE product LIKE '%vb36_mstats%';
It claims the data was deleted.

8. Disable Debug Mode.
You can simply set the Debug option to false, it will take care of the rest for you:
$config['Misc']['debug'] = false;
Debug mode is still on despite doing this.

Xplorer4x4
03-07-2007, 06:37 PM
I forgot to mention, the above procedure, will simply revert your bulletin board to it's original state, before you ever installed vBMicroStats.
It's like my hack was never there.

Also, keep in mind that all errors you get now are not related to my hack.
vBMicroStats does not affect in any way the vBulletin (forum) options or functionality.
But I wanted you to feel better and make sure the database is cleaned properly, in case we have some code left there.

This is the only hack that modifys debug mode though so i do not see where else it could come from but I guess i will try my other hacks.

Xplorer4x4
03-07-2007, 06:47 PM
Oh and another note that when i try to click explain, it simply reloads the page which is the bug I notified you of here (https://vborg.vbsupport.ru/showpost.php?p=1193089&postcount=76)

Hell i can not even disable hacks manually in the admin cp. Only by editing config. :(

TECK
03-07-2007, 06:48 PM
Oh and another note that when i try to click explain, it simply reloads the page which is the bug I notified you of here (https://vborg.vbsupport.ru/showpost.php?p=1193089&postcount=76)

Has nothing to do with it.

The hack does not modify nothing related your board functionality, shape or form, it simply displays what already exists built into vBulletin. In version 1.0.3 it emulated the Debug line you add into your config.php file. In 1.1.0 this option was removed and the old option was brought back, simply to display the Debug status.

Did you disabled all hacks? Disable the product manager completly, you need to start methodically.
When you upgraded, did you disabled all hacks as vBulletin requests (Enable Disable Plugin/Hook System)?
You will need to uninstall all hacks, not just disable them and make sure you upload all original files from vBulletin.

What hacks you have now installed?

Xplorer4x4
03-07-2007, 06:58 PM
Has nothing to do with it.

Did you disabled all hacks?
When you upgraded, did you disabled all hacks as vBulletin requests?
You will need to uninstall all hacks, not just disable them and make sure you upload all original files from vBulletin.

What hacks you have now installed?
At the moment no, but if i do disable them globally via config.php it takes away the debug mode.

Nope i did not disable all hacks. :o Didn;t know we had to.

List of installed hacks:
http://img119.imageshack.us/img119/6995/tablege2.gif

TECK
03-07-2007, 07:06 PM
<i>At the moment no, but if i do disable them globally via config.php it takes away the debug mode.</i>
Show me exacly how you do this (code insert).

Also, make me a favor, go to Admin CP:
vBulletin options > Plugin/Hook System > Enable Plugin/Hook System
Make sure this option is set to NO.

Let me know if you can manage to turn it off and the options are saved properly.

Xplorer4x4
03-07-2007, 07:11 PM
At the moment no, but if i do disable them globally via config.php it takes away the debug mode.
Tell me exacly how you do this (code insert).

Also, make me a favor, go to Admin CP:
vBulletin options > Plugin/Hook System > Enable Plugin/Hook System
Make sure this option is set to NO.

Let me know if you can manage to turn it off and the options are saved properly.
I disable the plug ins by finding <?php at the very top of config.php and adding this code after it::

define('DISABLE_HOOKS', true);

And no i cant turn the system off in options as said above.:( Nor can i change forum names, forum display order, or even the parent forum. Basically nothing works at all in the admin cp.

TECK
03-07-2007, 07:34 PM
Ok, we will force it to turn OFF.
Run this query:

UPDATE `setting` SET `value` = '0' WHERE `varname` = 'enablehooks';
Value 0 is like selecting the No option.

Xplorer4x4
03-07-2007, 07:39 PM
Ok, we will force it to turn OFF.
Run this query:

UPDATE `setting` SET `value` = '0' WHERE `varname` = 'enablehooks';
Value 0 is like selecting the No option.
I can already turn it off via the file edit above so is there a reason i need to do it via this query?:confused: I just can not disable it via the vbulletin options.

Xplorer4x4
03-07-2007, 08:54 PM
I am in the process of deleting some of my hacks. Even though I delete them they still function. The odd thing is there is no trace of them in the plugin table. I looked through the table, and see the hack, then delete the hack yet the hack still functions.

Lizard King
03-07-2007, 08:58 PM
You shall disable template cache plugin

Xplorer4x4
03-07-2007, 09:10 PM
You shall disable template cache plugin

I already did that along time ago. It has made no difference.:(

TECK
03-07-2007, 09:24 PM
Xplorer4x4, I think is best you start a new thread in the support area here at vBulletin.org, or even better, open a ticket to vb.com to have them restore everything default.
My hack has nothing to do with your current problems. :)

However, I will help you if you want, but into a new thread. In this way we don"t highjack the current thread. PM me the link.

I strongly recommend you to cantact VB Team, they have a set of toold to clean your board of all hacks in no time. Then, once everything works fine, start installing the hacks one by one and see what causes problems.

Also, make sure you always ask in the forums if you are not sure of something.
Look at the mess you are into. :)
Still, you have to relax, it's just code, you will not lose any data. It's just few annoyng steps you have to go through, that's all. See you on the other side of the thread. :)

Xplorer4x4
03-07-2007, 09:31 PM
Xplorer4x4, I think is best you start a new thread in the support area here at vBulletin.org, or even better, open a ticket to vb.com to have them restore everything default.
My hack has nothing to do with your current problems. :)

However, I will help you if you want, but into a new thread. In this way we don"t highjack the current thread. PM me the link.

I strongly recommend you to cantact VB Team, they have a set of toold to clean your board of all hacks in no time. Then, once everything works fine, start installing the hacks one by one and see what causes problems.

Also, make sure you always ask in the forums if you are not sure of something.
Look at the mess you are into. :)
Still, you have to relax, it's just code, you will not lose any data. It's just few annoyng steps you have to go through, that's all. See you on the other side of the thread. :)
I already started a new thread since i already had hijacked this one. Yes your help would be much appreciated here: https://vborg.vbsupport.ru/showthread.php?p=1198310#post1198310.

dbirosel
03-12-2007, 04:55 PM
Installed perfectly! Questions:

Unchached Templates
Display all used templates and identify any unchached ones.

What's so important for this one?

&

On forum home i have 19 queries, is that bad?

TECK
03-14-2007, 12:50 AM
If you add any mods and you forget a template to cache it, it will add an extra query for each.
In other words, you can endup with a bunch of queries performed for no reason.
19 queries on your forumhome... considering that you should have max 10, ya is bad. :)

dbirosel
03-14-2007, 01:18 AM
So how do i find out if i need a template to cache? I don't really get caching. lol.

I just know having too many queries is bad. Sorry im a noob. Can someone help me out here?

Xplorer4x4
03-14-2007, 03:55 AM
If you add any mods and you forget a template to cache it, it will add an extra query for each.
Some hacks add queries with templates cached though.

Xplorer4x4
03-14-2007, 03:57 AM
So how do i find out if i need a template to cache? I don't really get caching. lol.

I just know having too many queries is bad. Sorry im a noob. Can someone help me out here?

Install this hack, and look at the bottom right corner it will tell you if you have uncached templates.

fn9mm
03-14-2007, 06:52 AM
This worked fine at the beginning, suddenly i'm getting this
http://img185.imageshack.us/img185/3089/ab2fc4.png
100 % PHP en 0 % Mysql
I'm getting this on every page, any idea why??

TECK
03-14-2007, 02:47 PM
Check your code edits. :)

curriertech
03-17-2007, 11:06 PM
Thanks for porting this over to 3.6 Teck, I've been waiting for your version of this hack! :D How can I separate the parts of the admin template so that it is on multiple lines instead of all on one line? I like this format:

gentime
server load
users/templates/mem/etc...

Can this be accomplished easily?

TECK
03-17-2007, 11:14 PM
Yes, it can. Look into the XML file at the bottom, where you have the template listed.
Edit it the way you like it.
Then, uninstall the current hack and reinstall it again, using your new XML file with applied modifications.

meissenation
03-18-2007, 01:36 PM
I've got MicroStats enabled but it just doesn't show up for me. Any ideas?

TheMilkCarton
03-18-2007, 02:42 PM
Try editing the footer template?? There shouldn't be any other reason it doesn't show up.

stwilson
03-18-2007, 03:39 PM
Love the mod! I have a question. My stats are consistently showing:

Page generated in X.X seconds (2.24% PHP - 97.76% MySQL) with X queries

My configuration is one where I have the web server (dedicated) and a separate MySQL server (shared). With most of my page loads coming in at just above 5 seconds and hovering around 98% MySQL...is it safe for me to assume I need to get on a faster MySQL server to balance this out some or am I reading the stats wrong? Thatnk you for your hard work.

TECK
03-18-2007, 11:03 PM
I would get another server, then do a balanced load proxy on them.
Personally, I would buy the servers and look near my house for a colocation center. You will save a ton of money every month.
How big is your site?

stwilson
03-19-2007, 12:39 AM
My site is about 12K+ members, with concurrent users hovering about 50-75 at any given time and daily uniques at about 1,200.

curriertech
03-19-2007, 12:50 AM
Yes, it can. Look into the XML file at the bottom, where you have the template listed.
Edit it the way you like it.
Then, uninstall the current hack and reinstall it again, using your new XML file with applied modifications.

Awesome, thanks!

TECK
03-19-2007, 07:08 AM
My site is about 12K+ members, with concurrent users hovering about 50-75 at any given time and daily uniques at about 1,200.

Use your dedicated server for both web and mysql server.

fn9mm
03-19-2007, 07:29 AM
Check your code edits. :)
got it,
all the changes i made to class_core.php and init.php file were somehow undone,
don't get it how or why, i implemented all the required changes a week ago,
thx anyway
great mod !!

TECK
03-20-2007, 02:16 AM
Good job. :)
As I said before, the hack is very safe for vBulletin. If you do something bad, it will not break your site.
The worst it will happen is not to show the right info.

Xplorer4x4
03-24-2007, 05:03 AM
TECK, I found a slight conflict with another mod. I am using the "Show Users using Style in Style Chooser" which I believe was developed by Kirby/Andreas along with this hack, and noticed the following:

If I install Microstats over the other hack, the other hack fails to function. I have to install Andreas' hack over this one.

I was wondering if it would be possible for you to develope something similar in to this hack since this is a stats hack and all. ;)

Get Shorty
03-25-2007, 04:35 AM
Is there any way I can display the server loads to regular users and guests?

Thanks for the hack. :)

TECK
03-25-2007, 07:42 AM
TECK, I found a slight conflict with another mod. I am using the "Show Users using Style in Style Chooser" which I believe was developed by Kirby/Andreas along with this hack, and noticed the following:

If I install Microstats over the other hack, the other hack fails to function. I have to install Andreas' hack over this one.

I was wondering if it would be possible for you to develope something similar in to this hack since this is a stats hack and all. ;)
Link to Kirby's hack? I did not get what you are actually want... to modify my hack in order to make it work with Kirby's?
Thanks for explaining again.

Is there any way I can display the server loads to regular users and guests?

Thanks for the hack. :)
Yes, it can be done, but I strongly recommend you not to do it.
If you have a very busy site, it will put unwanted stress into server. Is not for fun that I made it to show only to admins. :)
Leave it like that, is best.

Xplorer4x4
03-25-2007, 08:53 AM
https://vborg.vbsupport.ru/showthread.php?t=95637
Andreas hack is there. It would be nice for it to work with his hack flawless. OR it would be nice to see the function of his hack integrated into this one.

Also I noticed his is now calling one query per style. :(

And I no longer see my server loads. I really need to see them.:(

Get Shorty
03-25-2007, 10:13 PM
Yes, it can be done, but I strongly recommend you not to do it.
If you have a very busy site, it will put unwanted stress into server. Is not for fun that I made it to show only to admins. :)
Leave it like that, is best.

Ah, I see. I figured the server load was calculated anyway, so it'd be a freebie. How else does vBulletin know to deny members if the load reaches a certain level (vb option)?

DementedMindz
03-27-2007, 08:32 PM
TECK have a question for you when you use this mod along with vB Ad Management you get the uncached templates postbit_advertisement now he says its this mod cause the default vbulletin does not show any uncached templates you can take a look at the post on the thread on this page https://vborg.vbsupport.ru/showthread.php?t=131150&page=49 any word on how to fix this?

TECK
03-30-2007, 05:45 AM
Ah, I see. I figured the server load was calculated anyway, so it'd be a freebie. How else does vBulletin know to deny members if the load reaches a certain level (vb option)?
Nah, is not calculated by default. :)
Some extra operations are performed to pull the data and format it. No need to load the server for regular users, especially that most of them would not care at all about this info.
They like to read your forum, not to see if it's up and running dandy. :)

TECK have a question for you when you use this mod along with vB Ad Management you get the uncached templates postbit_advertisement now he says its this mod cause the default vbulletin does not show any uncached templates you can take a look at the post on the thread on this page https://vborg.vbsupport.ru/showthread.php?t=131150&page=49 any word on how to fix this?
After reading that page (if I understand correctly) with a previous version, you did not have this problem, right? Once you updated his hack it showed an uncached template.
So tell him to check his code, my hack is OK. :)
Just to give you more details, tell him that my hack outputs all uncached templates at the global_complete hook. At this point, you should not perform any type of caching anymore (at least that's how all vBulletin files work).

Just curious, why you don't use MMM? All huge sites with thousands of users online use it because it's extremly stable and way better then PAN. It integrates with other major advertiser systems, like Atlas and Mediaplex and it's free:
Openads 2.3 (aka Max Media Manager)
http://www.openads.org/downloads.html

TECK
03-30-2007, 05:55 AM
https://vborg.vbsupport.ru/showthread.php?t=95637
Andreas hack is there. It would be nice for it to work with his hack flawless. OR it would be nice to see the function of his hack integrated into this one.

Also I noticed his is now calling one query per style. :(

And I no longer see my server loads. I really need to see them.:(
This hack is pretty old, there are many changes to the core in vb 3.6, compared to 3.5 version. DO NOT install 3.5 hacks into a 3.6 board. I'm not sure if Kirby is still active on those forums.
Plus, if it ads one query per style for each post, you could endup with 100 extra queries on your page.

Sorry, but I will not create or edit other's hacks. :)
They can fix them, is their code. vbMicrostats will never break another hack, if it's the right vB version and if the hack is written properly. In fact, the hack can break vbMicrostats, not viceversa.

Xplorer4x4
03-30-2007, 01:07 PM
This hack is pretty old, there are many changes to the core in vb 3.6, compared to 3.5 version. DO NOT install 3.5 hacks into a 3.6 board. I'm not sure if Kirby is still active on those forums.
Plus, if it ads one query per style for each post, you could endup with 100 extra queries on your page.

Sorry, but I will not create or edit other's hacks. :)
They can fix them, is their code. vbMicrostats will never break another hack, if it's the right vB version and if the hack is written properly. In fact, the hack can break vbMicrostats, not viceversa.

Kirby is still around on rare occasions. Not like the old days.

As for the hack it has been updated to 3.6. I was simply asking if you would implement the same feature in this hack, but I am using the PSIStats hack so that calculates style usage, and thats what i need.

However as I said some where above, Microstats is no longer out putting my server loads. The options is selected in vboptions but it is not processing. Any ideas?:(

DementedMindz
03-30-2007, 06:06 PM
Just curious, why you don't use MMM? All huge sites with thousands of users online use it because it's extremly stable and way better then PAN. It integrates with other major advertiser systems, like Atlas and Mediaplex and it's free:
Openads 2.3 (aka Max Media Manager)
http://www.openads.org/downloads.html

thank you for the heads up im going to look at that now :)

TECK
04-01-2007, 07:20 AM
However as I said some where above, Microstats is no longer out putting my server loads. The options is selected in vboptions but it is not processing. Any ideas?:(

Try to isolate the problem. Install Microstats into a clean board.
It will work perfectly, then add one hack at the time, until you see what hack create the problem.
Once you identify the hack, ask the kacker why it breaks vBulletin.

If vBMicrostats is not working properly, chances are that other vBulletin code segments are broken also by that hack. As I said already to you, feel free to ask in the Programming forum about a hack, if it's well written, etc. Hackers will be honest and tell you stright up to install it or not.

Do not run high and install anything you like, just because it's cool for your board.
Unfortunatelly, many hacks are written with a very low code quality/performance and they are not checked to see how they perform into a real live/busy environment.

I know it's a pesky job on finding what hack is breaking your board.
If I can help, I will reply to your threads into Programming forum.

Cheers.

dj_melayu
04-04-2007, 07:59 PM
I got this things works fine on 3.6.2 through this post https://vborg.vbsupport.ru/showpost.php?p=1193152&postcount=78

And the result is Page generated in 2.48392510 seconds (53.68% PHP - 46.32% MySQL) with 72 queries 0KB Used | Uncached Templates: None

What do you think guys? :)

dbirosel
04-04-2007, 08:02 PM
omg that is horrible!!! 72 queries!!! almost 3 seconds to load... oh my..

dj_melayu
04-04-2007, 08:37 PM
I didn't get it. What you meant? :)

cashpath
04-04-2007, 10:35 PM
Can I suggest a small change?

Change '{microstats}' to '<!--{microstats}-->' in the template and in the str_replace in the plugin.

This way, on pages where the vb footer is used but it's not designed 'for' vbulletin (for example photopost, mediawiki) it doesn't leave the text {microstats} breaking your table, as it sees it as a comment.

Ollie

I have custom pages that this does not show up on.. how would I get it to work with the custom pages? What does designed 'for' vbulletin mean?

cashpath
04-05-2007, 03:28 PM
Anyone?

Xplorer4x4
04-05-2007, 03:52 PM
I didn't get it. What you meant? :)
He means 72 queries is likley to kill your site and your hogging server resources from the other people sharing your server since you are probably on shared hosting. You should consider removing some hacks ASAP!

I have custom pages that this does not show up on.. how would I get it to work with the custom pages? What does designed 'for' vbulletin mean?

designed for vbulletin means it is designed for vBulletin, not IPB, phpbb, and not a portal page.

As for getting it work on custom pages, that depends, what kind of custom pages are you referring to? A php or HTML web page or a hack for vbulletin like vBAdvanced or Web Templates? If your referring to vBAdvanced or Web Templates try putting the template edit for this hack into the bottom of there hack. If your trying this on a non vb page like a php or html web page then wait for TECK to see if he can help.

Xplorer4x4
04-05-2007, 03:55 PM
Try to isolate the problem. Install Microstats into a clean board.
It will work perfectly, then add one hack at the time, until you see what hack create the problem.

Once you identify the hack, ask the kacker why it breaks vBulletin.

If vBMicrostats is not working properly, chances are that other vBulletin code segments are broken also by that hack. As I said already to you, feel free to ask in the Programming forum about a hack, if it's well written, etc. Hackers will be honest and tell you stright up to install it or not.

Do not run high and install anything you like, just because it's cool for your board.
Unfortunatelly, many hacks are written with a very low code quality/performance and they are not checked to see how they perform into a real live/busy environment.

I know it's a pesky job on finding what hack is breaking your board.
If I can help, I will reply to your threads into Programming forum.

Cheers.
Well I installed vBAdvanced the other day and decided to move the forums out of public_html(being the vb root) to the public_html/vbroot folder and now the server loads seem to run fine.

cashpath
04-05-2007, 04:42 PM
They are custom PHP pages wrapped in the Vbulletin header navbar and footer.

I call the $footer template to be displayed on those pages and the edit is in there.. it shows up in the source like this <!-- {microstats} -->

cashpath
04-06-2007, 09:24 PM
Is there something specific that a page has that activates this?

Xplorer4x4
04-07-2007, 12:29 AM
I realize you have been waiting about 2 days cashpath but stop double posting all the time and give the author a chance to reply. It may be possible he has been to busy to reply.

TECK
04-08-2007, 03:35 PM
They are custom PHP pages wrapped in the Vbulletin header navbar and footer.

I call the $footer template to be displayed on those pages and the edit is in there.. it shows up in the source like this <!-- {microstats} -->

Attach your .php file here.

cashpath
04-09-2007, 04:37 PM
I got this working..

Xplorer4x4
04-09-2007, 07:43 PM
I got this working..

Any chance you would share that with us? :D

cashpath
04-09-2007, 09:19 PM
I made a template for the page and then used

ob_start();
include('league_includes/file_include.php');
$breakdown_inc = ob_get_contents();
ob_end_clean();

And called $breakdown_inc in the template

It's probably not the best way but it's working for me.

Xplorer4x4
04-09-2007, 10:52 PM
Thanks! :)

ymy
04-17-2007, 09:08 PM
Great work, installed and working fine.

Install Click

Thx man

Daky
04-18-2007, 05:46 AM
This is very nice script, i love it!

Thank you!

nymyth
05-04-2007, 01:23 AM
anychance we can have it like the older version, where it would sit at the bottom. Also how do we make it so only admins see any information...

Thanks.

Get Shorty
05-05-2007, 11:35 AM
This break my site's XHTML validation.

there is no attribute "colspan".

<div class="stats" colspan="2">

Any easy way to fix this?

TECK
05-11-2007, 03:43 AM
You can edit the template the way you like it. :)
Look into plugin code for user and admin templates.

Dream
05-11-2007, 03:54 AM
TECK be sure to check 3.6.6 to see if you still will need to do file edits please :)

tasoik
05-11-2007, 01:52 PM
I cannot install it into 3.6.6
Tell me that its incompartible with 3.6.6

tasoik
05-11-2007, 01:52 PM
I think we need a new xml file. I made all the changes

mfyvie
05-17-2007, 08:49 AM
I cannot install it into 3.6.6
Tell me that its incompartible with 3.6.6

I'm getting the same thing, I get the following when I try to import the product:

This product is not compatible with version 3.6.7 of vBulletin. (Compatible starting with 3.6.4 / Incompatible with 3.6.6 and greater)

Seemed like a great idea - anyone know whether it really is incompatible?

smsmasters
05-17-2007, 10:32 AM
it works on my 3.6.7 forum http://www.smsmasters.co.uk/forum/index.php

Xplorer4x4
05-17-2007, 12:17 PM
I'm getting the same thing, I get the following when I try to import the product:

Seemed like a great idea - anyone know whether it really is incompatible?

Open the XML file with notepad or any text editor, and on line 10, change
<dependency dependencytype="vbulletin" minversion="3.6.4" maxversion="3.6.6" />

to

<dependency dependencytype="vbulletin" minversion="3.6.4" maxversion="3.6.7" />

mfyvie
05-17-2007, 04:47 PM
Open the XML file with notepad or any text editor, and on line 10, change

Sweet - thanks. Strangely I'm running 3.6.7 but when I changed it to 3.6.7 it still complained. I changed it to 3.6.8 and then it imported.

I guess the author just put this in because he wasn't sure what would happen with future versions - but it means he has to update it each time a new VB comes out...

Xplorer4x4
05-17-2007, 04:58 PM
Sweet - thanks. Strangely I'm running 3.6.7 but when I changed it to 3.6.7 it still complained. I changed it to 3.6.8 and then it imported.
Then you are likley running 3.6.7 PL1 which is the latest version. I did not realize a PL1 release was made but yes as you see setting it to 3.6.8 works fine.

I guess the author just put this in because he wasn't sure what would happen with future versions
That is most likley correct.
but it means he has to update it each time a new VB comes out...
Yes it does which is much less trouble then having a new vB release come out, only to find that there were tons of changes and this hack will cause major problems on peoples forums. Then he has to spend hours and hours of time trying to help people fix there forum, instead of taking 5 min when a new vB is released to edit the XML file and upload a new zip file. ;)

curriertech
05-19-2007, 06:10 PM
I love this hack, but I just upgraded to php 5.2.1 and now it's showing 100.00% PHP - 0% MySQL. Any ideas?

EDIT, it's because I'm a jackass!

fn9mm
05-20-2007, 07:15 AM
I love this hack, but I just upgraded to php 5.2.1 and now it's showing 100.00% PHP - 0% MySQL. Any ideas?

EDIT, it's because I'm a jackass!
forgot the code edits in init.php and class_core.php?
(had the same thing some weeks ago ;) )

curriertech
05-20-2007, 02:04 PM
forgot the code edits in init.php and class_core.php?
(had the same thing some weeks ago ;) )

Yes it was your posts that tipped me off, too. I broke this hack last week when I upgraded to 3.6.7, I just didn't notice until yesterday when I upgraded php. hah!

Mike Gaidin
05-27-2007, 07:08 PM
Agh! How did I miss this hack?! I've always tried to keep an eye out for this one. A little bit late, but thanks Floren!

SuperTaz
05-27-2007, 08:18 PM
Will it work with Version 3.6.7?

stwilson
05-28-2007, 06:34 PM
I upgraded to 3.6.7 and tried to reinstall this MOD and it says it's not compatible.

mfyvie
05-28-2007, 08:17 PM
I upgraded to 3.6.7 and tried to reinstall this MOD and it says it's not compatible.

You didn't bother to read any of the posts on this thread (like the ones only 1 page back) did you? If you did - you wouldn't have posted that.

Delphiprogrammi
06-01-2007, 06:35 PM
doesn't work on 3.6.7 PL 1 it just shows {microstats} hmmz

edit

allright got it to appaer but i get verry strange values


Page generated in 0.19434595 seconds (-9,720,637,786,711.28% PHP - 9,720,637,786,811.29% MySQL) with 15 queries


probably that means i did something wrong editing the files just asking to be sure

gforce75
06-02-2007, 12:19 AM
Err... that bites. I was about to install this one. Thanks for the post

DementedMindz
06-03-2007, 05:13 AM
mine works fine on 3.6.7 PL have had this installed for awhile now with no problems at all ;)

Lizard King
06-10-2007, 10:07 AM
It works on 3.6.7 Pl1 without any problems.

Delphiprogrammi
06-10-2007, 10:46 AM
yes it does work but it's causing a scrollbar at the bottom that's annoying and ugly !

DementedMindz
06-11-2007, 03:37 AM
dont do that for me at all but I have changed my code around a bit as I didnt want it in the tables I have mine under vb copyright.

Xplorer4x4
06-19-2007, 07:15 AM
This does not work for me. I have installed this many times with no problem. I have updated the XML to make this compatible with 3.6.8 and made the proper file edits. I have no errors on my php pages and have made the template edit, as well as enabling the hack, yet still it does not work.

Delphiprogrammi
06-19-2007, 08:15 AM
This does not work for me. I have installed this many times with no problem. I have updated the XML to make this compatible with 3.6.8 and made the proper file edits. I have no errors on my php pages and have made the template edit, as well as enabling the hack, yet still it does not work.

3.6.8 ? hmmmz where do you get that ? this does work ....

Xplorer4x4
06-19-2007, 08:28 AM
3.6.8 ? hmmmz where do you get that ? this does work ....

Well I just wasnt 100% sure how to address the version number in the plug in so i skipped up to 3.6.8 so if a PL2 would be released no need to change the xml again.

However since I could not get it to work i changed 3.6.8 to 3.6.7 PL1 in the plug in for testing. The import went fine but still no stats.

I double checked my filed edits by doing them all over again and uploading them. The file size matched my already edited scripts so i am 100% sure the edits are done properly.


EDIT: I guess it helps to turn on the plug in, i just never recall having to enable it manually except in vb options.

EDIT #2: I have all options turned on in vb options but the debug status memorey usage and so forth does not show. Just execution time,php,mysql stats are shown. :S

santimariani
06-19-2007, 09:19 PM
I changed the version to 3.6.8 like someone else in order for it to work but now I am getting this:

Page generated in 1.36597610 seconds (100.00% PHP - 0% MySQL) with 16 queries

Any thoughts? Thanks!

Xplorer4x4
06-19-2007, 09:39 PM
Did you do the file edits? That is usually how it shows up when you dont have the file edits done.

I got the second part of the table working, but i had to turn on the users online count for the stats, then gzip levels and such showed up. I disabled the users online and everything works fine now.

santimariani
06-20-2007, 06:01 PM
Did you do the file edits? That is usually how it shows up when you dont have the file edits done.

I got the second part of the table working, but i had to turn on the users online count for the stats, then gzip levels and such showed up. I disabled the users online and everything works fine now.

That did it. It is interesting though... I know I had done them before. It probably got replaced with another file when I upgraded my vbulletin forum. Thanks for the help! :)

momo2
07-12-2007, 01:39 PM
is does not accept 3.67PL1 any solutions ?

kenfuzed
07-12-2007, 05:46 PM
I'm at a loss on how to get this working. I've read through all 14 pages of this thread and didn't find a solution. I installed this on my 3.6.4 board but it won't appear. I've made all the file edits and added the code to my footer, still doesn't appear. I've double checked everything (and yes, I enabled the plug-in). I see the <!-- {microstats} --> in my source code as well.

Is it possible that vbseo or vbadvanced is messing with this?

StrifeX
07-12-2007, 06:30 PM
It's showing up as 100% and 0% SQL usage. Any ideas?

curriertech
07-12-2007, 06:31 PM
I'm at a loss on how to get this working. I've read through all 14 pages of this thread and didn't find a solution. I installed this on my 3.6.4 board but it won't appear. I've made all the file edits and added the code to my footer, still doesn't appear. I've double checked everything (and yes, I enabled the plug-in). I see the <!-- {microstats} --> in my source code as well.

Is it possible that vbseo or vbadvanced is messing with this?

I run both vbSEO and vBAdvanced, with no issues.

curriertech
07-12-2007, 06:32 PM
It's showing up as 100% and 0% SQL usage. Any ideas?

double-check your file edits.

kenfuzed
07-12-2007, 09:05 PM
I can't figure out what I'm doing wrong then. I tried installing this 5 times now and nothing I do even begins to work :mad:

mcyates
07-18-2007, 04:13 PM
Mine is doing the exact thing.

Page generated in 0.188 seconds (100.00% PHP - 0% MySQL) with 21 queries

Why does it always show 100.00% PHP - 0% MySQL?

Doe I have to edit something on my server to show the % for mysql and php?

Thanks in advance.

mcyates
07-18-2007, 04:26 PM
I forgot to do the file edits sorry.

mtlcore
07-18-2007, 05:27 PM
Working great on 3.6.7 PL1

What did I do?
I followed instructions: file editing, upload product, enable it from Manage Products page and in vb options.
One more thing: https://vborg.vbsupport.ru/showpost.php?p=1249437&postcount=176

How long did it take me?
Less than 2 minutes!

Works great! Thanks a lot dude.

DaveTomneyUK
07-21-2007, 08:12 PM
I use Bulletin 3.6.7 and I edited the 2 files but when I try importing the .XML file I get this error.


The following dependencies were not met:
1. This product is not compatible with version 3.6.7 of vBulletin. (Compatible starting with 3.6.4 / Incompatible with 3.6.6 and greater)

Xplorer4x4
07-21-2007, 08:22 PM
^If you read the thread or search you will see its been brought up many times before, and you will find the fix.

DaveTomneyUK
07-21-2007, 08:25 PM
^If you read the thread or search you will see its been brought up many times before, and you will find the fix.

OK sorry but I was to lazy to search all 11 pages. :)

Adam21
08-02-2007, 03:10 PM
Still works good in vb368 :)

MickDoneDee
08-04-2007, 10:57 AM
Installed to 3.6.7 PL1.
Initially, I received this error:
The following dependencies were not met:
This product is not compatible with version 3.6.7 of vBulletin. (Compatible starting with 3.6.4 / Incompatible with 3.6.6 and greater)In the XML file I replaced maxversion="3.6.6" with maxversion="3.6.8" as suggested in a previous post.
After the successful import I found the plugin disabled by default (you can see a line through the title in the plugin manager) so I enabled it.

In vBulletin Options > Help BB MicroStats I enabled the plugin and turned on all the options. Debug Mode status only displays if it is enabled in the /includes/config.php file.

The template modification as supplied in the readme.html file corrupts the display so I wrapped it in it's own table tags.

<table cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="$stylevar[outertablewidth]" class="page" align="center">
<tr>
<if condition="$show['microstats']"><!-- {microstats} --></if>
</tr>
</table>Then I placed the code below the first table in the footer template. Hack working as expected. These stats are for forum home when logged in.

Page generated in 0.492 seconds (73.29% PHP - 26.71% MySQL) with 13 queries
DEBUG Mode ON | 0.19 : 0.22 : 0.24 | Uncached Templates: None

I've elected not to display Active Users, Memory Usage, and GZIP Level.

I am also running vBSEO without any conflicts.

Explain is also working fine.

oic
08-06-2007, 10:22 AM
Thanks For This. Great Mod.

ACIKillJoy
08-17-2007, 09:02 AM
Flawless install onto a 3.6.8 board.

Just had to edit the plugin to adapt to the version.

Thanx
*Installs*

cynthetiq
08-18-2007, 01:02 PM
thanks this is quite handy to have to benchmark performance. thank you.

Xplorer4x4
08-21-2007, 12:06 AM
OK sorry but I was to lazy to search all 11 pages. :)

Which is why there is a "Search this Mod/Thread" function. ;)

TECK
09-06-2007, 06:53 AM
You guys are great, you know that? :)
I enjoyed reading the last few pages. Congratulations to all for the team work and for not giving up on a little code hiccup!

I also linked Xplorer's post in the first page so people will know how to update the files for new vBulletin versions.

ACIKillJoy
09-07-2007, 07:34 AM
workin perfect on 3.6.8 with the minor update of version in the xml file.

Michael_Jim
09-29-2007, 01:13 PM
Hi,

i've changed the value in the xml to 3.6.8 but it doesn't work.
Then i tried 3.6.9 and now it works :)

Michael_Jim

Antonio Pereira
09-30-2007, 06:25 PM
Hi here with 3.6.8 i have just one bug:

Page generated in 0.3916 seconds (67.60% PHP - 32.40% MySQL) with 13 queries
Users: 505 (404 members and 101 guests) | 4,097.32KB Used | GZIP OFF | 0.52 : 0.80 : 0.95 | Uncached Templates: None


But i have GZIP enabled with valor 1.


Best Regards

edgecutioner
10-05-2007, 09:51 AM
Hi,

i've changed the value in the xml to 3.6.8 but it doesn't work.
Then i tried 3.6.9 and now it works :)

Michael_Jim

lol thanks! i've been trying in the maxversion="3.6.8" so that's why it didn't work lol

thanks again michael:D

Mecho
10-14-2007, 03:56 PM
is this works fine in 3.6.8 ?

thanks

edgecutioner
10-15-2007, 09:54 AM
is this works fine in 3.6.8 ?

thanks

yep ;)

read these:

https://vborg.vbsupport.ru/showpost.php?p=1249437&postcount=176
https://vborg.vbsupport.ru/showpost.php?p=1349555&postcount=218
https://vborg.vbsupport.ru/showpost.php?p=1353365&postcount=220

Mecho
10-15-2007, 11:14 AM
ok thank u , i will try :)

Captain Kirk76
10-18-2007, 04:20 AM
Very nice, loaded this on my vB 3.6.8 board.
One thing, I would like it to display all turned on stuff to all users, how can accomplish this?

Ahsin1
10-18-2007, 06:13 PM
edited the .php file and upalod xml file and did the temaplte for footer. but i do not see any stats in footer. some help plz

Mecho
10-19-2007, 09:09 AM
Thanks ,
Works great

Page generated in 0.87763810 seconds (25.36% PHP - 74.64% MySQL) with 24 queries

ok now the first question is that the result r good or not ? for a forum around 300 - 500 users online .

2 - how can i enable.memory.limit ???

3 - What is Debug Mode and what exactly it does and how can i enable it ( i searched in config.php but couldnt fine any option) ?

and 4 - how can i Set that result in center of Footer ?? :p

thanks

iRO Wiki
10-22-2007, 03:33 PM
Even if I set the "display uncached templates" to No, it still shows up!

rapidphim
10-23-2007, 05:22 AM
Still works good in vb368 :)
How did you do to make it compatible with vB 3.6.8? I just tried and it said the product is incompatible with vb 3.6.6 and higher.

ChrisLM2001
10-23-2007, 05:47 AM
Usually this is my very first mod to add to a freshly installed vB, but the server time fix came first this time. :grumble:

But, thanks Teck for maintaining this mod all these years. :up:

Xplorer4x4
10-23-2007, 05:50 AM
How did you do to make it compatible with vB 3.6.8? I just tried and it said the product is incompatible with vb 3.6.6 and higher.

It's been answered atleast 5 times or more. In fact it has even been aswered on htis page if you bother reading.

ChrisLM2001
10-23-2007, 09:18 AM
Well, I tried to get this mod to work in 3.6.8 but nothing would get it to show up on the board.

1. Edited the class_core.php.
2. Edited init.php.
3. Edited footer.
4. Updated the product xml to 3.6.9 to get the plugin to work.
5. Enabled the plugin.
6. Made sure the globals were checked.
7. Activated it in the options and turned everything on.

Nothing showed.

Dropped in the Microstats version to see if GoDaddy blocked anything, but that mod works fine. :confused:

Dan
10-24-2007, 08:41 PM
I noticed when you install this product that it is automatically disabled when installed so you have to go back to the product manager and enable it. Strange...

sduckie2k5
10-31-2007, 07:07 PM
How can I center this on the bottom of the page?

JohnBee
10-31-2007, 07:47 PM
Well, I tried to get this mod to work in 3.6.8 but nothing would get it to show up on the board.

1. Edited the class_core.php.
2. Edited init.php.
3. Edited footer.
4. Updated the product xml to 3.6.9 to get the plugin to work.
5. Enabled the plugin.
6. Made sure the globals were checked.
7. Activated it in the options and turned everything on.

Nothing showed.

Dropped in the Microstats version to see if GoDaddy blocked anything, but that mod works fine. :confused:

I *was in the same position.

Couldn't get it to show no matter what. Even broke out of the <if... stantement to see if it would stimulate things(no go). Looks like it might be a dud on 3.6.8 PL1 for the time being. Turns out the Product(plugin) is DISABLED upon loading. Though it has been mentioned here numerous times, I think the overall statement is missleading to most, where people assume disabled = not turned on in AdminCP > Options where in fact the PPRODUCT /PLUGIN itself is DISABLED upon loading. So it will not work, respond or even show up anywheres until it is ACTIVATED under: Plugins and Products > Manage Products > vB Microstats > Enable(drop down)

Hope this helps someone along the way.

TECK
11-07-2007, 12:25 AM
It is mentioned here and in the readme file that you need to enable the plugin, once installed. :)
But thanks for highlighting this small matter again. :)

Floren

DiverTree
11-10-2007, 08:59 AM
Installed 3.6.8 PL2

all is working good after a slight display problem that i fixed using MickDoneDee's code in post #211

thank you teck and all those that contributed ... except for that guy to lazy to read the thread. :rolleyes: lol

ujai
11-10-2007, 02:14 PM
installed.. thanks

JohnBee
12-09-2007, 11:49 PM
Strange new problem this round.

After modding the two /includes/files, my vbull. screens are blank. If I restore the init.php all returns to normal. I double/triple checked my edits(same thing).

I am running on 3.6.8 PL2
Anyone else encounter this?

nyunyu
12-11-2007, 08:02 AM
Well, I tried to get this mod to work in 3.6.8 but nothing would get it to show up on the board.

1. Edited the class_core.php.
2. Edited init.php.
3. Edited footer.
4. Updated the product xml to 3.6.9 to get the plugin to work.
5. Enabled the plugin.
6. Made sure the globals were checked.
7. Activated it in the options and turned everything on.

Nothing showed.

Dropped in the Microstats version to see if GoDaddy blocked anything, but that mod works fine. :confused:

I experienced the same thing too..nothing shows up on the forum.
Does this hack be used in conjuction with Hellcat page compressor?

nyunyu
12-11-2007, 05:09 PM
Now it is working with charms... :D
I just edit my /forum/include/config.php
add at the bottom $config['Misc']['debug'] = 1;

then refresh admincp.
then I put the value "1" to "0" to disable it again.

In other word, I turn on debug mode and turn it off again.

nice hack indeed. thumbs up!

Mutt
12-15-2007, 01:32 PM
THANKS, worked fine on 3.68 patch 2

Installed to 3.6.7 PL1.
Initially, I received this error:
In the XML file I replaced maxversion="3.6.6" with maxversion="3.6.8" as suggested in a previous post.
After the successful import I found the plugin disabled by default (you can see a line through the title in the plugin manager) so I enabled it.

In vBulletin Options > Help BB MicroStats I enabled the plugin and turned on all the options. Debug Mode status only displays if it is enabled in the /includes/config.php file.

The template modification as supplied in the readme.html file corrupts the display so I wrapped it in it's own table tags.

<table cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="$stylevar[outertablewidth]" class="page" align="center">
<tr>
<if condition="$show['microstats']"><!-- {microstats} --></if>
</tr>
</table>Then I placed the code below the first table in the footer template. Hack working as expected. These stats are for forum home when logged in.

Page generated in 0.492 seconds (73.29% PHP - 26.71% MySQL) with 13 queries
DEBUG Mode ON | 0.19 : 0.22 : 0.24 | Uncached Templates: None

I've elected not to display Active Users, Memory Usage, and GZIP Level.

I am also running vBSEO without any conflicts.

Explain is also working fine.

tonyzhou
12-25-2007, 09:25 AM
This mod will not work if you have VBAdvanced page integration (ie. sidebar for forumdisplay). You can fix it simply by changing vBMicroStats' plugin executionorder to 10 at the manage plugin page.

Oblivion Knight
12-26-2007, 11:24 AM
Worked fine out of the box for me on 3.6.8 PL2, apart from changing the maxversion number on the .xml file..

Harley D
01-02-2008, 10:24 AM
Worked fine out of the box for me on 3.6.8 PL2, apart from changing the maxversion number on the .xml file..

Also works for me "3.6.8 PL2" with the above edit. :up:

TECK
01-04-2008, 03:50 AM
Now it is working with charms... :D
I just edit my /forum/include/config.php
add at the bottom $config['Misc']['debug'] = 1;

You should use a boolean value instead:
$config['Misc']['debug'] = false;
That means the debug mode is disabled. To enable it, use:
$config['Misc']['debug'] = true;

Boofo
01-23-2008, 04:10 AM
Does this work out of the box with 3.7.0 beta 4, sir? ;)

EDIT: It works fine with the new version. Just installed it and everything is working. Thank you, sir. ;)

I just noticed this when turning on DEBUG mode. The debug box at the bottom shows this:

Page Generation 0.32953 seconds
Memory Usage 5,799KB

Microstats shows this:

Page generated in 0.33539891 seconds
6,031.72KB Used

Shouldn't they be the same?

TECK
01-27-2008, 03:28 PM
No, Bobby. My stats actually take into account all the hidden processes that run into vBulletin, also.
Good to see you here again, my good friend.

haytham
01-29-2008, 06:08 PM
I installed on 3.6.8 but nothing shows at the bottom of any page????

haytham
01-29-2008, 06:12 PM
Sorry. I had turned it on in VB options but not as a product. Working now. Can anyone tell me if this is good or bad:
Page generated in 0.34007096 seconds (83.96% PHP - 16.04% MySQL) with 43 queries

Boofo
01-31-2008, 11:36 AM
A lot of queries but not as bad as it could be. ;)

@TECK - Thank you, sir. It's been a while. ;)