ACCESS IS FORBIDDEN Message

Howdy,

I do not want non members to be able to watch videos.  So I have disabled view videos for the non members.

So far so good.

When a non-member tries to view a video they get a ACCESS IS FORBIDDEN message.

I would like to display a more detailed message, with links to join and log in.

I tried doing this by changing the lang key, but that changes the bread crumb, title, and message!

Any ideas on how I could make something like this work?

Thanks

Light man a fire keep him warm for a night, light him ON fire & he will be warm the rest of his life
Quote · 27 Jun 2010

As there is a misunderstanding, I will rewrite this in more detail.

Tip in progress:  Update access is forbidden messages.

You can edit the following language keys to update the access forbidden messages to be more helpful to members, and perhaps get more sign ups.

_bx_videos_forbidden (Boonex Videos)
_bx_sounds_forbidden (Boonex Sounds)
_bx_files_forbidden (Boonex Files)
_bx_photos_forbidden (Boonex Photos)

As an example, I do not allow non-members to watch videos. If a non-member sees the action forbidden message when trying to watch a video they may just leave, thinking there is something wrong with the videos.

But if we change the message to say 'please login to watch videos' they now know what needs to be done to see the video. If they are not a current member they may be motivated to join.

To make things easier on the non-member it would be helpful to include the login and join links inside the message. It may even help to explain the benefits of joining and cost or lack of cost. As people seldom read a lot of text in a block it would be nice to format this information, and maybe include images. You can place HTML inside a lang key, and it will work.


But there is an issue with using HTML or long text.  The contents of the lang key is used for the bead crumb, title, and message box.

If anyone has ideas on addressing this issue, other then using short messages without HTML, please respond with YOUR ideas and advise.

Thanks!

Light man a fire keep him warm for a night, light him ON fire & he will be warm the rest of his life
Quote · 27 Jun 2010

Hey thanks for this post. I have been trying to find something to do wiht those messages. It's better than what they have now. I'm still looking for a way to do an html page or something that will link to the my membership page or something. Would also like to know where it is for editing the wording if they don't have permissions to chat, Messenger, send mail, ect.

 

Quote · 4 Apr 2011

Hi,We would also like to replace such messages and include a link to the join, login or upgrade options for cirtain elements of our site. If anyone comes up with a decent plan that can be followed by a relative newbie please let us know.

Thanks,

Quote · 14 Apr 2011

Just bumpin to see if anyone knows if this is possible and if it is a big job or just a small edit or two.

Quote · 21 Apr 2011

 

Hey thanks for this post. I have been trying to find something to do wiht those messages. It's better than what they have now. I'm still looking for a way to do an html page or something that will link to the my membership page or something. Would also like to know where it is for editing the wording if they don't have permissions to chat, Messenger, send mail, ect.

 

Put this in all of the language keys that have "denied" in them.

 

Access Denied - or whatever your message is

<br><br>

<script type="text/javascript">

function leave() {

window.location = "http://www.yoursite/m/membership/";

}

setTimeout("leave()", 6000);

</script>

Redirecting...

 

 

You can add that to any language key and use it to redirect people anywhere you want.

Quote · 21 Apr 2011

Wow. Thanks. Thats what I have been looking for. Works great. Edited the redirecting to read You do not have permision. Please upgrade now. Redirecting...

Quote · 24 Apr 2011

Thanx. Works.

Free the Dolphin...
Quote · 8 May 2011

What is the path to the access denied fix?

thanks

jb

Quote · 3 Jul 2011

I actually took this 1 step further.

 

in the file inc/classes/BxDolFilesModule.php

Around line 218

       if (!empty($aInfo)) {
           if (!$this->isAllowedView($aInfo)) {
               $sKey  = _t('_' . $this->_oConfig->getMainPrefix() . '_forbidden');

ADD THIS (comments optional!)
###
#SteveSoft
#04-03-2012
#              
               $sKeyMessage =   _t('_' . $this->_oConfig->getMainPrefix() . '_forbidden_message');
               $sCode = DesignBoxContent($sKey, MsgBox($sKeyMessage), 1);
#              

Then add the following keys to your language file

_bx_videos_forbidden_message

_bx_files_forbidden_message

_bx_sounds_forbidden_message

_bx_photos_forbidden_message

The message in the above keys can be a link to send them to your home page or whatever you would like explaining they need to join.

I put this....

You must be a member to view this page.<br>
You can login or join below.<br>
<center>
<a href="/"><input type="button" class="form_input_submit" name="Login/Join" value="Login/Join"></a>
</center>

 

I changed the following language files

_bx_videos_forbidden

_bx_files_forbidden

_bx_photos_forbidden

_bx_sounds_forbidden

to read "Members Only"

 

http://www.mytikibar.com
Quote · 3 Apr 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.