I found the following code at the forum to include a block with connected users. I want to add code to our name, thumbnail and link profile , also showed the level of membership. How do you do it?
Desc: Simple PHP Block
Caption: Online Members
Func: PHP
Content:
global $site;
global $oTemplConfig;
$memonline_num = '16'; //number of online members
$memonline_res = db_res( "SELECT * FROM `Profiles` WHERE `Status` = 'Active' AND `DateLastNav` > SUBDATE(NOW(), INTERVAL 1 MINUTE) LIMIT $memonline_num" );
$ret .= '<div class="clear_both"></div>';
if( mysql_num_rows( $memonline_res ) > 0 )
{
$j=1;
while( $memonline_arr = mysql_fetch_assoc( $memonline_res ) )
{
$ret .= '<div class="featured_block_1">';
$ret .= get_member_thumbnail( $memonline_arr['ID'], 'none' );
$ret .= '<a href="' . getProfileLink( $memonline_arr['ID'] ) . '">';
$ret .= process_line_output( $memonline_arr['NickName'] );
$ret .= '</a>';
$ret .= '</div>';
$j++;
}
}
else
{
$ret .= '<div class="no_result">';
$ret .= '<div>';
$ret .= 'No members online now';
$ret .= '</div>';
$ret .= '</div>';
}
$ret .= '<div class="clear_both"></div>';
return $ret;
Thx