I want to create a custom block on the index.php that only shows up if there are unread or open Reported Posts or PMs.
How do I go about creating a switch on that checks if there are any open reported items?
I presume i have to declare something like this in the index.php file?
Code: Select all
$template->assign_vars(array(
'MCP_REPORTS' => ... function to check that returns true,
));
Code: Select all
<!-- IF MCP_REPORTS and U_IN_MCP -->
<div class="mcp_alert">There are new Reported Files</div>
<-- ENDIF -->
and use something like the code in the mcp.php file to get the data, or is there a faster way to check if there are any unread or open reported items?
Code: Select all
/**
* Get simple post data
*/
function get_post_data($post_ids, $acl_list = false, $read_tracking = false) {
...
}
Any help would b