![]() |
Quote:
|
Quote:
|
$debughtml .= "\n<form name=\"debugger\" action=\"\">\n<div align=\"center\">\n<!--querycount-->Executed <b>$query_count</b> queries<!--/querycount-->" . iif($_TEMPLATEQUERIES, " (<b>" . sizeof($_TEMPLATEQUERIES) . "</b> queries for uncached templates)", '') . " . ";
$debughtml .= " (<a href=\"" . htmlspecialchars_uni(SCRIPTPATH) . iif(strpos(SCRIPTPATH, '?') '?')'?')'?')'?')'?')'?')'?')=== false, '?', '?','?','?','?','?','?','?','&') . "tempusage=1\">Template Usage</a>) (<a href=\"" . htmlspecialchars_uni(SCRIPTPATH) . iif(strpos(SCRIPTPATH, '?') '?')'?')'?')'?')'?')'?')'?')=== false, '?', '?','?','?','?','?','?','?','&') . "explain=1\">Explain</a>)<br />\n"; $debughtml .= "<select>\n\t<option>(Page Generated in $totaltime Seconds)</option>\n$messages</select>\n"; if (is_array($tempusagecache)) { global $vbcollapse; $debughtml .= "\n<br /><br />\n<table class=\"tborder\" cellpadding=\"3\" cellspacing=\"1\" align=\"center\" width=\"40%\">\n"; $debughtml .= "<thead><tr align=\"$stylevar[left]\"><td class=\"thead\"><a style=\"float:$stylevar[right]\" href=\"#\" onclick=\"return toggle_collapse('templateusage')\"><img src=\"$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_templateusage].gif\" alt=\"\" border=\"0\" /></a>Template Usage</td></tr></thead><tbody id=\"collapseobj_templateusage\" style=\"$vbcollapse[collapseobj_templateusage]\">\n"; $hiddentemps = ''; ksort($tempusagecache); foreach ($tempusagecache AS $tempname => $times) { $debughtml .= "<tr><td class=\"alt1\" align=\"$stylevar[left]\"><span class=\"smallfont\">" . iif($_TEMPLATEQUERIES["$tempname"], "<font color=\"red\"><b>$tempname</b></font>", $tempname) . " ($times)</span></td></tr>\n"; $hiddentemps .= "'$tempname',\n"; // this is only for vbulletin.com $countsql .= "\tWHEN '" . addslashes($tempname) . "' THEN usecount + $times\n"; $namesql .= ", '" . addslashes($tempname) . "'"; } |
any updates planned soon? :) or version updates with fixes in the last few posts?
|
OK, I've solved the problem that I had in post 889. If you look at the code on the page you will see there was a comma missing at the end of the list of items, i.e. 'stylecache', 'utt_store_act', etc.
The code below shows the correction: PHP Code:
|
Quote:
|
Sabret00the - thx. for your input - it pointed me in the right direction :).
|
Installed successfully now. Working fine on 3.0.1.
Nice work GeekyDesigns :). /me clicks INSTALL. |
Quote:
|
Flow Fushion - he means go back to your post where you pasted all that code and put [ PHP ] at the front of it and [ /PHP ] at the end of it. This makes the code more visible.
Make sure you take out the spaces before and after the [ and ] above. |
All times are GMT. The time now is 04:52 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|