can I bump this?
I don't understand why it doesn't work.
If you want my whole plugin ask for it and I'll upload it.
Edit:
Here's the part to display stand-alone links
PHP Code:
$getsinglelinks = $db->query_read("SELECT * FROM " . TABLE_PREFIX . "custom_singlelinks WHERE linkid");
while($slink = $db->fetch_array($getsinglelinks))
{
if($slink['new_window'] == 1)
{
$new = "_blank";
}
else
{
$new = "";
}
if(!empty($slink['image']))
{
$img = "<img src='".$slink['image']."' width='16' height='16' />";
}
else
{
$img = "";
}
$usergroup = array($slink['member_of']);
$array = implode(",", $usergroup);
$custom_singlelinks .= "<if condition='is_member_of($bbuserinfo, array($array))'><td class='vbmenu_control'>$img<a href='".$slink['url']."' target='$new' title='".$slink['alt']."'>".$slink['name']."</a></td></if>";
eval('$custom_singlelinks = "' . fetch_template('custom_singlelinks') . '";');
}