The forum of the forums

Would you like to react to this message? Create an account in a few clicks or log in to continue.
The forum of the forums
4 posters

    Custom message_body Template Help

    FrOsTyXi
    FrOsTyXi
    Forumember


    Male Posts : 460
    Reputation : 12
    Language : english

    In progress Custom message_body Template Help

    Post by FrOsTyXi Mon Jan 26 2015, 05:03

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


    Male Posts : 460
    Reputation : 12
    Language : english

    In progress Re: Custom message_body Template Help

    Post by FrOsTyXi Wed Jan 28 2015, 03:11

    Bump
    FrOsTyXi
    FrOsTyXi
    Forumember


    Male Posts : 460
    Reputation : 12
    Language : english

    In progress Re: Custom message_body Template Help

    Post by FrOsTyXi Thu Jan 29 2015, 05:45

    Bump
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51499
    Reputation : 3523
    Language : English
    Location : United States

    In progress Re: Custom message_body Template Help

    Post by SLGray Thu Jan 29 2015, 06:29

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



    Custom message_body Template Help Slgray10

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


    Male Posts : 460
    Reputation : 12
    Language : english

    In progress Re: Custom message_body Template Help

    Post by FrOsTyXi Thu Jan 29 2015, 08:17

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


    Male Posts : 2083
    Reputation : 336
    Language : English
    Location : Ms

    In progress Re: Custom message_body Template Help

    Post by _Twisted_Mods_ Thu Jan 29 2015, 12:30

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


    Male Posts : 460
    Reputation : 12
    Language : english

    In progress Re: Custom message_body Template Help

    Post by FrOsTyXi Thu Jan 29 2015, 14:45

    @WillHolt Thank you sir for the reply! @_Twisted_Mods_ Thank you for a knowledgeable answer about HTML and CSS combined!
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    In progress Re: Custom message_body Template Help

    Post by Ange Tuteur Thu Jan 29 2015, 23:30

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


    Male Posts : 460
    Reputation : 12
    Language : english

    In progress Re: Custom message_body Template Help

    Post by FrOsTyXi Fri Jan 30 2015, 01:02

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

    Regards
    FrOsTyXi

      Current date/time is Mon Sep 23 2024, 14:22