2015-08-15, 09:19 PM
2015-08-16, 08:27 AM
I do not think this exists. You could create one by adding the code below to the appropriate php script (depending where you want to use it) before the relevant template is evaluated:
The variable $repcount is then what you are looking for, I presume.
$query = $db->simple_select("reportedcontent", "COUNT(rid) AS reports", "type = 'post');
$repcount = $db->fetch_field($query, "reports");
The variable $repcount is then what you are looking for, I presume.
2021-01-13, 06:24 PM
(2015-08-16, 08:27 AM)Ad Bakker Wrote: [ -> ]I do not think this exists. You could create one by adding the code below to the appropriate php script (depending where you want to use it) before the relevant template is evaluated:
$query = $db->simple_select("reportedcontent", "COUNT(rid) AS reports", "type = 'post'); $repcount = $db->fetch_field($query, "reports");
The variable $repcount is then what you are looking for, I presume.
Seems this is what im looking for but I can't seem to get it to work?
I want it to be included on the members_profile template, that's it so I''ve tried adding the above code to members.php but it stops the entire board from loading.