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. ;)