Jump to content

Need some help with old code


Recommended Posts

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>

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

   <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>
<!-- Username -->
   <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 />
<!-- Post -->
   <if test="$r['posts']!== ''">
<!-- Country -->
   <if test="$r['field_11']!== ''">
<!-- Last Online -->
   <abbr class="published" title="{parse expression="date( 'c', $r['last_activity'] )"}">{parse date="$r['last_activity']" format="short"}</abbr>
<br />


Link to comment
Share on other sites


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

  • Recently Browsing   0 members

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