Saturday, November 13, 2010

Admin name snippit

For anyone who uses Kusaba X and would like it to look a little better, I've devised a little moderation to the tpl files, here is the snippit:

            {strip}
                {if $post.email && $board.anonymous}
                    <span class="postername"><a href="mailto:{$post.email}"></span>
                {/if}
                {if $post.name eq '' && $post.tripcode eq ''}
                        <span class="postername">{$board.anonymous}</span>
                {elseif $post.name eq '' && $post.tripcode neq ''}
                {else}
                    {if $post.posterauthority eq 1}
                        <span class="postername2">{$post.name}</span>
                    {elseif $post.posterauthority eq 2}
                        <span class="postername3">{$post.name}</span>
                    {else}
                        <span class="postername">{$post.name}</span>
                {/if}
                {if $post.email neq '' && $board.anonymous neq ''}
                    </a>
                {/if}

                {if $post.tripcode neq ''}
                    {if $post.posterauthority eq 1}
                        <span class="postertrip2">!{$post.tripcode}</span>   
                    {elseif $post.posterauthority eq 2}
                        <span class="postertrip3">!{$post.tripcode}</span>   
                    {else}
                        <span class="postertrip">!{$post.tripcode}</span>   
                {/if}
            {/strip}
            {if $post.posterauthority eq 1}
                <span class="admin">
                    &#35;&#35;&nbsp;{t}Admin{/t}
                </span>
            {elseif $post.posterauthority eq 2}
                <span class="mod">
                    &#35;&#35;&nbsp;{t}Mod{/t}
                </span>
            {/if}

7 comments:

  1. I don't use it, but I'm glad for them.

    ReplyDelete
  2. This comment has been removed by the author.

    ReplyDelete
  3. if only real life were as simple as programming code...

    {strip}
    [if $fat.chick$ eq %small%tits%]
    {run}
    [elsif $FAP$]
    [/if]
    {/strip}

    ReplyDelete
  4. I think I had to do a script like this before in one of my previous classes.

    ReplyDelete
  5. Hmm, interesting, nice blog!
    Check mine out at http://landofminecraft.blogspot.com

    ReplyDelete