Well, I'm having some problems with my private messages-counters... The one in the userinfo-block and the one at the your_account-page doesn't really work... I've edited them both, so it's not that they are "linked" to the wrong version of the pmsg system...
Anyway, my userinfo-block I've edited from the thread:
http://bbtonuke.sourceforge.net/modu...ewtopic&p=6757
About the your_account-page counter, I couldn't find any place where Total messages were stored, so I made my own fix for this (and I'm proud of it, it is the first php-thing I have done on my own

):
Code:
CHANGE:
$result2 = sql_query("select privmsgs_to_userid from ".$prefix."_bbprivmsgs where privmsgs_to_userid='$userinfo[uid]'", $dbi);
TO:
$result2 = sql_query("select privmsgs_to_userid from ".$prefix."_bbprivmsgs where privmsgs_to_userid='$userinfo[uid]' and privmsgs_type=5", $dbi);
$numrow = sql_num_rows($result2, $dbi);
$result3 = sql_query("select privmsgs_to_userid from ".$prefix."_bbprivmsgs where privmsgs_to_userid='$userinfo[uid]' and privmsgs_type=0", $dbi);
$numrow2 = sql_num_rows($result3, $dbi);
$privmsgs = $numrow+$numrow2;
Then you also have to link to this new variable instead of the old one,
Code:
CHANGE:
echo ""._YOUHAVE." <a href=\"modules.php?name=Private_Messages\">$numrow</a> "._PRIVATEMSG."
"
TO:
echo ""._YOUHAVE." <a href=\"modules.php?name=Private_Messages\">$privmsgs</a> "._PRIVATEMSG."
"
Though, none of these two fixes are bugfree, both of them has the same bug... The bug is that it doesn't show new messages if you haven't really checked your private messages, so it's still pretty useless... What I mean is, that if you have got a new message, it doesn't really show up in the counters if you don't open the Private Messages inbox. If you open this site firstly without opening the new message, and then go back to the your_account page it will be counted in both the userinfo-block and in the your_account page and then it shows the correct total ammount, so that proves that it works in some strange sort of way...
This bugfix I need for both my userinfo-block and for this your_account text... I've exactly the same bug in both of them. I think I'll need help with this one...
I don't know if this could be a issue of the Header location/refresh thing, that doesn't work in IIS or whatever it was... I don't know really, just heard something about that in some other mod that didn't work as it should have in IIS... And he had to change the Header("Location: url"); into Header("Refresh: 0;url=url"); to get it to work at his IIS-server... Now I don't have a clue if this pmsg-module even uses that or where and how I can find that codes in that case...
Please help me out here