Jump to content
Sign in to follow this  
Hurt_Town

-4 new messages?

Recommended Posts

??? because either 4 people sent you 1 pm each, or one person sent you 4 pms ???

 

You might want to explain your situation a little better

Share this post


Link to post
Share on other sites

Oh i just thought that was a dash..

 

Just some sort of glitch maybe.. they're revamping ns.com soon arn't they???

Share this post


Link to post
Share on other sites

that happened to me as well... don't know what happened but once i got some pm's it went away :S

Share this post


Link to post
Share on other sites

Send yourself 4 pms (or how ever many it says) but READ THEM don't just delete them straight away.

Share this post


Link to post
Share on other sites

yeh i had -5 messages

then i got one, now i have -4

tis quite annoying cos when u get a new msg, it doesnt send u a msg to ur hotmail saying u got one, cos u have minus(and doesnt count as a new msg)

Share this post


Link to post
Share on other sites

not too sure why it happens but i think its because you have recieved messages and not read them, i had -1 and as soon as i recieved 1 it went away

Share this post


Link to post
Share on other sites

I had -2 for a while now, but todays its -3. There isn't any PM's in my inbox

Share this post


Link to post
Share on other sites

This has happened to me i think it is caused when you delete a message from you inbox that you haven't read! I found that cause i read it when it pops up i didn't need to read it again from my inbox. Since i deleted it i have had -1 does this sound similar to anyone with the issue???

Share this post


Link to post
Share on other sites

Its a bug with Version 2.2.x of Invision Power Board.

 

Heres a fix if someone wants to do the edit.

 

In 'sources/lib/func_msg.php' find

 

			//-----------------------------------------
	   // Update new PM notifications
	   //-----------------------------------------

	   if ( count($unread) )
	  {
		   foreach( $unread as $mid => $cnt )
		   {
			   $this->ipsclass->DB->simple_construct( array( 'update' => 'members', 'set' => "new_msg=new_msg-{$cnt}, show_popup=0", 'where' => "id={$mid}" ) );
			   $this->ipsclass->DB->simple_exec();
		  }
	   }

 

And replace with

 

		   //-----------------------------------------
	   // Update new PM notifications
	   //-----------------------------------------

	  if ( count($unread) )
	  {
		  $members = array();

		  $this->ipsclass->DB->build_query( array( 'select' => 'new_msg,id', 'from' => 'members', 'where' => "id IN(" . implode( ',', array_keys($unread) ) .")" ) );
		  $this->ipsclass->DB->exec_query();

		  while( $mem_pm_cnts = $this->ipsclass->DB->fetch_row() )
		  {
			  $members[ $mem_pm_cnts['id'] ] = $mem_pm_cnts['new_msg'];
		  }

		  foreach( $unread as $mid => $cnt )
		  {
			  $cur = $members[ $mid ];

			  if( $cur < $cnt )
			  {
				  $cnt = $cur;
			  }

			  $this->ipsclass->DB->simple_construct( array( 'update' => 'members', 'set' => "new_msg=new_msg-{$cnt}, show_popup=0", 'where' => "id={$mid}" ) );
			  $this->ipsclass->DB->simple_exec();
		  }

		  unset($members);
	  }

 

And then run this query to reset everyone who has '-something' new messages to 0

 

UPDATE ibf_members SET new_msg = 0 WHERE new_msg < 0

 

That is, of course if you still have the default database tables

Edited by Mikel

Share this post


Link to post
Share on other sites

me too

 

-1 New Messages

Share this post


Link to post
Share on other sites

I to have -2 pm's and am not showing any new messages in my inbox?

Share this post


Link to post
Share on other sites
Can one of the admins please rectify this problem?? It's getting quite annoying.

 

Its a bug with Version 2.2.x of Invision Power Board.

 

Heres a fix if someone wants to do the edit.

 

In 'sources/lib/func_msg.php' find

 

			//-----------------------------------------
	   // Update new PM notifications
	   //-----------------------------------------

	   if ( count($unread) )
	  {
		   foreach( $unread as $mid => $cnt )
		   {
			   $this->ipsclass->DB->simple_construct( array( 'update' => 'members', 'set' => "new_msg=new_msg-{$cnt}, show_popup=0", 'where' => "id={$mid}" ) );
			   $this->ipsclass->DB->simple_exec();
		  }
	   }

 

And replace with

 

		   //-----------------------------------------
	   // Update new PM notifications
	   //-----------------------------------------

	  if ( count($unread) )
	  {
		  $members = array();

		  $this->ipsclass->DB->build_query( array( 'select' => 'new_msg,id', 'from' => 'members', 'where' => "id IN(" . implode( ',', array_keys($unread) ) .")" ) );
		  $this->ipsclass->DB->exec_query();

		  while( $mem_pm_cnts = $this->ipsclass->DB->fetch_row() )
		  {
			  $members[ $mem_pm_cnts['id'] ] = $mem_pm_cnts['new_msg'];
		  }

		  foreach( $unread as $mid => $cnt )
		  {
			  $cur = $members[ $mid ];

			  if( $cur < $cnt )
			  {
				  $cnt = $cur;
			  }

			  $this->ipsclass->DB->simple_construct( array( 'update' => 'members', 'set' => "new_msg=new_msg-{$cnt}, show_popup=0", 'where' => "id={$mid}" ) );
			  $this->ipsclass->DB->simple_exec();
		  }

		  unset($members);
	  }

 

And then run this query to reset everyone who has '-something' new messages to 0

 

UPDATE ibf_members SET new_msg = 0 WHERE new_msg < 0

 

That is, of course if you still have the default database tables

Edited by Mikel

Share this post


Link to post
Share on other sites

If you delete a message before you read it you will go down 1 message so send yourself 4 message read them all and then delete them and you will be back to 0

Share this post


Link to post
Share on other sites

Your content will need to be approved by a moderator

Guest
You are commenting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoticons maximum are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×