• Howdy! Welcome to our community of more than 130.000 members devoted to web hosting. This is a great place to get special offers from web hosts and post your own requests or ads. To start posting sign up here. Cheers! /Peo, FreeWebSpace.net
managed wordpress hosting

Private Messages: Unread 65535 [merged]

Status
Not open for further replies.
So...

Code:
--- vb3/private.php	2006/04/06 22:49:04	1.338
+++ vb3/private.php	2006/04/29 16:57:15	1.339
@@ -1341,11 +1341,14 @@ if ($_REQUEST['do'] == 'showpm')
 	{
 		$db->shutdown_query("UPDATE " . TABLE_PREFIX . "pm SET messageread=1 WHERE userid=" . $vbulletin->userinfo['userid'] . " AND pmid=$pm[pmid]");
 
-		$userdm =& datamanager_init('User', $vbulletin, ERRTYPE_SILENT);
-		$userdm->set_existing($vbulletin->userinfo);
-		$userdm->set('pmunread', 'IF(pmunread >= 1, pmunread - 1, 0)', false);
-		$userdm->save(true, true);
-		unset($userdm);
+		if (!$pm['folderid'])
+		{
+			$userdm =& datamanager_init('User', $vbulletin, ERRTYPE_SILENT);
+			$userdm->set_existing($vbulletin->userinfo);
+			$userdm->set('pmunread', 'IF(pmunread >= 1, pmunread - 1, 0)', false);
+			$userdm->save(true, true);
+			unset($userdm);
+		}
 	}
 
Peo is going to be away for a few days. I'm sure he'll take a look when he gets a chance.
 
In the meantime, while waiting for Peo, you can start reading your 65535 unread PMs; you have a lot of reading to do. :wave:
 
I don't think so, but I don't feel like replicating the bug myself.

It seems private.php needs to be edited.
 
I had that problem a while ago, i had it after i changed some setting in my CP, when i changed it vack the problem was solved, and since then i haven't had it again.

Sorry i don't remember what i did,

But if you did change some settings - it has something to do with the PM's i think - change them back, and your problem should be solved.
 
Status
Not open for further replies.
Back
Top