How do I configure actions buttons in the boxes?

How do I configure the actions buttons that are available and unavailable inside the box actions?

 

There are 3 boxes actions:

 

- On the profile page.

- When we keep the mouse over the avatar of a profile. So shows a box on the avatar with action options.

- When we received a message and open the message in the inbox. Beside the profile appears box with buttons actions.

 

How do I configure which action buttons should appear in each of these boxes?

 

Thank you!

 

Best regards,

Peter

Quote · 15 Sep 2013

Dolphin does not have any built-in functionality to manage the Actions. You would have to manually adjust the sys_objects_actions database table. There is a third party module (done by Esase) listed in the market but it is not showing as compatible with the latest Dolphin version.

Paypal email is jeromemingo@gmail.com - http://www.boonex.com/market/posts/modzzz
Quote · 15 Sep 2013

Hmmm, thank you!

 

So I'll try to see in the database if I can enable or disable certain actions without having to delete any entries.

Quote · 15 Sep 2013

I have the actions premium module and it does allow one to make an action inactive.  However, I am not running 7.1.4 and I have an issue with the module which has not been addressed by the developer.

I don't know how to make an action inactive in the database.  What I can suggest is that you back up the table, or export the row you won't to remove and then delete the row.  That way if you later want the action back, you just import that row again.

Geeks, making the world a better place
Quote · 16 Sep 2013

OK, there are a couple of things that I see here - first, I believe you are looking for the option of showing different buttons, depending on what page the user is on.

Example: If on the profile page, you would maybe want the contact button, but if hovering over the picture, you may not want the contact button.

In that scenario, I have no clue - I was under the impression that both are the same and from the same functions and coding. But, if you would like to "hide" certain buttons, if you are comfortable with editing the php code, here is what I have done:

in templates/base/scripts backup BxBaseProfileView.php

around line 435, look for a variation of the following. In mine below, I have commented out (/* */) sections that I did not want. Example highlighted in blue. This is one option, the second is to set the variable (section after the =) to '' (2 single quotes) Example in red.:

        if(isMember()) {
            $p_arr['cpt_edit'] = _t('_EditProfile');
            $p_arr['cpt_send_letter'] = _t('_SendLetter');
      /*      $p_arr['cpt_fave'] = _t('_Fave'); */
      /*      $p_arr['cpt_remove_fave'] = _t('_Remove Fave'); */
      /*      $p_arr['cpt_befriend'] = _t('_Befriend');  */
            $p_arr['cpt_remove_friend'] = '';
/*            $p_arr['cpt_get_mail'] = _t('_Get E-mail'); */
            $p_arr['cpt_share'] = $this->isAllowedShare($this->_aProfile) ? _t('_Share') : '';
            $p_arr['cpt_report'] = _t('_Report Spam');
            $p_arr['cpt_block'] = _t('_Block');
            $p_arr['cpt_unblock'] = _t('_Unblock');
        } 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'] = '';
        }

Hope this makes sense.

caredesign.net
Quote · 16 Sep 2013

Yes! Great! Thanks!

 

I remember having seen this function before and I thought to myself: "When I want to modify the actions, here's what I'm going to change"

 

But after several days, I had forgotten where it was this function, and I began to think I was dreaming that this feature existed! kakaka

 

Thanks for reminding me of this function and this file!

 

Girl, thank you also for answering me. Their idea was what I was also thinking about doing, if not exist a function in php. :)

Quote · 16 Sep 2013

News...

Well, use comments /* */ did not work very well for me.

Use ' ' worked. However, it does not allow me to disable actions modules and not all basic actions of dolphin, because BxBaseProfileView.php there are only a few actions, but not all.

 

So I created a solution that worked for me. It is temporary and needs an interface in html pages in the future for not to have to change the database directly.

 

Lets go. I will show step by step what I did:

 

1. 

I created a new column in the table "sys_objects_actions".

Column name: "ActiveAction"

Type: Int

Default value: 1

 

2. 

I opened the file BxBaseFunctions.php that exists in /templates/base/scripts/

So I made the following changes to this file.

 

Change 1:

SELECT

                    `Caption`, `Icon`, `Url`, `Script`, `Eval`, `bDisplayInSubMenuHeader`

 

To....

 

SELECT

                    `Caption`, `Icon`, `Url`, `Script`, `Eval`, `bDisplayInSubMenuHeader`, `ActiveAction`

 

Change 2:

if ( array_key_exists($sKeyValue, $this -> aSpecialKeys) ) {

 

To....

 

if ( (array_key_exists($sKeyValue, $this -> aSpecialKeys))&&($aRow['ActiveAction']==1) ) {

 

Change 3:

if ( $aRow['Caption'] and ($aRow['Url'] or $aRow['Script'] ) ) {

 

To....

 

if ( ($aRow['Caption'] and ($aRow['Url'] or $aRow['Script'] ))&&($aRow['ActiveAction']==1) ) {

 

Done!!! Now just change in database, from '1' to '0' in the column "ActiveAction" all the actions you want to disable. Reminding that actions with 'profile' in "Type" are the actions of interaction with a other profile.

It worked for me! :)

 

If you want to try to do the same, I recommend first making a backup of this file, and also the table of the database that will change. It is always good to make a backup of everything you're changing in case of something wrong. ;)

 

 

Quote · 16 Sep 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.