One post/thread
Imran Offline
Member
***
Posts: 204
Joined: Apr 2010
Post: #4
RE: One post/thread
(07-05-2010 08:07 AM)RateU Wrote:  I think you should count posts in that thread where post uid = viewer uid.

Thank You for reply.
Can you please give me a hint of the query ?

I mean whether this query is right ?

PHP Code:
$query = $db->simple_select('threads','*','posts="'.$thread['tid'].'"');


and what do you mean by viewer id ? Do you mean

PHP Code:
$viewerid = $post['uid'];


OR

PHP Code:
$viewerid = $mybb->user['uid'];


[Image: logo.png]

[Image: twitter.png]
(This post was last modified: 07-06-2010 01:09 AM by Imran.)
07-06-2010 01:03 AM
Visit this user's website Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
One post/thread - Imran - 07-04-2010, 09:50 PM
RE: One post/thread - leefish - 07-04-2010, 10:00 PM
RE: One post/thread - RateU - 07-05-2010, 08:07 AM
RE: One post/thread - Imran - 07-06-2010 01:03 AM
RE: One post/thread - RateU - 07-06-2010, 01:12 AM
RE: One post/thread - mark-in-dallas - 07-06-2010, 11:13 AM
RE: One post/thread - Imran - 07-08-2010, 03:27 AM

 Standard Tools
Forum Jump: