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)
-   -   vBMicrostats (https://vborg.vbsupport.ru/showthread.php?t=116027)

TECK 05-19-2006 03:44 AM

Your request is simple to fill. :)

There is a template, hidden in the plugin code. It's the best/fastest way to load it, plus it does eliminate other extra code modifications in files.
All you have to do is edit the following code, present in your vBMicroStats Global Hook plugin:
Code:

        $ms_output  = '<tr align="' . $stylevar['right'] . '">' . "\n";
        $ms_output .= '        <td class="tcat"' . iif($show['quickchooser'] OR $show['languagechooser'], ' colspan="' . $colspan . '"') . '>' . "\n";
        $ms_output .= '                <span class="smallfont">Page generated in ' . $total_time . ' seconds (' . $php_percent . ' - ' . $sql_percent . ') with ' . $query_count . ' queries</span>' . "\n";
        $ms_output .= '        </td>' . "\n";
        $ms_output .= '</tr>' . "\n";

        [... more code here, don't edit ...]

                $ms_output .= '<tr align="' . $stylevar['right'] . '">' . "\n";
                $ms_output .= '        <td class="alt1"' . iif($show['quickchooser'] OR $show['languagechooser'], ' colspan="' . $colspan . '"') . '>' . "\n";
                $ms_output .= '                <span class="smallfont">' . $memory_status . $debug_status . $gzip_status . $server_status . $templates_status . '</span>' . "\n";
                $ms_output .= '        </td>' . "\n";
                $ms_output .= '</tr>' . "\n";

That's what makes the table rows you saw in my screenshots.
The first code segment will set the regular user options, the second will take care of the administrator ones.
If you edit this html code the way you like it, you will obtain the result you want.

BTW, you can place the code:
Code:

<if condition="$show['microstats']">{microstats}</if>
anywhere you want, in your templates. :)

EDIT: The best way to edit the plugin code is to copy it all and paste it into your favorite editor.
Do all html changes, then paste it back and save it.

TECK 05-19-2006 03:47 AM

Quote:

Originally Posted by firstimecaller
hmmm. all code mods installed, double checked, template modified, enabled, shows up on page, but no value for time displayed

My bad, little typo in the code. :)
Open the vBMicroStats Global Hook plugin and find this code:
Code:

Page generated in ' . $totaltime . ' seconds
Replace it with:
Code:

Page generated in ' . $total_time . ' seconds
Sorry guys. I will upload the new version in a few moments...

firstimecaller 05-19-2006 03:56 AM

Thanks for sharing this TECK!

TECK 05-19-2006 04:00 AM

Version 1.0.1 released. Bug fixed.
You can uninstall/install the plugin if you like, instead of editing the code.

Boofo 05-19-2006 04:08 AM

I'm nor seeing anything for some reason. I dounble checked everything but nothing shows up. And it is all turned on.

EDIT: My fault. I added it to the wrong skin. Sorry. ;)

Boofo 05-19-2006 04:30 AM

Teck, is there any way to edit the html code for this so that it will make sense to us html dummies? I can't get it looking right on my site and I'm not sure what to do to fix it.

TECK 05-19-2006 04:31 AM

Sure, Bobby. :)
I will post an example here... in few minutes.

Boofo 05-19-2006 04:33 AM

Quote:

Originally Posted by TECK
Sure, Bobby. :)
I will post an example here... in few minutes.

Now that's what I call service. Thank you, sir. ;)

Here's my site URL so you can see my problem:

Fathers' Rights Forums

DementedMindz 05-19-2006 04:38 AM

yeah im playin with it to but im going crazy lol i have it where it centers the text but not the table... or i try and remove the table and the text goes poof

DementedMindz 05-19-2006 04:40 AM

also i see you have..
$ms_output = '<tr align="' . $stylevar['center'] . '">' . "\n";

now if i make it $ms_output = '<tr align="center">' . "\n"; is there any down fall? cause that makes it 100% html complaint... there is 2 spots where that is...


All times are GMT. The time now is 02:08 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.01092 seconds
  • Memory Usage 1,740KB
  • 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
  • (4)bbcode_code_printable
  • (2)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