Hacks

Page timer & MySQL counter

brash  17-Nov-2004 11:37 11463 Reads   20 Comment(s) 


1) upload insert.showstat.php file to your /class/smarty/plugins directory from your Xoops root folder.

2) Go into your Xoops control panel, and goto System Admin->Preferences Main->General Settings and set the "Update module template .html files from themes/your theme/templates directory?" to yes.

3) Insert the "<{insert name='showstat'}>" minus the "" into your theme.html file and view your homepage (you should see something like "0.432 Seconds | 46 Queries" printed at the base of your page).

4) Go into your Xoops control panel, and goto System Admin->Preferences Main->General Settings and set the "Update module template .html files from themes/your theme/templates directory?" to no.

5) Set all your block and caching options to suit your site, and this smarty plugin should now display the execution time and MySQL query count generated for producing every page.
« 1 (2)
Rating 0/5
Rating: 0/5 (0 votes)
Voting is disabled!


Login

Who's Online

149 user(s) are online (3 user(s) are browsing Publisher)


Members: 0


Guests: 149


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits

Categories