getting close. Those hooks work. I have put the above code in editlink_edit_center.tpl and also placed the below code in editlink.php....
Originally Posted by chuckroast
With this the "submit to group" drop down works and I can select exsisting groups but for some reason it doesn't save it.
//to display group drop down
if(enable_group == "true")
$output = '';
$group_membered = $db->get_results("SELECT group_id,group_name FROM " . table_groups . "
LEFT JOIN ".table_group_member." ON member_group_id=group_id
WHERE member_user_id = $current_user->user_id AND group_status = 'Enable' AND member_status='active'
ORDER BY group_name ASC");
$output .= "<select name='link_group_id'>";
$output .= "<option value = ''>".$main_smarty->get_config_vars('PLIGG_Visual_Group_Select_Group')."</option>";
foreach($group_membered as $results)
$output .= "<option value = ".$results->group_id. ($linkres->link_group_id ? ' selected' : '') . ">".$results->group_name."</option>";
$output .= "</select>";
Also they do have the "group share" button on the link summary page which I just noticed. But this as well lists the current groups and lets me select one but doesn't save the story to the group. It just brings me to the group page.