Warning: The author of this contribution does not provide support for it anymore.

Welcome on index

User's total post count not showing up - Welcome on index

User's total post count not showing up

by 777Firebrand777 » Sun Nov 18, 2012 4:37 pm

I'm experimenting with the mod for a while now but I don't understand why I can't make it to show the user's unique post count. I tried {L_TOTAL_POSTS}: {USER_POSTS} but the number is simply not showing up.

Anybody got an idea why?
777Firebrand777
Registered User
Posts: 91
Joined: Sat Oct 27, 2012 5:03 pm
Contact:

Re: User's total post count not showing up

by Stoker 4.0 » Sun Nov 18, 2012 7:00 pm

It only works on forum index
User avatar
Stoker 4.0
Registered User
Posts: 1487
Joined: Sun Feb 13, 2011 1:33 pm
Location: Funen, Denmark
Name: Ulrik Christensen
Contact:

Re: User's total post count not showing up

by 777Firebrand777 » Sun Nov 18, 2012 7:10 pm

How can I make it work on the mod? I would like to make it a personal area for the user where he can view his stats without accessing the UCP.
777Firebrand777
Registered User
Posts: 91
Joined: Sat Oct 27, 2012 5:03 pm
Contact:

Re: User's total post count not showing up

by Stoker 4.0 » Sun Nov 18, 2012 8:13 pm

Okay, now I understand you.

To make that work you also need to add some code to index.php

Find:

Code: Select all

'MEMBER_FOR'               => (!empty($member_for)) ? $user->lang['MEMBER_FOR'] . ' ' . $member_for : '',

After add:

Code: Select all

'USER_POSTS'               => $user->data['user_posts'],


Find:
User avatar
Stoker 4.0
Registered User
Posts: 1487
Joined: Sun Feb 13, 2011 1:33 pm
Location: Funen, Denmark
Name: Ulrik Christensen
Contact:

Re: User's total post count not showing up

by 777Firebrand777 » Sun Nov 18, 2012 8:43 pm

And I think days about this. So trivial and I didn't recognized it! Thanks very much!
777Firebrand777
Registered User
Posts: 91
Joined: Sat Oct 27, 2012 5:03 pm
Contact:

Re: User's total post count not showing up

by adsol93 » Sun May 31, 2015 8:20 pm

For user topics should I use: 'USER_TOPICS' instead?
User avatar
adsol93
Registered User
Posts: 31
Joined: Tue May 26, 2015 2:14 am
Contact: