2010-08-17, 10:41 PM
I am trying to make a plugin, that puts a linkable image onto a page, that only certain usergroups can see.
I have {$link} in the template.
I dont know what to put into the plugin to replace the {$link} with a actual link. Ive tried,
Anyone know what to do? Please help!
I have {$link} in the template.
I dont know what to put into the plugin to replace the {$link} with a actual link. Ive tried,
function link(){
if(!in_array($mybb->user['usergroup'], array('3','4',)))
{
$link = "";
}else{
$link = "www.link.com";
}
}
Anyone know what to do? Please help!