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.
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}” );
}
Search Engine Optimization Dolphin -
Did you know - that once you change the option to use perma-links, you have to open the Navigation builder and move any button.
This will rebuild your menu and ensure the correct URLs are used depending on your selection within the Dolphin admin panel.
Just figured it out - thought I’d post a note…
Been a busy new year!
I haven’t forgotten about this blog - just got busy with other things!
Stick around - will write a few posts this week.
![]()
Just thought this might help with a few problems that might pop up.
Blogs workable (with the design not altered in anyway) - this is likely a change to the related php file. It sounds like the page is missing the name of the php file in the link (the form’s submit action) - 5mins to fix. Either way it could only be related to at most 3 functions… wont take long at all - no matter what the problem.
Groups workable (” “) - A careful restore of the orca (group orca) files and related dbase tables to their original state from a fresh install of dolphin will bring this back to life. Half hour.. an hour for a junior.
Banners active in admin section - this has likely been altered in the php code to allow for your rotating banner (an add-on) - problem could be in the __top_banner__ (etc) functions or the CSS…
link top banner to diffrent place other than join.php - this is likely a 30second change to one of the header files in your templates/* directory
Here’s how you can change it.
Problem: Someone added a rotating banner for me that scrolls through 5 diffrent banners if I had them. I want to link these banners to seperate places but cannot find where to do this.
Solution: To locate the URL your rotating banner has, open the files /templates/base/_header.html and /templates/tmpl_UNI(??)/_header.html Look for the link (where to send the click on the banner) and change it to your new page..
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}” );
}
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.