Dolphin Community Software

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.

community web site developer

Archive for 'Dolphin Customization'

OPEN :: / group_actions.php

FIND:::

case ‘delmem’:
if( $arrGroup['creatorID'] == $memberID )
{
$mem = (int)$_REQUEST['mem'];
if( $mem )
{
if( $mem != $memberID )
{
$oGroups->resignGroupMember( $mem, $groupID );
Header( “Location: {$site['url']}grp.php?action=mygroups” );
exit;
}
else
{
$_page['header']        = _t( “_Group member delete error” );
$_page['header_text']   = _t( “_Group member delete error” );
$_page_cont[$_ni]['page_main_code'] = MsgBox(_t( “_You cannot delete yourself from group because you are group creator” ));
}
}
exit;
}
else
{
$_page['header']        = _t( “_Group member delete error” );
$_page['header_text']   = _t( “_Group member delete error” );
$_page_cont[$_ni]['page_main_code'] = MsgBox(_t( “_You cannot delete group member because you are not group creator” ));
}
break;
(AFTER IT…) ADD:

case ‘delgrp’: // start delete group function
if( $arrGroup['creatorID'] == $memberID )
{
// put delete function here
$sql = “DELETE FROM `Groups` WHERE `ID` = ‘”.$groupID.”‘ “;
db_res ( $sql);
$sql = ” DELETE FROM `GroupsGallery` WHERE `groupID` = ‘”.$groupID.”‘ “;
db_res ( $sql) ;
if( $_SERVER['HTTP_REFERER'] )
Header( “Location: {$_SERVER['HTTP_REFERER']}” );
else
Header( “Location: {$site['url']}grp.php” );
exit;
}

else
{
$_page['header']        = _t( “_Group member delete error” );
$_page['header_text']   = _t( “_Group member delete error” );
$_page_cont[$_ni]['page_main_code'] = MsgBox(_t( “_You cannot delete group because you are not group creator” ));
}
break; // end delete group

OPEN ::: /inc/classes/BxDolGroups.php

FIND :::

if ( $aGroupInfo['creatorID'] == $iMemberID ){
$sRetHtml .= $this->genGroupActionBtn( ‘Edit group’, “{$this->sCurrFile}?action=edit&ID={$iGroupID}” );
}

CHANGE TO :::

if ( $aGroupInfo['creatorID'] == $iMemberID ){
$sRetHtml .= $this->genGroupActionBtn( ‘Delete group’, “group_actions.php?a=delgrp&ID={$iGroupID}”, true );
$sRetHtml .= $this->genGroupActionBtn( ‘Edit group’, “{$this->sCurrFile}?action=edit&ID={$iGroupID}” );
}

Open :: /group_actions.php

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;

Open :: /inc/classes/BxDolGroups.php

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}” );

}

You can change the options in the actions menu (on the profile view page) by following these simple steps.

Open:

/templates/base/scripts/BxBaseProfileView.php

Find the function:

showBlockActionsMenu()

You will  find within this function are the links. Add and remove links in this area. 

BEWARE:: Make sure you keep the code entact, and follow the other links as guides. For instance - one link opens a standard page within the same browser - other links have an OnClick event - which opens a pop up window.

As long as you are careful to add a new link in the exact fashion, or remove a link by taking away the entire line (from $ret .= all the way to and including the semi-colin. ( ; ) - you will be able to completely customize this area of your dolphin community.

You can increase the number of videos each member can upload to a maximum of 50 using the Plugins/Ray area of the Dolphin admin panel.

If you want to go over 50 video uploads per user in your dolphin community follow these simple steps.

Open:
/ray/modules/movie/xml/settings.xml

Find the following reference:

key=filesCount

Shortly after that (on the same line) you will see:

range=3:50

This is a from and to value (from 3 to 50) - change the 50 to the number of videos you will allow each user to upload to your dolpin community site.

Now open your Dolphin admin panel (plugins/ray/video) and increase the maximum in the proper text box.

How do you customize Dolphin by Boonex. It is affordable to walk into a turn-key community and have it look nothing like your competition, while adding features to your community web site. For web sites in the dating industry or in the social networking web service business.

To add a block to the Page Builder tool in your Dolphin admin panel:

 

  1. Open your phpMyAdmin (or whatever dbase manager you use).
  2. Go to table ‘PageCompose’
  3. Click ‘Insert’
  4. Fill in the fields.
  5. Open the dolphin site admin, click ‘Page Builder’
  6. Choose the block you just created (by Title) and drag it to placement on the web page you chose in the ‘page’ field of the dbase. (account, index,profile etc…)
Tomorrow, or when I get a second to write it, I will show you how to add any type of contact to that block - static or different at every visit if you choose..
Questions will always be answered, I look forward to hearing from you.

 

Continue reading…