Results 1 to 4 of 4
-
17th May 2011, 09:12 PM #1OPMember
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
-
18th May 2011, 09:03 AM #2mmm 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.
-
18th May 2011, 09:16 AM #3Respected MemberWebsite's:
GraffThe.Net MCSkatty.com MCSkatty.co.uk MCSkatty.net MCSkatty.org MCSkatty.infoAdminCP > 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 <img src="/images/stat_sql.gif" border="0" style="vertical-align:middle" alt="" /> ' . $vbulletin->db->querycount . ' queries <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
-
18th May 2011, 12:14 PM #4OPMember
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
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
New interesting micro job site found!
By dfguy in forum Useful SitesReplies: 2Last Post: 26th Jul 2012, 09:58 PM -
Micro Payment sms?
By Pafate in forum Webmasters, Money MakingReplies: 6Last Post: 21st May 2012, 10:03 PM -
[Selling] GigsBonus.com - Micro Job Sites
By edwinteguh in forum Completed TransactionsReplies: 2Last Post: 17th Dec 2011, 01:38 AM -
[For Hire] Micro Niche Site
By cl0n3 in forum Completed TransactionsReplies: 0Last Post: 29th Oct 2011, 02:51 AM -
[PS3] 3.50, 3.55, 3.56, and 3.60 Official Debug Firmwares Leaked
By Drinkordie in forum General DiscussionReplies: 1Last Post: 29th Jun 2011, 11:14 PM
themaManager - edit and manage...
Version 4.17 released. Open older version (or...