MyBB Community Forums

Full Version: Big problem with ignore funtion
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey there, 

I have tried to figure this out on my own but I still haven't managed. I'm staff on a board and we have a big problem with the ignore function. In essence, it's not working.

In the usual function, you ignore someone and get this. Which means you can choose to show the post and read it or not. 

What is happening for me is this, which is a problem. The bar is there and has registered that the poster is ignored, but the post still hangs below it. Click the button and the bar vanishes but the post is there regardless. 

Here is the link to the board if you need it: Link. If you need an account to check something out let me know and I'll create one for you. Any help in fixing this is appreciated!
@Onyxian can you post your template postbit_classic.
here is the whole postbit_classic template:

{$ignore_bit}
<a name="pid{$post['pid']}" id="pid{$post['pid']}"></a>
<table width="100%" cellspacing="0" cellpadding="{$theme['tablespace']}" border="0" align="center">
<tr>
<td valign="top" width="18%" class="arrow_box"><br/>

    
<div class="post_author scaleimages" style="margin-left: 20px; margin-top: 10px;">
 	{$post['onlinestatus']} <strong><span class="largetext" style="font-size: 18px; padding-top: 10px;">{$post['profilelink']}</span></strong> 
	<div style="margin-top: 5px;">{$post['useravatar']}</div>
	<div class="author_information">
			<div style="margin-top: 10px;">
              <span class="smalltext">
				{$post['usertitle']}<br />
				{$post['userstars']}
				{$post['groupimage']} {$post['additional_images']}
			</span></div>
   </div>
	<div class="author_statistics">
		{$post['user_details']}<br />{$post['usermood']}{$post['ougc_awards']}
	</div>
</div>
    

<br/><br/><br/>
</td>
<td>&nbsp;</td>
<td valign="top">

  <div class="postbitVisibility {$unapproved_shade}">
  <div class="post_content">
	<div class="post_head">
		{$post['posturl']}
		{$post['icon']}
		<span class="post_date">{$post['postdate']} <span class="post_edit" id="edited_by_{$post['pid']}">{$post['editedmsg']}</span></span>
	{$post['subject_extra']}
	</div><div class="border2">
	<div class="post_body scaleimages" id="pid_{$post['pid']}">
	<br/>{$post['message']}<br/>
	</div>
	<center>{$post['attachments']}
  {$post['signature']}</center>
</div>
</div>
</div> 
 
<br/><br/><br/>
</td>
</tr>
</table>
<div class="post_controls">
	<div class="postbit_buttons author_buttons float_left">
		{$post['button_email']}{$post['button_pm']}{$post['button_www']}{$post['button_find']}{$post['button_rep']}{$post['iplogged']}
	</div>
	<div class="postbit_buttons post_management_buttons float_right">
		{$post['button_edit']}{$post['button_quickdelete']}{$post['button_quickrestore']}{$post['button_quote']}{$post['thanks']}{$post['button_multiquote']}{$post['button_report']}{$post['button_warn']}{$post['button_purgespammer']}{$post['button_reply_pm']}{$post['button_replyall_pm']}{$post['button_forward_pm']}{$post['button_delete_pm']}
	</div>{$post['thxdsp_outline']}
</div>
Change it with this:
{$ignore_bit}
<a name="pid{$post['pid']}" id="pid{$post['pid']}"></a>
<table width="100%" cellspacing="0" cellpadding="{$theme['tablespace']}" border="0" align="center" style="{$post_visibility}">
<tr>
<td valign="top" width="18%" class="arrow_box"><br/>

   
<div class="post_author scaleimages" style="margin-left: 20px; margin-top: 10px;">
    {$post['onlinestatus']} <strong><span class="largetext" style="font-size: 18px; padding-top: 10px;">{$post['profilelink']}</span></strong>
    <div style="margin-top: 5px;">{$post['useravatar']}</div>
    <div class="author_information">
            <div style="margin-top: 10px;">
             <span class="smalltext">
                {$post['usertitle']}<br />
                {$post['userstars']}
                {$post['groupimage']} {$post['additional_images']}
            </span></div>
  </div>
    <div class="author_statistics">
        {$post['user_details']}<br />{$post['usermood']}{$post['ougc_awards']}
    </div>
</div>
   

<br/><br/><br/>
</td>
<td>&nbsp;</td>
<td valign="top">

 <div class="postbitVisibility {$unapproved_shade}">
 <div class="post_content">
    <div class="post_head">
        {$post['posturl']}
        {$post['icon']}
        <span class="post_date">{$post['postdate']} <span class="post_edit" id="edited_by_{$post['pid']}">{$post['editedmsg']}</span></span>
    {$post['subject_extra']}
    </div><div class="border2">
    <div class="post_body scaleimages" id="pid_{$post['pid']}">
    <br/>{$post['message']}<br/>
    </div>
    <center>{$post['attachments']}
 {$post['signature']}</center>
</div>
</div>
</div>

<br/><br/><br/>
</td>
</tr>
</table>
<div class="post_controls" style="{$post_visibility}">
    <div class="postbit_buttons author_buttons float_left">
        {$post['button_email']}{$post['button_pm']}{$post['button_www']}{$post['button_find']}{$post['button_rep']}{$post['iplogged']}
    </div>
    <div class="postbit_buttons post_management_buttons float_right">
        {$post['button_edit']}{$post['button_quickdelete']}{$post['button_quickrestore']}{$post['button_quote']}{$post['thanks']}{$post['button_multiquote']}{$post['button_report']}{$post['button_warn']}{$post['button_purgespammer']}{$post['button_reply_pm']}{$post['button_replyall_pm']}{$post['button_forward_pm']}{$post['button_delete_pm']}
    </div>{$post['thxdsp_outline']}
</div>
There is progress!

I replaced it and now it's hidden the post as it is supposed to, but it doesn't reveal the post when you click ''Show this Post''. The ignore bar disappears but the post does not appear in its place.
Ok, try to change it with this:
{$ignore_bit}
<a name="pid{$post['pid']}" id="pid{$post['pid']}"></a>
<div id="post_{$post['pid']}" style="{$post_visibility}">
	<table width="100%" cellspacing="0" cellpadding="{$theme['tablespace']}" border="0" align="center">
	<tr>
	<td valign="top" width="18%" class="arrow_box"><br/>

	   
	<div class="post_author scaleimages" style="margin-left: 20px; margin-top: 10px;">
		{$post['onlinestatus']} <strong><span class="largetext" style="font-size: 18px; padding-top: 10px;">{$post['profilelink']}</span></strong>
		<div style="margin-top: 5px;">{$post['useravatar']}</div>
		<div class="author_information">
				<div style="margin-top: 10px;">
				 <span class="smalltext">
					{$post['usertitle']}<br />
					{$post['userstars']}
					{$post['groupimage']} {$post['additional_images']}
				</span></div>
	  </div>
		<div class="author_statistics">
			{$post['user_details']}<br />{$post['usermood']}{$post['ougc_awards']}
		</div>
	</div>
	   

	<br/><br/><br/>
	</td>
	<td>&nbsp;</td>
	<td valign="top">

	 <div class="postbitVisibility {$unapproved_shade}">
	 <div class="post_content">
		<div class="post_head">
			{$post['posturl']}
			{$post['icon']}
			<span class="post_date">{$post['postdate']} <span class="post_edit" id="edited_by_{$post['pid']}">{$post['editedmsg']}</span></span>
		{$post['subject_extra']}
		</div><div class="border2">
		<div class="post_body scaleimages" id="pid_{$post['pid']}">
		<br/>{$post['message']}<br/>
		</div>
		<center>{$post['attachments']}
	 {$post['signature']}</center>
	</div>
	</div>
	</div>

	<br/><br/><br/>
	</td>
	</tr>
	</table>
	<div class="post_controls">
		<div class="postbit_buttons author_buttons float_left">
			{$post['button_email']}{$post['button_pm']}{$post['button_www']}{$post['button_find']}{$post['button_rep']}{$post['iplogged']}
		</div>
		<div class="postbit_buttons post_management_buttons float_right">
			{$post['button_edit']}{$post['button_quickdelete']}{$post['button_quickrestore']}{$post['button_quote']}{$post['thanks']}{$post['button_multiquote']}{$post['button_report']}{$post['button_warn']}{$post['button_purgespammer']}{$post['button_reply_pm']}{$post['button_replyall_pm']}{$post['button_forward_pm']}{$post['button_delete_pm']}
		</div>{$post['thxdsp_outline']}
	</div> 
</div>
You fantastic soul. Thank you! It's working!