Hello, I have a custom template for my message_body. I like it but issue i see with it is, no matter what message a user sees for search etc they get the custom template message. My question is can it be made to only show for banned members and when a member clicks on a forum he or she has no permission for?
Here is the template:
If this can't be done by this template making it default would be fine, maybe a JavaScript can do the same thing for banned and no permission?
@Ange Either way is fine, thank you in advance
Regards
frOsTyXi
Here is the template:
- Code:
<style type="text/css">
.the-title {
 font:300 26px/1.3 Helvetica,Arial,sans-serif;
 color:#323232
}
.main {
 background: #fff;
 padding: 1em;
}
.main-head-ipb {
 margin-bottom: 1em;
}
.main-message {
 padding: .5em;
 background: #ebf0f3;
}
.main-box {
 padding: 1em;
 background: #ebf0f3;
}
.message hr {
 border: 0;
 height: 1px;
 background: #ececec;
 margin : 1em 0;
}
.message {
 background: #fff!important;
 border-radius: 0!important;
 border: #dbe4ef 1px solid!important;
 overflow: hidden;
 padding: 1em;
}
.main-message-title {
 font-size: 1.6em;
 font-weight: bold;
}
.main-box ul {
 width: 100%;
}
.main-box li {
 float: none;
 text-align: left;
 list-style: disc;
 margin-left: 2em;
}
</style>
<!-- BEGIN switch_user_logged_in -->
<div id="pun-visit" class="clearfix">
 <ul>
    <li><a href="{U_SEARCH_NEW}">{L_SEARCH_NEW}</a></li>
    <li><a href="{U_SEARCH_SELF}">{L_SEARCH_SELF}</a></li>
 </ul>
Â
 <p>{LOGGED_AS}. {LAST_VISIT_DATE}</p>
</div>
<!-- END switch_user_logged_in -->
<!-- BEGIN switch_user_logged_out -->
<div id="pun-visit">
 <p>{L_NOT_CONNECTED} {L_LOGIN_REGISTER}</p>
</div>
<!-- END switch_user_logged_out -->
<div class="main">
 <div class="main-head-ipb">
   <h1 class="the-title">Oops! It seems that something went wrong.</h1>
 </div>
 <div class="main-message">
   <div class="main-box">
    <div class="message">
      <h4 class="main-message-title">{MESSAGE_TEXT}</h4>
      <hr>
      <span style="margin:1em 0;font-size:1.1em;">Need help?</span>
      <ul>
       <li>
         <a href="/h4-the-moderating-team">Contact Administrator</a>
       </li>
       <li>
         <a href="/forum">Community Index</a>
       </li>
      </ul>
    </div>
   </div>
 </div>
</div>
If this can't be done by this template making it default would be fine, maybe a JavaScript can do the same thing for banned and no permission?
@Ange Either way is fine, thank you in advance
Regards
frOsTyXi