Custom message_body Template Help
4 posters
Page 1 of 1
Custom message_body Template Help
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
Re: Custom message_body Template Help
The first part is CSS which does not belong in a template.
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: Custom message_body Template Help
LOL do you have any clue how much CSS i have seen and have in templates with no issue? Please someone with knowledge reply to this post. Thank you
Re: Custom message_body Template Help
i really have no clue what ur doing so im unable to help you .. and css can be placed anywhere you can place html it just needs to be placed above whatever elements your styling
Re: Custom message_body Template Help
@WillHolt Thank you sir for the reply! @_Twisted_Mods_ Thank you for a knowledgeable answer about HTML and CSS combined!
Re: Custom message_body Template Help
Hi @FrOsTyXi,
I tested the template and it said the correct error message from what I could see. e.g. "The forum you selected does not exisit"
I'm not exactly sure how you're going to show it for "banned members" since there's really no permissions or ways to detect it other than the error text itself. The message_body template is for all errors, so when someone banned does see it, they'll see whatever the ban message says.
I tested the template and it said the correct error message from what I could see. e.g. "The forum you selected does not exisit"
I'm not exactly sure how you're going to show it for "banned members" since there's really no permissions or ways to detect it other than the error text itself. The message_body template is for all errors, so when someone banned does see it, they'll see whatever the ban message says.
Re: Custom message_body Template Help
@Ange thank you I will put it back in place, yes I had it removed for the time being.
Regards
FrOsTyXi
Regards
FrOsTyXi
Similar topics
» Profile Template : Custom
» Custom reply template
» problems with custom CSS and mobile template
» Template
» Blog Template
» Custom reply template
» problems with custom CSS and mobile template
» Template
» Blog Template
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum