<br />
<div class="borderwrap">
	<div class="maintitle">{$data['prefix']} <a href="{$this->ipsclass->base_url}showtopic={$data['tid']}&amp;hl={$data['keywords']}">{$data['topic_title']}</a></div>
	<table class='ipbtable' cellspacing="0">
		<tr>
			<td width="150" class="post_head">
				<if="$author['id']">
					<div id="post-member-{$data['pid']}" class='popmenubutton-new-out'>
						<span class="normalname">{$author['_pp_online_image']}{$author['_members_display_name']}</span>
					</div>
					<!-- member menu -->
					<div class='popupmenu-new' id='post-member-{$data['pid']}_menu' style='display:none;width:230px'>
						<div class='popupmenu-item-last'>
							<if="$author['members_display_name_short'] != $author['members_display_name']">
								<div class='popupmenu-item'><strong>{$author['members_display_name']}</strong></div>
							</if>
							<div style='float:right'>
								<div class='pp-image-thumb-wrap'>
									<img src='{$author['pp_thumb_photo']}' width='{$author['pp_thumb_width']}' height='{$author['pp_thumb_height']}' alt='' />
								</div>
								<if="$this->ipsclass->vars['pp_allow_member_rate']">
									<div style='margin-top:5px;margin-left:6px;'>
										<img src="{$this->ipsclass->vars['img_url']}/rating_{$author['_pp_rating_real']}_mini.gif" alt='{$this->ipsclass->lang['rating_prefix']}: {$author['_pp_rating_real']}' style='vertical-align:middle' border='0' />
									</div>
								</if>
							</div>
							<div class='popupmenu-item'>
								{$author['_pp_gender_image']} <a href="{$this->ipsclass->base_url}showuser={$author['id']}">{$this->ipsclass->lang['dd_view_profile']}</a>
							</div>
							<if="$this->ipsclass->member['id']">
								<div class='popupmenu-item'>
									<if="in_array( $author['id'], array_keys( $this->ipsclass->member['_cache']['friends'] ) )">
										<img src='{$this->ipsclass->vars['img_url']}/folder_profile_portal/friend_remove_small.png' alt='' border='0' /> <a href="#" onclick='friends_pop("&amp;do=remove&amp;member_id={$author['id']}&amp;md5check={$this->ipsclass->md5_check}"); return false'>{$this->ipsclass->lang['dd_remove_friend']}</a>
									<else />
										<img src='{$this->ipsclass->vars['img_url']}/folder_profile_portal/friend_add_small.png' alt='' border='0' /> <a href="#" onclick='friends_pop("&amp;do=add&amp;member_id={$author['id']}&amp;md5check={$this->ipsclass->md5_check}"); return false'>{$this->ipsclass->lang['dd_add_friend']}</a>
									</if>
								</div>
								<div class='popupmenu-item'>
									<img src='{$this->ipsclass->vars['img_url']}/folder_profile_portal/send_pm_small.png' alt='' border='0' /> <a href="{$this->ipsclass->base_url}act=Msg&amp;CODE=4&amp;MID={$author['id']}">{$this->ipsclass->lang['dd_send_pm']}</a>
								</div>
							</if>
							<div class='popupmenu-item-last'>
								<img src='{$this->ipsclass->vars['img_url']}/folder_profile_portal/find_posts.png' alt='' border='0' /> <a href='{$this->ipsclass->base_url}act=Search&amp;CODE=getalluser&amp;mid={$author['id']}'>{$this->ipsclass->lang['dd_find_posts']}</a>
							</div>
						</div>
					</div>
					<!-- member menu -->
					<script type="text/javascript">
						ipsmenu.register( "post-member-{$data['pid']}", '', 'popmenubutton-new', 'popmenubutton-new-out' );
					</script>
				<else />
					<span class="normalname">{$author['_members_display_name']}</span>
				</if>			
			<!--<span class="normalname">{$data['author_name']}</span>-->
			</td>
			<td class="post_head" width="100%"><span class='postdetails'>{$this->ipsclass->lang['rp_postedon']} {$data['post_date']}</span></td>
		</tr>
		<tr>
			<td class="{$data['class2']} post_left" valign='top'>
				<span class="postdetails">
					<if="$author['id'] AND $author['avatar']">
						<a href="{$this->ipsclass->base_url}showuser={$author['id']}" title="{$this->ipsclass->lang['dd_view_profile']}">{$author['avatar']}</a><br /><br />
					<else />
	        			{$author['avatar']}<br /><br />
					</if>
					{$author['title']}<br />
					{$author['member_rank_img']}<br /><br />
					{$author['member_group']}<br />
					{$author['member_posts']}<br />
					{$author['member_joined']}<br />
					{$author['member_location']}
					{$author['member_number']}<br /><br />
				
					{$author['warn_text']} {$author['warn_minus']}{$author['warn_img']}{$author['warn_add']}
				</span><br />
        		<img src="{$this->ipsclass->vars['img_url']}/spacer.gif" alt="" width="160" height="1" />
        	</td>
        	<td class="{$data['classposts']}" width="100%" id='post-main-{$data['pid']}' valign='top'><div class="postcolor" id='post-{$data['pid']}' style='height:200px;overflow:auto'>{$data['post']} <!--IBF.ATTACHMENT_{$data['pid']}--></div></td>
        </tr>
        <tr>
        	<td class="formbuttonrow">&nbsp;</td>
        	<td class="formbuttonrow" style='text-align: left'>
        		{$this->ipsclass->lang['rp_forum']} <a href="{$this->ipsclass->base_url}showforum={$data['forum_id']}">{$data['forum_name']}</a>
        		&middot; {$this->ipsclass->lang['rp_post']} <a href="{$this->ipsclass->base_url}act=findpost&amp;hl={$data['keywords']}&amp;pid={$data['pid']}" class="linkthru">#{$data['pid']}</a>
        		&middot; {$this->ipsclass->lang['rp_replies']} <b>{$data['topic_posts']}</b>
        		&middot; {$this->ipsclass->lang['rp_hits']} <b>{$data['views']}</b>
        	</td>
  		</tr>
  	</table>
</div>