Hacks

Page timer & MySQL counter for Xoops 2.2.x

brash  10-Aug-2005 13:49 4965 Reads   No comments 
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 and themeadmin.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.
Rating 0/5
Rating: 0/5 (0 votes)
Voting is disabled!


Login

Who's Online

328 user(s) are online (21 user(s) are browsing Publisher)


Members: 0


Guests: 328


more...

Donat-O-Meter

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

Latest GitHub Commits

Categories