Follow this steps go to Creator> New
Element> Online List
paste this code in 2nd box[make sure this is the only code in it]

Code:
 <table width="100%" class="sc_a1">  <tr valign="top">   <td align="left" width="25px" class="pic2 img">    %userphoto%   </td>   <td align="left" class="sc_a2"><div class="onlineuser" >%nick%<br/>     <script type="text/javascript">uid=(escape('%nick%')).slice(39,47);if(uid!=[user_id]){document.write('<a href="pm.php?id=new&to='+uid+'" class="sharecode">Send PM</a><br/><a href="friends.php?id=invite&uid='+uid+'" class="sharecode">Add as Friend</a>')}else{document.write('<br/>')};</script> </div>   </td>  </tr> </table>