Legendary
New Member
Listening to "You Give Good Love"
Posts: 122
inherit
234171
0
Feb 5, 2017 20:09:07 GMT -8
Legendary
Listening to "You Give Good Love"
122
July 2016
jagten
|
Post by Legendary on Sept 23, 2016 23:46:52 GMT -8
I would like to know the if code to change the number of posts field. when a person gets to one post on my forum is still says "postS" instead of simply post. i used to know the code by heart but forgot. please help! thanks!
|
|
Legendary
New Member
Listening to "You Give Good Love"
Posts: 122
inherit
234171
0
Feb 5, 2017 20:09:07 GMT -8
Legendary
Listening to "You Give Good Love"
122
July 2016
jagten
|
Post by Legendary on Sept 24, 2016 11:54:11 GMT -8
bump?
|
|
inherit
226544
0
Oct 5, 2018 10:29:39 GMT -8
Ulises
4,881
November 2015
umacklin
Ulises Weirdo
|
Post by Ulises on Sept 24, 2016 12:36:04 GMT -8
Legendary I'm assuming this is in your mini profile template? If you know the code, it should be located in Themes > Layout Templates > Mini-Profile
|
|
Legendary
New Member
Listening to "You Give Good Love"
Posts: 122
inherit
234171
0
Feb 5, 2017 20:09:07 GMT -8
Legendary
Listening to "You Give Good Love"
122
July 2016
jagten
|
Post by Legendary on Sept 24, 2016 21:42:01 GMT -8
Legendary I'm assuming this is in your mini profile template? If you know the code, it should be located in Themes > Layout Templates > Mini-Profile I know where to put the code, but I do not remember how to write it. It's tucked away in the recesses of my mind, but I can't seem to dig it out.
|
|
inherit
226544
0
Oct 5, 2018 10:29:39 GMT -8
Ulises
4,881
November 2015
umacklin
Ulises Weirdo
|
Post by Ulises on Sept 25, 2016 8:05:06 GMT -8
Legendary ah, use this and modify how you would like but here's how I did it: You wouldn't see 0 posts in the mini-profile, however, simply because a user hasn't posted yet and made their mini-profile available in the post list.
|
|
Legendary
New Member
Listening to "You Give Good Love"
Posts: 122
inherit
234171
0
Feb 5, 2017 20:09:07 GMT -8
Legendary
Listening to "You Give Good Love"
122
July 2016
jagten
|
Post by Legendary on Sept 25, 2016 11:29:26 GMT -8
This helped! Thank you!
|
|
Kami
Forum Cat
Posts: 40,201
Mini-Profile Theme: Kami's Mini-Profile
#f35f71
156500
0
Offline
Jul 24, 2021 11:48:29 GMT -8
Kami
40,201
July 2010
kamiyakaoru
Kami's Mini-Profile
|
Post by Kami on Sept 25, 2016 13:40:03 GMT -8
Legendary ah, use this and modify how you would like but here's how I did it: You wouldn't see 0 posts in the mini-profile, however, simply because a user hasn't posted yet and made their mini-profile available in the post list. Couldn't you just wrap the "s" in posts to include post counts that aren't 1? So: Post{if $[user.posts] != 1}s{/if}: ?
|
|
inherit
226544
0
Oct 5, 2018 10:29:39 GMT -8
Ulises
4,881
November 2015
umacklin
Ulises Weirdo
|
Post by Ulises on Sept 25, 2016 13:50:09 GMT -8
Oh, yes. Also, you don't need that extra "=" (probably just a typo) but otherwise that works too
|
|
Kami
Forum Cat
Posts: 40,201
Mini-Profile Theme: Kami's Mini-Profile
#f35f71
156500
0
Offline
Jul 24, 2021 11:48:29 GMT -8
Kami
40,201
July 2010
kamiyakaoru
Kami's Mini-Profile
|
Post by Kami on Sept 25, 2016 14:07:02 GMT -8
Oh, yes. Also, you don't need that extra "=" (probably just a typo) but otherwise that works too :P Whoops haha it's hard to do on my phone xD thanks for pointing it out, I'll edit the post
|
|
inherit
226544
0
Oct 5, 2018 10:29:39 GMT -8
Ulises
4,881
November 2015
umacklin
Ulises Weirdo
|
Post by Ulises on Sept 25, 2016 14:09:52 GMT -8
No worries!
|
|
Legendary
New Member
Listening to "You Give Good Love"
Posts: 122
inherit
234171
0
Feb 5, 2017 20:09:07 GMT -8
Legendary
Listening to "You Give Good Love"
122
July 2016
jagten
|
Post by Legendary on Sept 25, 2016 15:01:15 GMT -8
Legendary ah, use this and modify how you would like but here's how I did it: You wouldn't see 0 posts in the mini-profile, however, simply because a user hasn't posted yet and made their mini-profile available in the post list. Couldn't you just wrap the "s" in posts to include post counts that aren't 1? So: Post{if $[user.posts] != 1}s{/if}: ? I think this is the code i used to use. thanks!
|
|
Kami
Forum Cat
Posts: 40,201
Mini-Profile Theme: Kami's Mini-Profile
#f35f71
156500
0
Offline
Jul 24, 2021 11:48:29 GMT -8
Kami
40,201
July 2010
kamiyakaoru
Kami's Mini-Profile
|
Post by Kami on Sept 25, 2016 15:32:44 GMT -8
|
|