2020-05-08, 03:22 AM
How to modify plugin variable like username with my custom plugin ?!
I'm trying to create plugin to add icon next username in each place in forum but I can't know how to make it edit username in Shoutbox or TopStats plugin for example
I saw it in many forums :
this the hook :
and my function :
I'm trying to create plugin to add icon next username in each place in forum but I can't know how to make it edit username in Shoutbox or TopStats plugin for example
I saw it in many forums :
this the hook :
$plugins->add_hook("global_start", "IconInTop");
and my function :
function IconInTop()
{
global $db, $mybb, $plugins, $templatelist, $topStats;
$tpl['profilelink'] = "BlaBla";
return $tpl['profilelink'];
}