You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 42 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Being told I have new pm: when I don't / after I send one. [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
jimmyjimjim
Lieutenant
Lieutenant


Joined: Jan 23, 2003
Posts: 258

Location: USA

PostPosted: Wed Jan 29, 2003 4:23 pm Reply with quoteBack to top

This one's got me... I took the code straight from the user-info block to place a blinky pm icon on the menu bar.

The block-info-user and this piece of code are both telling me that I have a new PM when I send another user a pm.

I'm using 6.5b6 with fixfiles 3. I looked over the tables and everything makes sense except I don't understand the difference between a type='1' and type='5' prvmsg. Anyway, the block-user-info is telling me I have unread msgs when I dont even after I comment out the code in my menu. (see below).

Code:
    $sql = "SELECT uid FROM $user_prefix"._users." WHERE uname='$uname'";
    $result = $db->sql_query($sql);
    $row = $db->sql_fetchrow($result);
    $uid = $row[user_id];
    $newpms = $db->sql_numrows($db->sql_query("SELECT privmsgs_to_userid FROM $prefix"._bbprivmsgs." WHERE privmsgs_to_userid='$uid' AND privmsgs_type='5' OR privmsgs_type='1'"));
   if ($newpms != 0) {
   echo "<a href=\"modules.php?name=Private_Messages\"><img height=20 width=20 src=\"$imgs/icon_new.gif\" border=0 valign=absmiddle hspace=2 alt=\"$uname - You have $newpms NEW Private Message(s)!\"></a>\n";
   } else {
   echo "<a href=\"index.php\"><img height=20 width=20 src=\"$imgs/icon_home.gif\" border=0 valign=absmiddle hspace=2 alt=\"$uname - This link will take you to the $sitename Home Page\"></a>\n";
   }
Find all posts by jimmyjimjimView user's profileSend private message
Zhen-Xjell
Nuke Cops Founder
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939


PostPosted: Wed Jan 29, 2003 4:42 pm Reply with quoteBack to top

If you took the code from our userinfo block file then it should work as it does here 100%. It may take a page refresh to show correctly, but that is at most a single page refresh.

I forget the type codes, I've posted them here before though. Double check you took the right code.

_________________
Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki]
Find all posts by Zhen-XjellView user's profileSend private messageSend e-mailVisit poster's website
Guest







PostPosted: Thu Jan 30, 2003 7:34 pm Reply with quoteBack to top

I whacked the whole site and re-installed. It's a clean version of nuke 6.5b6 with fixfiles3. nothing else.

log into http://www.ramblingsnail.net using...
demo1
demo1

Feel free to play around... I'm not calling it a production site until the official release of 6.5 is on the streets.

This PM thing is freaking me out. Send a pm to Avery from the demo1 account and you'll see what I mean. After you send the pm, the user-info block will say you have an unread message, but you don't...
Find all posts by Anonymous
Zhen-Xjell
Nuke Cops Founder
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939


PostPosted: Thu Jan 30, 2003 9:05 pm Reply with quoteBack to top

That's odd... I can't test myself right now because I'm working on some important coding (taking a minute or two break right now). I'll have to field that to AI or CS since they did the user info block from beta 5 to beta 6.

_________________
Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki]
Find all posts by Zhen-XjellView user's profileSend private messageSend e-mailVisit poster's website
RS
Guest






PostPosted: Thu Jan 30, 2003 9:16 pm Reply with quoteBack to top

THanx in advance for any help in this matter... Smile

~Rambling Snail
Find all posts by Anonymous
chatserv
General
General


Joined: Jan 12, 2003
Posts: 3128

Location: Puerto Rico

PostPosted: Thu Jan 30, 2003 9:26 pm Reply with quoteBack to top

Ok i uploaded a modified block, help us test it, if it works ok for you i'll have AI add it to the fixes pack, get it here for now.

_________________
Feed a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime.
ScriptHeaven | NukeResources
Find all posts by chatservView user's profileSend private messageVisit poster's website
Guest







PostPosted: Thu Jan 30, 2003 9:43 pm Reply with quoteBack to top

That did the trick! All seems to be working fine now.

You my friend are an artist. Thanx again!

~Rambling Snail
Find all posts by Anonymous
chatserv
General
General


Joined: Jan 12, 2003
Posts: 3128

Location: Puerto Rico

PostPosted: Thu Jan 30, 2003 10:03 pm Reply with quoteBack to top

Very glad it solved it for you, i get great results when i take my medications.

_________________
Feed a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime.
ScriptHeaven | NukeResources
Find all posts by chatservView user's profileSend private messageVisit poster's website
Zhen-Xjell
Nuke Cops Founder
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939


PostPosted: Thu Jan 30, 2003 11:08 pm Reply with quoteBack to top

chatserv wrote:
Very glad it solved it for you, i get great results when i take my medications.
You took too much, your skull has gone nuts. And to think, you used to be such a nice kitty.

_________________
Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki]
Find all posts by Zhen-XjellView user's profileSend private messageSend e-mailVisit poster's website
chatserv
General
General


Joined: Jan 12, 2003
Posts: 3128

Location: Puerto Rico

PostPosted: Fri Jan 31, 2003 5:37 am Reply with quoteBack to top

I wonder why i'm so dizzy lately.

_________________
Feed a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime.
ScriptHeaven | NukeResources
Find all posts by chatservView user's profileSend private messageVisit poster's website
ArtificialIntel



Joined: Jan 31, 2004
Posts: -88


PostPosted: Fri Jan 31, 2003 8:19 am Reply with quoteBack to top

I'll add it to the first fixes pack for the next release. There isn't going to be another fix pack for beta 6 cause I see a new release of nuke coming very very soon.

Artificialintel
Find all posts by ArtificialIntelView user's profileSend private message
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.195 Seconds - 249 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::