Activity Stream
48,167 MEMBERS
6342 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 4 of 4
  1.     
    #1
    Member

    Default Mini Micro Debug for Vbulletin?

    Hello everyone, if you go to the left bottom of the page of this forum http://filesharingtalk.com/forum.php

    you will see the queries number and execution time, how to enable just those 2 numbers in footer.

    i know about $config['Misc']['debug'] = 1; in config.php but it's too explicit for public.

    any idea?
    danswano Reviewed by danswano on . Mini Micro Debug for Vbulletin? Hello everyone, if you go to the left bottom of the page of this forum http://filesharingtalk.com/forum.php you will see the queries number and execution time, how to enable just those 2 numbers in footer. i know about $config = 1; in config.php but it's too explicit for public. any idea? :) Rating: 5

  2.   Sponsored Links

  3.     
    #2
    mmm mmm!
    Moved to vBulletin.
    HATERS GONNA probably bring up some valid points considering I am an ignorant little twat so far up my own ass that i blame my problems on everyone and if you criticize me you're automatically wrong.

  4.     
    #3
    Respected Member
    Website's:
    GraffThe.Net MCSkatty.com MCSkatty.co.uk MCSkatty.net MCSkatty.org MCSkatty.info
    AdminCP > Plugins & Products > Add New Plugin ...

    Hook Location
    global_start

    Title
    Microstats

    Execution Order
    5

    Plugin PHP Code
    Code: 
    <?xml version="1.0" encoding="ISO-8859-1"?>
    
    <plugins>
        <plugin active="1" executionorder="5" product="vbulletin">
            <title>Microstats</title>
            <hookname>global_start</hookname>
            <phpcode><![CDATA[// Microstats 1.2.1 Plugin 
    
    $pageendtime = microtime(); 
    $starttime = explode(' ', $pagestarttime); 
    $endtime = explode(' ', $pageendtime); 
    $totaltime = vb_number_format($endtime[0] - $starttime[0] + $endtime[1] - $starttime[1], 5); 
    $debughtml = '<div style="padding-right: 20px;" align="right"><img src="/images/stat_time.gif" border="0" style="vertical-align:middle" alt="" /> ' . $totaltime . ' sec 
    &nbsp;&nbsp;<img src="/images/stat_sql.gif" border="0" style="vertical-align:middle" alt="" /> ' . $vbulletin->db->querycount . ' queries 
    &nbsp;&nbsp;<img src="/images/stat_gzip.gif" border="0" style="vertical-align:middle" alt="" /> GZIP Enabled</div>'; 
    
    $debughtml .= ""; 
    
    if (!$vbulletin->config['Microstats']['replacementvariable']) { 
    
        $vbulletin->config['Microstats']['replacementvariable'] = '<!-- /content area table -->'; 
    
    } 
    
    if (($vbulletin->config['Microstats']['adminonly'] and $vbulletin->userinfo['usergroupid'] == 11) or !$vbulletin->config['Microstats']['adminonly']){ 
    
        $output = str_replace($vbulletin->config['Microstats']['replacementvariable'], $debughtml . $vbulletin->config['Microstats']['replacementvariable'], $output); 
    
    } 
    
    // Microstats 1.2.1 Plugin]]></phpcode>
        </plugin>
    </plugins>


    Plugin is Active

    Yes.

    Then upload your images

    /images/stat_time.gif
    /images/stat_sql.gif
    /images/stat_gzip.gif
    GraffThe.Net - The #1 Graffiti Download Site.



  5.     
    #4
    Member
    Parse error: syntax error, unexpected '<' in /home/user/public_html/forum/global.php(29) : eval()'d code on line 18

    Note that i want it for VB4

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. New interesting micro job site found!
    By dfguy in forum Useful Sites
    Replies: 2
    Last Post: 26th Jul 2012, 09:58 PM
  2. Micro Payment sms?
    By Pafate in forum Webmasters, Money Making
    Replies: 6
    Last Post: 21st May 2012, 10:03 PM
  3. [Selling] GigsBonus.com - Micro Job Sites
    By edwinteguh in forum Completed Transactions
    Replies: 2
    Last Post: 17th Dec 2011, 01:38 AM
  4. [For Hire] Micro Niche Site
    By cl0n3 in forum Completed Transactions
    Replies: 0
    Last Post: 29th Oct 2011, 02:51 AM
  5. [PS3] 3.50, 3.55, 3.56, and 3.60 Official Debug Firmwares Leaked
    By Drinkordie in forum General Discussion
    Replies: 1
    Last Post: 29th Jun 2011, 11:14 PM

Tags for this Thread

BE SOCIAL