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, 57 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 - PM Messages when there aren't [ ]
 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
ClickBouyow
Corporal
Corporal


Joined: Jun 04, 2003
Posts: 66


PostPosted: Thu Jun 12, 2003 3:51 am Reply with quoteBack to top

I searched the forum and didn't find anything specific to phpnuke 6.6 on this subject. I am using fiblack theme and I shows that there are PM's when there aren't any. Anyone got a fix for this?

Thanks
Find all posts by ClickBouyowView user's profileSend private message
mikem
Theme Guru
Theme Guru


Joined: Jan 13, 2003
Posts: 1582

Location: Corn fields of Indiana

PostPosted: Thu Jun 12, 2003 9:51 am Reply with quoteBack to top

Where are you seeing this information. In the Forums or in a Block?

mikem

_________________
Getting Started | My Projects
Find all posts by mikemView user's profileSend private message
ClickBouyow
Corporal
Corporal


Joined: Jun 04, 2003
Posts: 66


PostPosted: Thu Jun 12, 2003 11:09 am Reply with quoteBack to top

mikem wrote:
Where are you seeing this information. In the Forums or in a Block?

mikem


I see this in the User Info Block. The "Who's Online" block shows 0 PMs.
Find all posts by ClickBouyowView user's profileSend private message
mikem
Theme Guru
Theme Guru


Joined: Jan 13, 2003
Posts: 1582

Location: Corn fields of Indiana

PostPosted: Thu Jun 12, 2003 1:54 pm Reply with quoteBack to top

Open you user info block..You should see two lines like this

Code:
    $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'"));
    $oldpms = $db->sql_numrows($db->sql_query("SELECT privmsgs_to_userid FROM $prefix"._bbprivmsgs." WHERE privmsgs_to_userid='$uid' AND privmsgs_type='0'"));


try changing them to this
Code:
    $newpms = $db->sql_numrows( "select privmsgs_type from $prefix"._bbprivmsgs." where privmsgs_to_userid='$user_id' AND (privmsgs_type='1' or privmsgs_type='5')", $dbi );
    $oldpms = $db->sql_numrows($db->sql_query( "select privmsgs_type from $prefix"._bbprivmsgs." where privmsgs_to_userid='$user_id' AND (privmsgs_type='0')", $dbi );


mikem

_________________
Getting Started | My Projects
Find all posts by mikemView user's profileSend private message
ClickBouyow
Corporal
Corporal


Joined: Jun 04, 2003
Posts: 66


PostPosted: Thu Jun 12, 2003 2:31 pm Reply with quoteBack to top

Quote:
Parse error: parse error, unexpected ';' in /home/virtual/site11/fst/var/www/html/blocks/block-User_Info.php on line 115


Is what I get then.

this is what I put in:
Quote:
$newpms = $db->sql_numrows( "select privmsgs_type from $prefix"._bbprivmsgs." where privmsgs_to_userid='$user_id' AND (privmsgs_type='1' or privmsgs_type='5')", $dbi );
$oldpms = $db->sql_numrows($db->sql_query( "select privmsgs_type from $prefix"._bbprivmsgs." where privmsgs_to_userid='$user_id' AND (privmsgs_type='0')", $dbi );


To replace this:

Quote:
$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'"));
$oldpms = $db->sql_numrows($db->sql_query("SELECT privmsgs_to_userid FROM $prefix"._bbprivmsgs." WHERE privmsgs_to_userid='$uid' AND privmsgs_type='0'"));


Should there be 2 )) at the end of each line? Otherwise the statement is not closed?
Find all posts by ClickBouyowView user's profileSend private message
Viper
Lieutenant
Lieutenant


Joined: May 04, 2003
Posts: 282

Location: Louisville, KY USA

PostPosted: Thu Jun 12, 2003 5:11 pm Reply with quoteBack to top

I believe you would only add the second ) to the last line, at least that's what I tried and it worked, just a few minutes ago.

Linzilla

_________________
Building A Better PHP-Nuke Community!
Image
Find all posts by ViperView user's profileSend private messageVisit poster's website
mikem
Theme Guru
Theme Guru


Joined: Jan 13, 2003
Posts: 1582

Location: Corn fields of Indiana

PostPosted: Thu Jun 12, 2003 5:54 pm Reply with quoteBack to top

Obvious that code won't work..Have you considered trying another block to see if it is indeed the block that is the problem.

Try getting one of the Site Visitors blocks from
http://www.nukemods.com
Make sure you get the one for Nuke6.5
Test it out and see if it works correctly.

mikem

_________________
Getting Started | My Projects
Find all posts by mikemView user's profileSend private message
ClickBouyow
Corporal
Corporal


Joined: Jun 04, 2003
Posts: 66


PostPosted: Fri Jun 13, 2003 3:32 am Reply with quoteBack to top

mikem wrote:
Obvious that code won't work..Have you considered trying another block to see if it is indeed the block that is the problem.

Try getting one of the Site Visitors blocks from
http://www.nukemods.com
Make sure you get the one for Nuke6.5
Test it out and see if it works correctly.

mikem


I tried a different block and it works. Bug report time?? Anyway, the one I got from nukemods is ugly, so I'll keep looking for a better one.

Thanks!
Find all posts by ClickBouyowView 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.213 Seconds - 265 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::