
Originally Posted by
chuckroast
I haven't tried this but you can try adding the following to edit_link_center.tpl
Code:
{if $enable_group && $output neq ''}
<label>{#PLIGG_Visual_Group_Submit_story#}: </label><br/>
{$output}
<br/><br/> 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....
Code:
//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");
if ($group_membered)
{
$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>";
}
$main_smarty->assign('output', $output);
} With this the "submit to group" drop down works and I can select exsisting groups but for some reason it doesn't save it.
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.