2009-02-18, 12:46 AM
Hi guys
I've almost finished a plugin I've been working on for a while and have hit a brick wall when it comes to adding stuff to the UserCP
Basically I want to put another table below the "Brief Account Summary" table.
I can do this by manually editing the usercp template, but thats the last thing I want to do. So, just in the back of my head, I'm thinking of something along these lines:: (not exact, but you get the idea)
Anybody have any ideas??
[attachment=12818]
I've almost finished a plugin I've been working on for a while and have hit a brick wall when it comes to adding stuff to the UserCP
Basically I want to put another table below the "Brief Account Summary" table.
I can do this by manually editing the usercp template, but thats the last thing I want to do. So, just in the back of my head, I'm thinking of something along these lines:: (not exact, but you get the idea)
function my_stuff($page, $my_file)
{
ob_start();
$my_file= include("my_directory/my_file.php");
$my_file= ob_get_contents();
ob_end_clean();
$page = str_replace("reputation}</table>", "reputation}</table>$my_file", $page);
return $page;
}
I've done this before, and it works perfectly for the "pre_output_page" hook, but I'm at a complete loss as to how to get this one hooked into the UserCP.Anybody have any ideas??
[attachment=12818]