Jump to content

Need some help with old code


Porthos1973

Recommended Posts

Posted

On 3.x.x I used the code below in a feed to make a clan roster page.  On 4 I am using the staff page currently but not to crazy about it. Anyone know how to get the code to work with V4?

<table class='ipb_table'>
 {parse replacement="header_start"}
  <h3 class='maintitle'>{$title}</h3>
 {parse replacement="header_end"}

 <tr class='header' align="left">
  <th align="center" scope='col' style='width: 5%'> </th>
  <th align="left"   scope='col' style='width: 15%'>Username</th>
  <th align="center" scope='col' style='width: 15%'>Posts</th>
  <th align="center" scope='col' style='width: 15%'>Steam ID</th>
  <th align="center" scope='col' style='width: 15%'>Last Active</th>
 </tr>

{parse striping="Clan Admin" classes="row1,row2"}
<foreach loop="$records as $r">
 <tr class='{parse striping="Clan Admin"}'>
 
<!-- Avatar -->

  <td>
   <a href='{parse url="showuser={$r['member_id']}" seotitle="{$r['members_seo_name']}" template="showuser" base="public"}' title='{$this->lang->words['view_profile']}' class='ipsUserPhotoLink left'>{IPSMember::buildProfilePhoto($r['member_id'], 'small')}</a>
  </td>
  
<!-- Username -->
  
        <td>
   <if test="leadermid:|:$r['member_id'] > 0">
    <a href='{parse url="showuser={$r['member_id']}" seotitle="{$r['members_seo_name']}" template="showuser" base="public"}' title='{$this->lang->words['view_profile']}'>{$r['members_display_name']}</a> {parse template="user_popup" group="global" params="$r['member_id'],$r['members_seo_name']"}
   <else />
    {$r['members_display_name']}
   </if>
        </td>
  
<!-- Post -->
  
  <td>
   <if test="$r['posts']!== ''">
    <p>{$r['posts']}</p>
   </if>
  </td>
  
<!-- Country -->
  
  <td>
   <if test="$r['field_11']!== ''">
    <p>{$r['field_11']}</p>
   </if>
  </td>
  
 
  
<!-- Last Online -->
  
  <td>
   <abbr class="published" title="{parse expression="date( 'c', $r['last_activity'] )"}">{parse date="$r['last_activity']" format="short"}</abbr>
  </td>
 </tr>
</foreach>
</table>
<br />

 

Posted

it shouldnt be too difficult to get something up and running using pages.Take a look at the staff pages template and glean something from there.Im very busy at present or i would look into this for you.

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...