2012-01-21, 05:21 PM
I presume there is a way to do this
Anyone know? I'd rather not edit core files
My code ATM:
Also, this is in ./faqs.php not an actual plugin So i did
Anyone know? I'd rather not edit core files
My code ATM:
global $mybb, $theme, $plugins;
add_breadcrumb("FAQs","faqs.php");
$plugins->add_hook("build_friendly_wol_location_end", "faqs_build_online_link");
//tell MyBB where we are:
function faqs_build_online_link(&$plugin_array)
{
if (preg_match('/faqs\.php/',$plugin_array['user_activity']['location']))
{
$plugin_array['location_name'] = "Viewing <a href=\"faqs.php\">FAQs</a>";
}
return $plugin_array;
}
Also, this is in ./faqs.php not an actual plugin So i did