Sign in to follow this  
Bootycall

Topic View/Render Row Problem

Recommended Posts

... Hi Ehren,

i have the Deflection Template of you, it works fine.

But now have I a problem with the Topic View with IE7.

The Borders do not correctly. See the pics.

aa-ie7.pngafirefox.png

left with IE/, right with Firefox

Here the Code

<!--Begin Msg Number {$post['pid']}-->
<script type="text/javascript">
<!--

function default_request() {  
 var ro;  
 var browser = navigator.appName;  
 if(browser == "Microsoft Internet Explorer"){  
	 ro = new ActiveXObject("Microsoft.XMLHTTP");  
 }else{  
	 ro = new XMLHttpRequest();  
 }  
 return ro;  
}  

var thanks_http = default_request();
var thanksn = new ajax_request();

function thanks_add(act, pid, usp, tid) {
 thanksn.show_loading();
 thanks_http.open('get', 'index.php?act='+act+'&pid='+pid+'&usp='+usp+'&tid='+tid);
 thanks_http.onreadystatechange = thanks_handleResponse;  
 thanks_http.send(null);
}  


function thanks_handleResponse() {
 if(thanks_http.readyState == 4){  
	 var response = thanks_http.responseText;  
	 var update = new Array();
	 if(response.indexOf('|' != -1)) {  
		 update = response.split('|');
		document.getElementById(update[0]).innerHTML = update[1];
		var update2 = update[0] + 'b';
	document.getElementById(update2).innerHTML = "";
	thanksn.hide_loading();
	 }  
 }  
}

//-->
</script>
<table class='ipbtable' cellspacing="0">
<tr>
	<td valign="middle" class="post_head" width="1%">
		<a name="entry{$post['pid']}"></a>
		<if="$author['id']">
			<div id="post-member-{$post['pid']}" class='popmenubutton-new-out'>
				<span class="{$post['name_css']}">{$author['_pp_online_image']}{$author['_members_display_name']}</span>
			</div>
			<!-- member menu -->
			<div class='popupmenu-new' id='post-member-{$post['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("&do=remove&member_id={$author['id']}&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("&do=add&member_id={$author['id']}&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&CODE=4&MID={$author['id']}">{$this->ipsclass->lang['dd_send_pm']}</a>
						</div>
						<div class='popupmenu-item'>
							<img src='{$this->ipsclass->vars['img_url']}/folder_profile_portal/find_posts.png' alt='' border='0' /> <a href='{$this->ipsclass->base_url}act=Search&CODE=gettopicsuser&mid={$author['id']}'>{$this->ipsclass->lang['dd_find_topics']}</a>
						</div>
						<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&CODE=getalluser&mid={$author['id']}'>{$this->ipsclass->lang['dd_find_posts']}</a>
						</div>
					</if>
				</div>
			</div>
			<!-- member menu -->
			<script type="text/javascript">
				ipsmenu.register( "post-member-{$post['pid']}", '', 'popmenubutton-new', 'popmenubutton-new-out' );
			</script>
		<else />
			<span class="{$post['name_css']}">{$author['_members_display_name']}</span>
		</if>

	</td>
	<td class="post_head" valign="middle" width="99%">
		<!-- POSTED DATE DIV -->
		<div style="float: left;">
			<span class="postdetails">{$post['post_icon']} <img src='{$this->ipsclass->vars['img_url']}/to_post_off.gif' alt='{$this->ipsclass->lang['to_post_alt']}' border='0' style='padding-bottom:2px' /> {$post['post_date']}</span>
		</div>
		<!-- REPORT / DELETE / EDIT / QUOTE DIV -->
		<div align="right">
			<span class="postdetails">{$post['ip_address']} {$this->ipsclass->lang['posted_on']}
				<a title="{$this->ipsclass->lang['tt_link']}" href="{$this->ipsclass->vars['board_url']}/index.{$this->ipsclass->vars['php_ext']}?showtopic={$post['topic_id']}&view=findpost&p={$post['pid']}" onclick="link_to_post({$post['pid']}); return false;">#{$post['post_count']}</a>
				<if="$this->ipsclass->member['is_mod']">
					| <a href="#" title="{$this->ipsclass->lang['click_for_mod']}" onclick="topic_toggle_pid('{$post['pid']}'); return false;">{$post['pid_start_image']}</a>
				</if>
			</span>
		</div>
	</td>
</tr>
<tr>
	<td valign="top" class="{$post['post_css']} post_left">
		<p style='padding: 3px;margin: 0px;'><span class="postdetails">
			<if="$author['id'] AND $author['avatar']"><center>{$author['avatar']}</center><br /><br /><else /><center><a href="{$this->ipsclass->base_url}showuser={$author['id']}" title="{$this->ipsclass->lang['dd_view_profile']}"><img src='style_images/<#IMG_DIR#>/noava.jpg' border='0' alt='' /></a><br /><br /></if></center>
		   {$author['member_personal_tag']} 
		   {$author['member_rank_img']}<br /><br />
			<b>{$author['title']}</b><br />
			{$author['member_group']}<br />
			{$author['member_posts']}<br />
		{$author['thanks_point']}<br />
					{$author['member_points']}
			{$author['member_ibbookie_points']}
			{$author['member_bookie_points']}
			{$author['member_bets']}
			{$author['member_joined']}<br />
			{$author['member_location']}
			{$author['member_number']}<br />
			<if="$author['custom_fields'] != """>
				{$author['custom_fields']}
			</if>
<if="$this->ipsclass->vars['messenger_display_online']"><div align="center">
<if="$this->ipsclass->vars['icon_clickable_enabled']"><if="$author['msnname']"><a href="msnim:chat?contact={$author['msnname']}"><img src="{$this->ipsclass->vars['img_url']}/msn.png"></a></if>
<else /><if="$author['msnname']"><img src="{$this->ipsclass->vars['img_url']}/msn.png"></if></if>
<if="$this->ipsclass->vars['icon_clickable_enabled']"><if="$author['aim_name']"><a href="aim:goim?screenname={$author['aim_name']}"><img src="{$this->ipsclass->vars['img_url']}/aim.png"></a></if>
<else /><if="$author['aim_name']"><img src="{$this->ipsclass->vars['img_url']}/aim.png"></if></if>
<if="$this->ipsclass->vars['icon_clickable_enabled']"><if="$author['icq_number']"><a href="http://wwp.icq.com/scripts/search.dll?to={$author['icq_number']}" TARGET="_blank"><img src="{$this->ipsclass->vars['img_url']}/icq.png"></a></if>
<else /><if="$author['icq_number']"><img src="{$this->ipsclass->vars['img_url']}/icq.png"></if></if>
<if="$this->ipsclass->vars['icon_clickable_enabled']"><if="$author['yahoo']"><a href="ymsgr:sendIM?{$author['yahoo']}"><img src="{$this->ipsclass->vars['img_url']}/yahoo.png"></a></if>
<else /><if="$author['yahoo']"><img src="{$this->ipsclass->vars['img_url']}/yahoo.png"></if></if></div></if>
			{$author['warn_text']} {$author['warn_minus']}{$author['warn_img']}{$author['warn_add']}
		</span></p>
		<img src="{$this->ipsclass->vars['img_url']}/spacer.gif" alt="" width="160" height="1" /><br /> 
   </td>
   <td width="100%" valign="top" class="{$post['post_css']}" id='post-main-{$post['pid']}'>
		<!-- THE POST {$post['pid']} -->
		<div class="postcolor" id='post-{$post['pid']}'>
			{$post['post']}
			{$post['edit_by']}
			<if="$post['post_edit_reason'] != ''">
				<div class='post-edit-reason'>
					{$this->ipsclass->lang['reason_for_edit']}: {$post['post_edit_reason']}
				</div>
			</if>
			<!--IBF.ATTACHMENT_{$post['pid']}-->
		</div>

		{$post['signature']}
		<!-- THE POST -->		
	</td>
</tr>
<tr>
	<td class="formbuttonrow" nowrap="nowrap">
		<div style='text-align:left'><a href="java script:scroll(0,0);"><{P_UP}></a>{$post['report_link']}</div>
	</td>
	<td class="formbuttonrow" nowrap="nowrap">
		<!-- PM / EMAIL / WWW / MSGR -->
		<div style="float: left;">
			 
		</div>
		<!-- REPORT / UP -->
	 	<!-- BOOKMARKIT LINK BAR -->
		<div id="bookmarkit" style="float: left;">{$this->ipsclass->vars[ 'bookmarkit_linkbar' ]}</div>
		<div align="right">
	 		{$post['delete_button']}{$post['thanks_button']}{$post['edit_button']}<a href="#" onclick="multiquote_add({$post['pid']}); return false;" title="{$this->ipsclass->lang['mq_title']}">{$post['mq_start_image']}</a><a href="{$this->ipsclass->base_url}act=Post&CODE=02&f={$this->ipsclass->input['f']}&t={$this->ipsclass->input['t']}&qpid={$post['pid']}" title="{$this->ipsclass->lang['tt_reply_to_post']}"><{P_QUOTE}></a>
	 	</div>
	 </td>
</tr><tr>
 {$post['who_thanks']}
<td class="catend" colspan="2">
<!-- no content -->
</td>
</tr>
</table>
<if="$post['edit_button']!=''">
<script type='text/javascript'>
//<![CDATA[
if ( ajax_loaded && use_enhanced_js )
{
menu_build_menu( 'edit-but-{$post['pid']}',
new Array(  img_item + " <a title='{$this->ipsclass->lang['edit_full_desc']}' href='{$this->ipsclass->base_url}act=post&do=edit_post&f={$post['forum_id']}&t={$post['topic_id']}&p={$post['pid']}&st={$this->ipsclass->input['st']}'>{$this->ipsclass->lang['edit_full_title']}</a>",
			img_item + " <a href='#' title='{$this->ipsclass->lang['edit_quick_desc']}' onclick='return ajax_prep_for_edit({$post['pid']}, event);'>{$this->ipsclass->lang['edit_quick_title']}</a>" ) );
}
//]]>
</script>
</if>

Thanks for help

Share this post


Link to post
Share on other sites

Hey,

Change that code to:

<!--Begin Msg Number {$post['pid']}-->
<script type="text/javascript">
<!--

function default_request() {  
    var ro;  
    var browser = navigator.appName;  
    if(browser == "Microsoft Internet Explorer"){  
        ro = new ActiveXObject("Microsoft.XMLHTTP");  
    }else{  
        ro = new XMLHttpRequest();  
    }  
    return ro;  
}  

var thanks_http = default_request();
var thanksn = new ajax_request();

function thanks_add(act, pid, usp, tid) {
    thanksn.show_loading();
    thanks_http.open('get', 'index.php?act='+act+'&pid='+pid+'&usp='+usp+'&tid='+tid);
    thanks_http.onreadystatechange = thanks_handleResponse;  
    thanks_http.send(null);
}  


function thanks_handleResponse() {
    if(thanks_http.readyState == 4){  
        var response = thanks_http.responseText;  
        var update = new Array();
        if(response.indexOf('|' != -1)) {  
            update = response.split('|');
           document.getElementById(update[0]).innerHTML = update[1];
           var update2 = update[0] + 'b';
       document.getElementById(update2).innerHTML = "";
       thanksn.hide_loading();
        }  
    }  
}

//-->
</script>
<table class='ipbtable' cellspacing="0">
   <tr>
       <td valign="middle" class="post_head" width="1%">
           <a name="entry{$post['pid']}"></a>
           <if="$author['id']">
               <div id="post-member-{$post['pid']}" class='popmenubutton-new-out'>
                   <span class="{$post['name_css']}">{$author['_pp_online_image']}{$author['_members_display_name']}</span>
               </div>
               <!-- member menu -->
               <div class='popupmenu-new' id='post-member-{$post['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("&do=remove&member_id={$author['id']}&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("&do=add&member_id={$author['id']}&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&CODE=4&MID={$author['id']}">{$this->ipsclass->lang['dd_send_pm']}</a>
                           </div>
                           <div class='popupmenu-item'>
                               <img src='{$this->ipsclass->vars['img_url']}/folder_profile_portal/find_posts.png' alt='' border='0' /> <a href='{$this->ipsclass->base_url}act=Search&CODE=gettopicsuser&mid={$author['id']}'>{$this->ipsclass->lang['dd_find_topics']}</a>
                           </div>
                           <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&CODE=getalluser&mid={$author['id']}'>{$this->ipsclass->lang['dd_find_posts']}</a>
                           </div>
                       </if>
                   </div>
               </div>
               <!-- member menu -->
               <script type="text/javascript">
                   ipsmenu.register( "post-member-{$post['pid']}", '', 'popmenubutton-new', 'popmenubutton-new-out' );
               </script>
           <else />
               <span class="{$post['name_css']}">{$author['_members_display_name']}</span>
           </if>

       </td>
       <td class="post_head" valign="middle" width="99%">
           <!-- POSTED DATE DIV -->
           <div style="float: left;">
               <span class="postdetails">{$post['post_icon']} <img src='{$this->ipsclass->vars['img_url']}/to_post_off.gif' alt='{$this->ipsclass->lang['to_post_alt']}' border='0' style='padding-bottom:2px' /> {$post['post_date']}</span>
           </div>
           <!-- REPORT / DELETE / EDIT / QUOTE DIV -->
           <div align="right">
               <span class="postdetails">{$post['ip_address']} {$this->ipsclass->lang['posted_on']}
                   <a title="{$this->ipsclass->lang['tt_link']}" href="{$this->ipsclass->vars['board_url']}/index.{$this->ipsclass->vars['php_ext']}?showtopic={$post['topic_id']}&view=findpost&p={$post['pid']}" onclick="link_to_post({$post['pid']}); return false;">#{$post['post_count']}</a>
                   <if="$this->ipsclass->member['is_mod']">
                       | <a href="#" title="{$this->ipsclass->lang['click_for_mod']}" onclick="topic_toggle_pid('{$post['pid']}'); return false;">{$post['pid_start_image']}</a>
                   </if>
               </span>
           </div>
       </td>
   </tr>
   <tr>
       <td valign="top" class="{$post['post_css']} post_left">
           <div class='mem_details'><span class="postdetails">
               <if="$author['id'] AND $author['avatar']"><center>{$author['avatar']}</center><br /><br /><else /><center><a href="{$this->ipsclass->base_url}showuser={$author['id']}" title="{$this->ipsclass->lang['dd_view_profile']}"><img src='style_images/<#IMG_DIR#>/noava.jpg' border='0' alt='' /></a><br /><br /></if></center>
              {$author['member_personal_tag']}
              {$author['member_rank_img']}<br /><br />
               <b>{$author['title']}</b><br />
               {$author['member_group']}<br />
               {$author['member_posts']}<br />
           {$author['thanks_point']}<br />
                       {$author['member_points']}
               {$author['member_ibbookie_points']}
               {$author['member_bookie_points']}
               {$author['member_bets']}
               {$author['member_joined']}<br />
               {$author['member_location']}
               {$author['member_number']}<br />
               <if="$author['custom_fields'] != """>
                   {$author['custom_fields']}
               </if>
<if="$this->ipsclass->vars['messenger_display_online']"><div align="center">
<if="$this->ipsclass->vars['icon_clickable_enabled']"><if="$author['msnname']"><a href="msnim:chat?contact={$author['msnname']}"><img src="{$this->ipsclass->vars['img_url']}/msn.png"></a></if>
<else /><if="$author['msnname']"><img src="{$this->ipsclass->vars['img_url']}/msn.png"></if></if>
<if="$this->ipsclass->vars['icon_clickable_enabled']"><if="$author['aim_name']"><a href="aim:goim?screenname={$author['aim_name']}"><img src="{$this->ipsclass->vars['img_url']}/aim.png"></a></if>
<else /><if="$author['aim_name']"><img src="{$this->ipsclass->vars['img_url']}/aim.png"></if></if>
<if="$this->ipsclass->vars['icon_clickable_enabled']"><if="$author['icq_number']"><a href="http://wwp.icq.com/scripts/search.dll?to={$author['icq_number']}" TARGET="_blank"><img src="{$this->ipsclass->vars['img_url']}/icq.png"></a></if>
<else /><if="$author['icq_number']"><img src="{$this->ipsclass->vars['img_url']}/icq.png"></if></if>
<if="$this->ipsclass->vars['icon_clickable_enabled']"><if="$author['yahoo']"><a href="ymsgr:sendIM?{$author['yahoo']}"><img src="{$this->ipsclass->vars['img_url']}/yahoo.png"></a></if>
<else /><if="$author['yahoo']"><img src="{$this->ipsclass->vars['img_url']}/yahoo.png"></if></if></div></if>
               {$author['warn_text']} {$author['warn_minus']}{$author['warn_img']}{$author['warn_add']}
           </span></div>
           <img src="{$this->ipsclass->vars['img_url']}/spacer.gif" alt="" width="160" height="1" /><br />
      </td>
      <td width="100%" valign="top" class="{$post['post_css']}" id='post-main-{$post['pid']}'>
           <!-- THE POST {$post['pid']} -->
           <div class="postcolor" id='post-{$post['pid']}'>
               {$post['post']}
               {$post['edit_by']}
               <if="$post['post_edit_reason'] != ''">
                   <div class='post-edit-reason'>
                       {$this->ipsclass->lang['reason_for_edit']}: {$post['post_edit_reason']}
                   </div>
               </if>
               <!--IBF.ATTACHMENT_{$post['pid']}-->
           </div>

           {$post['signature']}
           <!-- THE POST -->        
       </td>
   </tr>
   <tr>
       <td class="formbuttonrow" nowrap="nowrap">
           <div style='text-align:left'><a href="java script:scroll(0,0);"><{P_UP}></a>{$post['report_link']}</div>
       </td>
       <td class="formbuttonrow" nowrap="nowrap">
           <!-- PM / EMAIL / WWW / MSGR -->
           <div style="float: left;">
                
           </div>
           <!-- REPORT / UP -->
            <!-- BOOKMARKIT LINK BAR -->
           <div id="bookmarkit" style="float: left;">{$this->ipsclass->vars[ 'bookmarkit_linkbar' ]}</div>
           <div align="right">
                {$post['delete_button']}{$post['thanks_button']}{$post['edit_button']}<a href="#" onclick="multiquote_add({$post['pid']}); return false;" title="{$this->ipsclass->lang['mq_title']}">{$post['mq_start_image']}</a><a href="{$this->ipsclass->base_url}act=Post&CODE=02&f={$this->ipsclass->input['f']}&t={$this->ipsclass->input['t']}&qpid={$post['pid']}" title="{$this->ipsclass->lang['tt_reply_to_post']}"><{P_QUOTE}></a>
            </div>
        </td>
   </tr><tr>
 {$post['who_thanks']}
   <td class="catend" colspan="2">
   <!-- no content -->
   </td>
</tr>
</table>
<if="$post['edit_button']!=''">
<script type='text/javascript'>
//<![CDATA[
if ( ajax_loaded && use_enhanced_js )
{
menu_build_menu( 'edit-but-{$post['pid']}',
   new Array(  img_item + " <a title='{$this->ipsclass->lang['edit_full_desc']}' href='{$this->ipsclass->base_url}act=post&do=edit_post&f={$post['forum_id']}&t={$post['topic_id']}&p={$post['pid']}&st={$this->ipsclass->input['st']}'>{$this->ipsclass->lang['edit_full_title']}</a>",
               img_item + " <a href='#' title='{$this->ipsclass->lang['edit_quick_desc']}' onclick='return ajax_prep_for_edit({$post['pid']}, event);'>{$this->ipsclass->lang['edit_quick_title']}</a>" ) );
}
//]]>
</script>
</if>

Then add the following to your stylesheet:

.mem_details{
padding: 3px;
background: #303030;
border: 1px solid #555555;
}

Let me know if that doesn't work :)

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this