Add "Delete Profile" button to the actions block?

Hi, 

I'd really like to have the ability for the admins to have a "Delete Profile" button in the actions block. Can someone help me devise the code to insert into the database for this?

Thanks!

Quote · 19 Aug 2013

.

Quote · 20 Aug 2013

http://www.boonex.com/trac/dolphin/ticket/3275

Rules → http://www.boonex.com/terms
Quote · 21 Aug 2013

Thanks AlexT!

Quote · 21 Aug 2013

 Alex,

It would be great if there were an "Actions Menu" in the Admin Panel>Builders. Having an admin area to add or remove actions, as well as being able to control which type of user(un-registered, member, admin) sees which type of action seems like something that should be included in the core software.

http://www.boonex.com/trac/dolphin/ticket/3275

 

Quote · 30 Sep 2013

i actually created a suspend member button in an actions block before I realized there was a ticket for this topc. This is what I did though:

in templates/base/scripts/BxBaseProfileView.php:

$p_arr['user_type']        = getUserType( $iMemberID );

        //--- Check for member/non-member ---//

    if(isMember()) {
            $p_arr['cpt_edit'] = _t('_EditProfile');
            $p_arr['cpt_send_letter'] = _t('_SendLetter');
            $p_arr['cpt_fave'] = '';
            $p_arr['cpt_remove_fave'] = '';
            $p_arr['cpt_befriend'] = '';
            $p_arr['cpt_remove_friend'] = '';
            $p_arr['cpt_get_mail'] = '';
            $p_arr['cpt_share'] = '';
            $p_arr['cpt_report'] = '';
            $p_arr['cpt_block'] = '';
            $p_arr['cpt_unblock'] = '';
            $p_arr['cpt_suspend'] = _t('Suspend');
        } else {
            $p_arr['cpt_edit'] = '';
            $p_arr['cpt_send_letter'] = '';
            $p_arr['cpt_fave'] = '';
            $p_arr['cpt_remove_fave'] = '';
            $p_arr['cpt_befriend'] = '';
            $p_arr['cpt_remove_friend'] = '';
            $p_arr['cpt_get_mail'] = '';
            $p_arr['cpt_share'] = '';
            $p_arr['cpt_report'] = '';
            $p_arr['cpt_block'] = '';
            $p_arr['cpt_unblock'] = '';
            $p_arr['cpt_suspend'] = '';
        }

 

ran this sql query to add to sys_objects_actions table:

INSERT INTO `sys_objects_actions` (`ID`, `Caption`, `Icon`, `Url`, `Script`, `Eval`, `Order`, `Type`, `bDisplayInSubMenuHeader`) VALUES (NULL, '{evalResult}', 'minus', '', 'showPopupAnyHtml(''confirm.php?member={ID}'')', 'if ({ID} == {member_id}) return;

$UserTy  = ''{user_type}'';
if ( $UserTy == ''Lead Staff'' )
    return _t(''{cpt_suspend}'');', '1', 'Profile', '0');

 

in inc/profiles.inc.php added:

function getUserType( $ID = '' )
{
    if ( !(int)$ID )
        return '';

    $arr = getProfileInfo( $ID );
    return $arr['UserType'];
}

In my usage, only those with a User Type of Lead Staff can see/use this button. The User Type is only defined by the admin of the site and is a field in the profiles builder only viewable by admin. Also, I have mine set so that a confirmation popup happens to make sure they want to suspend this person.

caredesign.net
Quote · 1 Oct 2013

This is structural change, we will add this feature in future Dolphin versions.

Also I believe that there is a module in market which is doing pretty similar.

Alex,
It would be great if there were an "Actions Menu" in the Admin Panel>Builders. Having an admin area to add or remove actions, as well as being able to control which type of user(un-registered, member, admin) sees which type of action seems like something that should be included in the core software.

 

Rules → http://www.boonex.com/terms
Quote · 2 Oct 2013

 I can't wait for the future version, thanks for adding this feature!

If you are talking about eSASe's module, it looks like he is inactive and the software is not up to date with 7.1.3 or 7.1.4.

This is structural change, we will add this feature in future Dolphin versions.

Also I believe that there is a module in market which is doing pretty similar.

Quote · 3 Oct 2013

 

This is structural change, we will add this feature in future Dolphin versions.

Also I believe that there is a module in market which is doing pretty similar.

Alex,
It would be great if there were an "Actions Menu" in the Admin Panel>Builders. Having an admin area to add or remove actions, as well as being able to control which type of user(un-registered, member, admin) sees which type of action seems like something that should be included in the core software.

 

 Out of curiosity, when is the new version expected?

Quote · 4 Oct 2013
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.