Showing posts with label Mods. Show all posts
Showing posts with label Mods. Show all posts

Saturday, August 29, 2009

Add Group Delete Function for Dolphin 6.x

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

Tuesday, August 4, 2009

Dolphin webmasters, worst of the breed!


Freelancing means dealing with 'know-it-all' "webmasters" - in most cases it's the 'weekend-webmaster'. The worst of the breed!

This past weekend, a holiday weekend here in Toronto, I took 2 days off - the Sunday and the Monday. I don't get too many days off in my business, which I guess is a good thing, means I am a busy freelancer.

When I returned to my desk Tuesday morning, I was met with angry emails from a MOD sale, the profile customizer for Dolphin MOD.

Why do these people, who spend on average $120 on mod with me, why do they feel they own me. Where do they get off threatening me with PayPal chargebacks, just because I took a couple of days off - especially when its a HOLIDAY WEEKEND???

I just dont understand these dolphin webmasters - drive a guy nuts! Needless to say, he will not be getting a refund, and his threats of negative feedback, may make there way to the Dolphin community. Frankly - I couldnt care less! More power to him and all the other weekend webmasters before him that resort to threats when I am not immediately available for their emails.

Just had to vent, figured - where better than the blog?

Webmasters should realize that geeks have lives and families too - that we deserve a day or two off from time to time, especially considering the long nights and weekends we usually work for them. For pennies I might add. Perhaps I will change my pricing back to the industry standard - then I might not be so upset over threats resulting from a simple two-day holiday with my family.

Since I rarely take time off -- I wont run into this again for a while, but for gosh sakes! Give a guy a break. A day off from time to time is not that much to ask. Is it?