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!
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! |
. |
Rules → http://www.boonex.com/terms |
Thanks AlexT! |
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.
|
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()) {
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;
in inc/profiles.inc.php added: function getUserType( $ID = '' ) 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 |
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 |
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. |
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? |