vb.org Archive

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

TECK 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

Quote:

Originally Posted by thincom2000 (Post 1193888)
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

Quote:

Originally Posted by thincom2000 (Post 1193888)
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

Quote:

Originally Posted by cashpath (Post 1195526)
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

Quote:

Originally Posted by ManagerJosh (Post 1195379)
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

Quote:

Originally Posted by ManagerJosh (Post 1196056)
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.

Quote:

Originally Posted by Smoothie (Post 1195785)
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

Quote:

Originally Posted by Lizard King (Post 1198054)
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

Quote:

Originally Posted by Xplorer4x4 (Post 1198066)
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

Quote:

Originally Posted by Lizard King (Post 1198084)
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):
[sql]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%';[/sql]

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):
[sql]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%';[/sql]
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

Quote:

Originally Posted by TECK (Post 1198214)
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

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

TECK 03-07-2007 06:48 PM

Quote:

Originally Posted by Xplorer4x4 (Post 1198228)
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

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

Quote:

Originally Posted by TECK (Post 1198230)
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

Quote:

Originally Posted by TECK (Post 1198238)
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::
PHP Code:

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:

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

Xplorer4x4 03-07-2007 07:39 PM

Quote:

Originally Posted by TECK (Post 1198260)
Ok, we will force it to turn OFF.
Run this query:

[sql]UPDATE `setting` SET `value` = '0' WHERE `varname` = 'enablehooks';[/sql]
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

Quote:

Originally Posted by Lizard King (Post 1198335)
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. :)


All times are GMT. The time now is 12:53 PM.

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

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01493 seconds
  • Memory Usage 1,853KB
  • 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
  • (1)bbcode_php_printable
  • (15)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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