Access Forbidden Language

I'm changing the Access Forbidden language keys to a different message.

 

The problem is when I change one of the keys (such as _bx_videos_forbidden) the breadcrumb, the title and the message box itself all change with the exact same message.

 

For example, if I type in "Your current membership level does not allow you to access this feature" this is what it looks like:

 

 

Any ideas on how to fix it so only the body message changes?

 

 

Quote · 4 Mar 2012

Anyone have any ideas?

Quote · 4 Mar 2012

Still looking for an answer.

 

Nobody has an idea how to fix this?

Quote · 6 Mar 2012

Hello

You may change it for Files/Photos/Sounds/Videos modules at the same time. In this case you need to edit in/classes/BxDolFilesModule.php file -> actionView function. Find the following code in it

          if (!$this->isAllowedView($aInfo)) {
              $sKey  = _t('_' . $this->_oConfig->getMainPrefix() . '_forbidden');
              $sCode = DesignBoxContent($sKey, MsgBox($sKey), 1);
           }

and change it to

          if (!$this->isAllowedView($aInfo)) {
              $sKey  = _t('_' . $this->_oConfig->getMainPrefix() . '_forbidden');
              $sCode = DesignBoxContent($sKey, MsgBox( _t('_' . $this->_oConfig->getMainPrefix() . '_forbidden_my')), 1);
           }

Then add the following language keys with necessary translations via admin panel -> settings -> languages settings.

_bx_files_forbidden_my
_bx_photos_forbidden_my
_bx_sounds_forbidden_my  
_bx_videos_forbidden_my  

But if you need it for Videos module only then it will require more changes.

 

Best Regards AntonLV - http://www.boonex.com/market/posts/AntonLV
Quote · 6 Mar 2012
 
 
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.