Nukemods Forum  
» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 82
6 members and 76 guests
besnj8stforesz6, int4qqgensivedr, kriste4ablesrdq, sexwiylry6inger, submjmersibletw, verdw2sicherung
Most users ever online was 611, 03-21-2008 at 11:10 PM.
» .::.
tattoo fonts
http://www.checkoutmyink.com/category/tattoo-fonts-tattoo

Go Back   Nukemods Forum > NM Staff > Purged Topics

Reply
 
LinkBack Thread Tools Display Modes
Some strange errors with Private Messages...
Old
  (#1 (permalink))
Junior Member
 
Status: Offline
Posts: 85
Join Date: Nov 2002
Location: Sweden
Some strange errors with Private Messages... - 12-14-2002, 05:25 PM

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
 Send a message via ICQ to zlaxzzor Send a message via MSN to zlaxzzor  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#2 (permalink))
Senior Member
 
Status: Offline
Posts: 2,905
Join Date: Sep 2002
12-21-2002, 09:42 PM

I'll be darned, I totally misssed this post of yours bud. Does it really work? Well heck I'm gonna give it a try on my test site.

Good Job!!!!

That's one thing that bothers me still about the whole private messages thing. There are still two private message systems running when running Nuke and the ported Forums...drives me nutz. blah.

mikem
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
SkyLineBlue Private messages Mizzat Theme packs 0 08-08-2003 09:58 PM
Error on forums and private messages k9canada Nuke 6.5 to 6.9 - Modules 3 05-04-2003 07:10 AM
Error at memberslist and Private messages DJ-Loki Nuke 6.5 to 6.9 - Modules 6 04-04-2003 01:49 PM
You have also strange errors! DJ-Loki nukemods.com 3 03-23-2003 04:51 PM
Private Messages been read yet? Martin Purged Topics 2 12-17-2002 09:28 PM




vBulletin Skin developed by: vBStyles.com


LinkBacks Enabled by vBSEO 3.3.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31