Boonex, the creators of Dolphin web site software. It is by far, one of the best platforms to build your community web service with. Customizing your Dolphin web site takes experience, or the support from someone who knows this Boonex product.
I am known as Dadniel at Boonex's sister site - Expertzzz, one of the top 6 contributors to the Dolphin platform. My custom modifications are ranked high with recommendations from almost every client.
When you need to learn something, or need some help modifying this best-of-breed community site software, check out my blog.
Find:::
switch( $action )
{
After it paste:::
case ‘delete’:
$_page['header'] = _t( “_Group Delete” );
$_page['header_text'] = _t( “_Group Delete” );
$oGroups->deleteGroupNow( $groupID );
$_page_cont[$_ni]['page_main_code'] = MsgBox(_t( “_You have successfully deleted the group” ));
break;
Replace the function PCGroupActions with
function PCGroupActions($aGroupInfo, $iGroupID, $iMemberID) {
global $site;
global $logged;
$sRetHtml = ”;
if ( $logged['member'] ) {
if ( $this->isGroupMember( $iMemberID, $iGroupID, false ) ) {
if ( $this->isGroupMember( $iMemberID, $iGroupID ) ) { //if Active member
if( (int)$aGroupInfo['members_invite'] or $aGroupInfo['creatorID'] == $iMemberID )
$sRetHtml .= $this->genGroupActionBtn( ‘Invite others’, “group_actions.php?a=invite&ID={$iGroupID}” );
if( (int)$aGroupInfo['members_post_images'] or $aGroupInfo['creatorID'] == $iMemberID )
$sRetHtml .= $this->genGroupActionBtn( ‘Upload image’, “group_actions.php?a=upload&ID={$iGroupID}” );
//$sRetHtml .= $this->genGroupActionBtn( ‘Post topic’, “{$this->sSubGrpPath}orca/?action=goto&forum_id={$iGroupID}#action=goto&new_topic={$iGroupID}” );
$sForumUri = db_value(”SELECT `forum_uri` FROM `grp_forum` WHERE `forum_id` = ‘{$iGroupID}’ LIMIT 1″);
$sRetHtml .= $this->genGroupActionBtn( ‘Post topic’, “groups/orca/forum/{$sForumUri}-0.htm#action=goto&new_topic={$sForumUri}” );
}
if ( $aGroupInfo['creatorID'] == $iMemberID ){
$sRetHtml .= $this->genGroupActionBtn( ‘Edit group’, “{$this->sCurrFile}?action=edit&ID={$iGroupID}” );
$sRetHtml .= $this->genGroupActionBtn( ‘Delete Group’, “group_actions.php?a=delete&ID={$iGroupID}”, true );
}
else{
$sRetHtml .= $this->genGroupActionBtn( ‘Resign group’, “group_actions.php?a=resign&ID={$iGroupID}”, true );
}
} else
$sRetHtml .= $this->genGroupActionBtn( ‘Join group’, “group_actions.php?a=join&ID={$iGroupID}”, true );
}
return $sRetHtml;
}
Find::
function resignGroupMember( $iMemberID, $iGroupID ) {
db_res( “DELETE FROM `GroupsMembers` WHERE `memberID`={$iMemberID} AND `groupID`={$iGroupID}” );
}
After it paste:
function deleteGroupNow( $iGroupID ) {
db_res( “DELETE FROM `Groups` WHERE `ID`={$iGroupID}” );
}