OH YES ! it works like a charm
i ask for this because it's useful :
1) to users who want to make their own template
2) to understand why a tag works (or not
debug) and how it works...
3) to optimize code for developpers...
So, to show all existing tags only when you want to debug (actually while displaying queries
you can activate it in
includes/constants.php ) , here is the code that i put in
includes/page_footer.php to make it works on all pages, just after :
if (defined("PRINT_QUERIES") && PRINT_QUERIES == 1) {
echo implode('<br><br>', $site_db->query_array);
add :
$i = 0;
printf("%s","\n<center><table border='0' width='75%' class='bordertable'><tr><td class='head1'><table border='0' cellspacing='1' cellpadding='3'><tr><td align='center' valign='middle' class='head1'> # </td><td class='head1' align='center' valign='middle'> key </td><td class='head1' align='center' valign='middle'> value </td></tr>");
foreach($site_template->val_cache as $key => $value) {
$row_bg_number = ($i++ % 2 == 0) ? 1 : 2;
printf("%s","<tr class=\"imagerow".$row_bg_number."\"><td align='center' valign='middle'> ".$i." </td><td align='center' valign='middle'> ");
printf("{%s}", $key);
printf("%s"," </td><td align='center' valign='middle'> ".$value." </td></tr>");
}
printf("%s","</table></td></tr></table></center>\n");
Thank you very much IcEcReaM for your quick help!
Best regards.