Getting the thread count?

Status
Not open for further replies.

lasertits

OMG Member
Apr 12, 2011
16
0
55
45
Hopefully one of you can help me with this as I haven't had any luck at the Xenforo forums yet. I'm trying to return the thread count in our user bar.

This is how our current user bar is formatted. The only thing I need is the number of results the thread search returns.

http://i.imgur.com/zCcBe.png

If anyone can point me in the right direction that would be splendid! Thanks.
 

lasertits

OMG Member
Apr 12, 2011
16
0
55
45
Is that the count for threads only? As in number of threads that user has created? Because I have $visitor.message_count set for the # of messages.

Code:
            Welcome,{xen:helper username, $visitor, 'NoOverlay'}
            {xen:phrase threads}: <a href="{xen:link 'search/member?user_id='}{$visitor.user_id}&content=thread">no idea what to do here.</a>
            {xen:phrase messages}: <a href="{xen:link 'search/member?user_id='}{$visitor.user_id}">{xen:number $visitor.message_count}</a>

I know when you view someones profile you can click find all threads by this user, and it takes you to the search, and at the bottom it'll say 1 of 20 of 500 or something, that 500 is what I need to display there for the thread count but I have no idea if you can do this and if so, how.

Again any help is appreciated!
 
  • Like
Reactions: 1 person

ragtek

OMG Member
Jul 4, 2007
149
0
55
40
Oh
sorry i've misreed it:(
It's the message and not thread count.

AFAIK there's no thread count available
 

lasertits

OMG Member
Apr 12, 2011
16
0
55
45
yeah I don't think there is, only way I see it working is with a bit of clever work, unfortunately I'm not very clever. Thanks though.
 
Status
Not open for further replies.