| Author |
Message |
jimmyjimjim
Lieutenant


Joined: Jan 23, 2003
Posts: 258
Location: USA
|
Posted:
Wed Jan 29, 2003 4:23 pm |
  |
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";
}
|
|
|
|
   |
 |
Zhen-Xjell
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939
|
Posted:
Wed Jan 29, 2003 4:42 pm |
  |
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] |
|
     |
 |
Guest

|
Posted:
Thu Jan 30, 2003 7:34 pm |
  |
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... |
|
|
 |
 |
Zhen-Xjell
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939
|
Posted:
Thu Jan 30, 2003 9:05 pm |
  |
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] |
|
     |
 |
RS
Guest

|
Posted:
Thu Jan 30, 2003 9:16 pm |
  |
THanx in advance for any help in this matter...
~Rambling Snail |
|
|
 |
 |
chatserv
General


Joined: Jan 12, 2003
Posts: 3128
Location: Puerto Rico
|
Posted:
Thu Jan 30, 2003 9:26 pm |
  |
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 |
|
    |
 |
Guest

|
Posted:
Thu Jan 30, 2003 9:43 pm |
  |
That did the trick! All seems to be working fine now.
You my friend are an artist. Thanx again!
~Rambling Snail |
|
|
 |
 |
chatserv
General


Joined: Jan 12, 2003
Posts: 3128
Location: Puerto Rico
|
Posted:
Thu Jan 30, 2003 10:03 pm |
  |
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 |
|
    |
 |
Zhen-Xjell
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939
|
Posted:
Thu Jan 30, 2003 11:08 pm |
  |
| 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] |
|
     |
 |
chatserv
General


Joined: Jan 12, 2003
Posts: 3128
Location: Puerto Rico
|
Posted:
Fri Jan 31, 2003 5:37 am |
  |
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 |
|
    |
 |
ArtificialIntel

Joined: Jan 31, 2004
Posts: -88
|
Posted:
Fri Jan 31, 2003 8:19 am |
  |
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 |
|
|
   |
 |
|
|