Quote:
Originally Posted by Linux123
If say a user group does have access to view the arcade you get a message which says:
Code:
User, you do not have permission to access this page. This could be due to one of several reasons:
Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.
I want it to change that so I can have a custom message like "Hey there, you can't access this yet, read more on how to get access here"
|
It uses vbulletin's built-in permission system and error messages, so you would either need to either create a new error message phrase in the AdminCP and have reference to it in arcade.php where you would like it to appear.
Or, an easier method would be to use conditionals and create your own message within the template. For example, in your v3ARCADE_PLAY template search for:
Code:
<!-- main -->
<div class="blockrow">{vb:raw flashcode}</div>
And replace it with:
Code:
<!-- main -->
<vb:if condition="$show['guest']">
<div class="standard_error">
<h2 class="blockhead">Arcade Error Message</h2>
<div class="blockbody formcontrols">
<p class="blockrow">Sorry, guests cannot play games in the arcade, you must be a registered member of {vb:raw vboptions.bbtitle} to play games and submit scores.<br/><br/> This will also allow you to compete on our arcade leaderboards, play tournaments or challenge other players to a 1v1 match.<br/><br/> Registration is quick, free and simple. Click <a href="register.php">HERE</a> to join our site.</p>
</div>
</div></vb:if>
<vb:if condition="$show['member']"><div class="blockrow">{vb:raw flashcode}</div></vb:if>
Changing the message (red bit) to suit yourself.