V@POR Posted June 15, 2015 Posted June 15, 2015 I used this in 3.4 to create a clan roster using a block which pulled member data...this does not work with 4.0<table class='ipb_table'> <caption class='maintitle'>{$title}</caption> <tr class='header'> <tr class='header' align="left"> <th align="center" scope='col' style='width: 2%'> </th> <th scope='col' align="left" style='width: 15%'>Forum Name</th> <th scope='col' align="center" style='width: 7%'>Posts</th> <th scope='col' align="center" style='width: 7%'>Real Name</th> <th align="center" scope='col' style='width: 7%'>BF4 Soldier</th> <th align="center" scope='col' style='width: 7%'>Contact info</th> <th align="center" scope='col' style='width: 10%'>Joined</th> <th align="center" scope='col' style='width: 10%'>Last Active</th> </tr> {parse striping="staff" classes="row1,row2"} <foreach loop="$records as $r"> <tr class='{parse striping="staff"}'> <td> <img src='{$r['pp_mini_photo']}' alt='photo' class='photo' width='{$r['pp_mini_width']}' height='{$r['pp_mini_height']}' /> </td> <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> <td><if test="$r['posts']!== ''"> <p>{$r['posts']}</p> </if></td> <td> <if test="$r['field_12'] !== ''"> <if test="$this->memberData['member_group_id']==5 OR $this->memberData['member_group_id']==7 OR $this->memberData['member_group_id']==2 OR $this->memberData['member_group_id']==3 OR $this->memberData['member_group_id']==1"> Not Available <else /> {$r['field_12']} </if> </if> </td><td> <if test="$r['field_11'] !== ''"> {$r['field_11']} </if></td> <td> <ul class='user_controls clear'> <if test="isFriendable:|:$this->memberData['member_id'] AND $this->memberData['member_id'] != $r['member_id'] && $this->settings['friends_enabled'] AND $this->memberData['g_can_add_friends']"> <if test="isFriend:|:IPSMember::checkFriendStatus( $r['member_id'] )"> <li class='mini_friend_toggle is_friend' id='friend_xxx_{r['member_id']}'><a href='{parse url="app=members&module=profile&section=friends&do=remove&member_id={$r['member_id']}&secure_key={$this->member->form_hash}" base="public"}' title='{$this->lang->words['remove_friend']}'>{parse replacement="remove_friend"}</a></li> <else /> <li class='mini_friend_toggle is_not_friend' id='friend_xxx_{$r['member_id']}'><a href='{parse url="app=members&module=profile&section=friends&do=add&member_id={$r['member_id']}&secure_key={$this->member->form_hash}" base="public"}' title='{$this->lang->words['add_friend']}'>{parse replacement="add_friend"}</a></li> </if> </if> <if test="canPm:|:$this->memberData['g_use_pm'] AND $this->memberData['member_id'] != $r['member_id'] AND $this->memberData['members_disable_pm'] == 0 AND IPSLib::moduleIsEnabled( 'messaging', 'members' )"> <li class='pm_button' id='pm_xxx_{$r['member_id']}'><a href='{parse url="app=members&module=messaging&section=send&do=form&fromMemberID={$r['member_id']}" base="public"}' title='{$this->lang->words['pm_member']}'>{parse replacement="send_msg"}</a></li> </if> <if test="hasBlog:|:$r['has_blog'] AND IPSLib::appIsInstalled( 'blog' )"> <li><a href='{parse url="app=blog&module=display&section=blog&mid={$r['member_id']}" base="public"}' title='{$this->lang->words['view_blog']}'>{parse replacement="blog_link"}</a></li> </if> <if test="hasGallery:|:$r['has_gallery'] AND IPSLib::appIsInstalled( 'gallery' )"> <li><a href='{parse url="app=gallery&module=user&section=user&user={$r['member_id']}" base="public"}' title='{$this->lang->words['view_gallery']}'>{parse replacement="gallery_link"}</a></li> </if> </ul> </td> </td> <td> <abbr class="published" title="{parse expression="date( 'c', $r['joined'] )"}">{parse date="$r['joined']" format="short"}</abbr> </td> <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 />
Recommended Posts
Archived
This topic is now archived and is closed to further replies.