vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   VB3 MicroStats (https://vborg.vbsupport.ru/showthread.php?t=62173)

PitchouneN64ngc 03-05-2004 10:50 AM

Thanks for this great hack, it's useful :)

But when you have the quick style chooser enabled, your hack deforms a little bit the footer.

For repair this, you must to do these modifications into ./includes/functions.php:

Quote:

$ms .= ' <td class="tcat"><div class="smallfont">';
Quote:

$ms .= ' <td class="tcat" colspan="2"><div class="smallfont">';
And:

Quote:

$ms .= ' <td class="alt1"><div class="smallfont">';
Quote:

$ms .= ' <td class="alt1" colspan="2"><div class="smallfont">';
And all is correct ;)

TECK 03-05-2004 11:19 AM

Thanks for mentioning, PitchouneN64ngc. I uploaded a new file with the fix.
Now is done automatically, so if you ever disable that option, you don't have to edit the code... ;)

TheComputerGuy 03-05-2004 11:58 AM

awesome hack. Installing in a bout 5 minutes ;)

djohn 03-05-2004 11:58 AM

I get a parse error when i go to the Template manager:
Quote:

Parse error: parse error in /home/site/public_html/board/includes/functions.php on line 2463

Fatal error: Call to undefined function: exec_nocache_headers() in /home/site/public_html/board/admincp/global.php on line 37

Boofo 03-05-2004 12:38 PM

I don't see the server load with this installed. It isn't in your screenshot either. ;)

Red Blaze 03-05-2004 01:13 PM

<a href="https://vborg.vbsupport.ru/showthread.php?t=59700" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=59700</a>

Doesn't that do pretty much the same thing? Only admins can see Erwin's version though. But I think that can be changed.

PitchouneN64ngc 03-05-2004 01:25 PM

Quote:

Originally Posted by djohn
I get a parse error when i go to the Template manager:

Have you edited your functions.php file with Dreamweaver?

TECK 03-05-2004 02:14 PM

Quote:

Originally Posted by Sonikku
https://vborg.vbsupport.ru/showthread.php?t=59700

Doesn't that do pretty much the same thing? Only admins can see Erwin's version though. But I think that can be changed.

Unfortunatelly, it does not do the same thing.
Erwin knows the difference:
Quote:

Originally Posted by Erwin
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.

Quote:

Originally Posted by Boofo
I don't see the server load with this installed. It isn't in your screenshot either. ;)

You need to have enabled the exec('uptime') in your server, in order to see the average server loads.
Contact your host for more details.
I know that Windows has no uptime binary, that could be executed with exec functions. Only Unix does this.

Boofo 03-05-2004 02:40 PM

I got it working. ;)

I had to change this:
PHP Code:

if (preg_match("/averages?: ([0-9\.]+), [\s]+([0-9\.]+), [\s]+([0-9\.]+)/"$stats$regs)) 

to this:

PHP Code:

preg_match("/averages?: ([0-9\.]+), [\s]+([0-9\.]+), [\s]+([0-9\.]+)/"$stats$regs); 

For some reason there was an if in that line. I know I have exec('uptime') enabled on the server because it was working fine before. And after taking the if out, it works fine now again. Thank you, Teck, for converting this to vB3. ;) I added a couple of things to mine, in case anyone wants to see it. ;)

TECK 03-05-2004 03:09 PM

The IF should not change anything, except avoid proccesing any not needed functions, while increasing performance.
Do you run a UNIX box? Also, something is wrong there with your server. You cannot have 0 for all average loads, or make it work on Windows, from what I know (if anyone knows a way, please let me know, since I'm not good at server configuration ;)).

Leave the code as it is (that's why you get zero's)... and check with your host.
Let us all know the results.

Cheers.


All times are GMT. The time now is 12:01 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.02472 seconds
  • Memory Usage 1,748KB
  • 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
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

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

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