Custom message_body Template Help

Go down

In progress Custom message_body Template Help

Post by FrOsTyXi on January 26th 2015, 4:03 am

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:
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
avatar
FrOsTyXi
Forumember

Male Posts : 460
Reputation : 12
Language : english

http://team-psn.forum-board.net/

Back to top Go down

In progress Re: Custom message_body Template Help

Post by FrOsTyXi on January 28th 2015, 2:11 am

Bump
avatar
FrOsTyXi
Forumember

Male Posts : 460
Reputation : 12
Language : english

http://team-psn.forum-board.net/

Back to top Go down

In progress Re: Custom message_body Template Help

Post by FrOsTyXi on January 29th 2015, 4:45 am

Bump
avatar
FrOsTyXi
Forumember

Male Posts : 460
Reputation : 12
Language : english

http://team-psn.forum-board.net/

Back to top Go down

In progress Re: Custom message_body Template Help

Post by SLGray on January 29th 2015, 5:29 am

The first part is CSS which does not belong in a template.


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.

avatar
SLGray
Administrator
Administrator

Male Posts : 43465
Reputation : 3084
Language : English
Location : United States

http://fmthemesdesignteam.forumotion.com/

Back to top Go down

In progress Re: Custom message_body Template Help

Post by FrOsTyXi on January 29th 2015, 7:17 am

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
avatar
FrOsTyXi
Forumember

Male Posts : 460
Reputation : 12
Language : english

http://team-psn.forum-board.net/

Back to top Go down

In progress Re: Custom message_body Template Help

Post by _Twisted_Mods_ on January 29th 2015, 11:30 am

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
avatar
_Twisted_Mods_
Helper
Helper

Male Posts : 2064
Reputation : 314
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

In progress Re: Custom message_body Template Help

Post by FrOsTyXi on January 29th 2015, 1:45 pm

@WillHolt Thank you sir for the reply! @_Twisted_Mods_ Thank you for a knowledgeable answer about HTML and CSS combined!
avatar
FrOsTyXi
Forumember

Male Posts : 460
Reputation : 12
Language : english

http://team-psn.forum-board.net/

Back to top Go down

In progress Re: Custom message_body Template Help

Post by Ange Tuteur on January 29th 2015, 10:30 pm

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.
avatar
Ange Tuteur
Forumaster

Male Posts : 13201
Reputation : 2917
Language : EN10, FR5, JA5
Location : Macungie, PA

https://github.com/SethClydesdale

Back to top Go down

In progress Re: Custom message_body Template Help

Post by FrOsTyXi on January 30th 2015, 12:02 am

@Ange thank you I will put it back in place, yes I had it removed for the time being.

Regards
FrOsTyXi
avatar
FrOsTyXi
Forumember

Male Posts : 460
Reputation : 12
Language : english

http://team-psn.forum-board.net/

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum