2010-03-19, 05:14 PM
I posted this in the Discussion section but think I can get a better answer here
I just cant get the template to read my plugin file
I created:
and then a function called:
But when I put {$userbarplugin} into the usercp template nothing happens Am i missing something?
I just cant get the template to read my plugin file
I created:
$plugins->add_hook("usercp_menu", "userbarplugin");
and then a function called:
function userbarplugin()
{
global $mybb, $db, $sotw, $theme, $lang;
$userbarplugin = '<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" class=\"tborder2\"><tr><td class=\"thead\" colspan=\"{$colspan}\"><div class=\"theadleft\"></div><div class=\"theadright\"></div><div class=\"theadmain\"><strong>Userbar URL:</strong></div></td></tr></table><table border=\"0\" cellspacing=\"{$theme[\'borderwidth\']}\" cellpadding=\"{$theme[\'tablespace\']}\" class=\"tborder\"><tr><td class=\"trow1\" width=\"40%\"><strong>Here is your Userbar URL:</strong></td><td class=\"trow1\" width=\"60%\"><a href=\"{$mybb->settings[\'bburl\']}/userbar.php?uid={$mybb->user[\'uid\']}\">{$mybb->settings[\'bburl\']}/userbar.php?uid={$mybb->user[\'uid\'\"\"]}</a></td></tr></table><br>{$latest_warnings}';
}
But when I put {$userbarplugin} into the usercp template nothing happens Am i missing something?