vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Microstats - load times, server loads, queries, uncached templates (https://vborg.vbsupport.ru/showthread.php?t=82900)

Rabbitoh Warren 10-15-2005 08:36 AM

Quote:

Originally Posted by Oblivion Knight
Here you go, sir. One product, packaged and tested.. :)

I upped the version number to 1.3.0, hope you don't mind.
Also, I changed the replacement variable stuff slightly as vBulletin doesn't seem to like html comments as a default value for a setting.

Is it just a matter of uploading the product file to complete installation? Because I just did that and no stats are appearing on my forum.

Oblivion Knight 10-15-2005 08:46 AM

Quote:

Originally Posted by Rabbitoh Warren
Is it just a matter of uploading the product file to complete installation? Because I just did that and no stats are appearing on my forum.

As mentioned in the setting, you should place the replacement variable in your footer template.. :)

So if you're using the default setup, just put %microstats% after the copyright stuff.

ForYou 10-15-2005 11:28 PM

Hello ,

when i install the hack ,

it's look like in main page ,

Page generated in 4.64159 seconds with 22 queries (1 queries for uncached templates) [Server Loads: 0.94 0.65 : 0.65]
Uncached templates: forumhome_latestthreadbit (10)

is this correct

Moparx 10-15-2005 11:57 PM

its working fine. you need to fix the uncached template you have

Rabbitoh Warren 10-17-2005 01:26 PM

Quote:

Originally Posted by Oblivion Knight
So if you're using the default setup, just put %microstats% after the copyright stuff.

Yep, did that and it's working. I as admin can see the stats but my normal users only see the text %microstats%. Any idea how I can fix that?

Oblivion Knight 10-17-2005 02:07 PM

Quote:

Originally Posted by Rabbitoh Warren
Yep, did that and it's working. I as admin can see the stats but my normal users only see the text %microstats%. Any idea how I can fix that?

Interesting.. I'll have to look into that one tonight.


Edit: Fixed.

Sorry about the inconvenience, the attachment has been updated to 1.3.1 and you should just be able to overwrite it via the Product Manager.. :)

eoc_Jason 10-17-2005 02:40 PM

Here's one that I made based on the 3.0.x MS hack. I liked how it used the drop-down box style for the cached / uncached templates. Just thought I would share incase someone wanted the older style too. I hard-coded it to use {ms} as the replacement variable, but you can set it to whatever you want quite easily.

Oblivion Knight 10-17-2005 02:47 PM

Thanks Jason, I'll have a play around with this later - I prefer TECK's layout too.

Joshua5692 10-21-2005 11:03 PM

This was by far the easiest plug and play add on I have put in yet!

Thanks ShiningArcanine for all your efforts. I installed on 3.5.0 and it is flawless and exactly as described. I do have a question though.

We have a few select members with dual identities, and the fact that they are an administrator is hidden from the public. Their primary group is just a public group. Is there anyway at all that we can allow the administrators who are not in the Admin group as their primary? I am not asking you to modify your release, it is great. But if you could just point me into the right line of code?

ShiningArcanine 10-21-2005 11:39 PM

Quote:

Originally Posted by Joshua5692
This was by far the easiest plug and play add on I have put in yet!

Thanks ShiningArcanine for all your efforts. I installed on 3.5.0 and it is flawless and exactly as described. I do have a question though.

We have a few select members with dual identities, and the fact that they are an administrator is hidden from the public. Their primary group is just a public group. Is there anyway at all that we can allow the administrators who are not in the Admin group as their primary? I am not asking you to modify your release, it is great. But if you could just point me into the right line of code?

I actually did contemplate this when I wrote 1.2.x but I decided against doing it at the time because I didn't want to have so much complexity that the plugin would become bloated. You'll want to find the following line:

PHP Code:

if (($vbulletin->config['Microstats']['adminonly'] and $vbulletin->userinfo['usergroupid'] == 6) or !$vbulletin->config['Microstats']['adminonly']){ 

And change it to

PHP Code:

if (($vbulletin->config['Microstats']['adminonly'] and ($vbulletin->userinfo['usergroupid'] == or $vbulletin->userinfo['usergroupid'] == *)) or !$vbulletin->config['Microstats']['adminonly']){ 

Changing * to the usergroup id.


All times are GMT. The time now is 11:01 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01471 seconds
  • Memory Usage 1,750KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete