Ignore:
Timestamp:
05/30/08 21:41:54 (4 years ago)
Author:
hverton
Message:

added a new module to define forum ranking

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/templates/forum.renderpost.tpl

    r1400 r1420  
    7979            {/if} 
    8080            <br /> 
     81            {if $posts[pid].show_ranking} 
     82                {if $posts[pid].ranking.rank_image} 
     83                    {section name=img start=0 loop=$posts[pid].ranking.rank_image_repeat} 
     84                        <img src='{$smarty.const.IMAGES}ranking/{$posts[pid].ranking.rank_image}' alt='' title='{if $posts[pid].ranking.rank_tooltip && $posts[pid].ranking.rank_title != ""}{$posts[pid].ranking.rank_title}{/if}' style='border:0px;' /> 
     85                    {/section} 
     86                    <br /> 
     87                {/if} 
     88            {/if} 
     89            {* show a ranking title first *} 
     90            {section name=ug loop=$posts[pid].group_names} 
     91                {if $posts[pid].group_names[ug].type == "R"} 
     92                    {if $posts[pid].group_names[ug].color|default:"" != ""} 
     93                        <span class='small'><font color='{$posts[pid].group_names[ug].color}'>{$posts[pid].group_names[ug].name}</font></span> 
     94                    {else} 
     95                        <span class='small'>{$posts[pid].group_names[ug].name}</span> 
     96                    {/if} 
     97                    <br /> 
     98                {/if} 
     99            {/section} 
    81100            {* show admin/superadmin level first *} 
    82101            {section name=ug loop=$posts[pid].group_names} 
Note: See TracChangeset for help on using the changeset viewer.