Former Member
inherit
guest@proboards.com
195316
0
Nov 30, 2024 16:36:36 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Oct 22, 2015 11:59:13 GMT -8
Hi, Not sure if this is possible I was trying to add the below code ON THE BOARD LIST as to show the number of likes that thread/post Has received - when adding/trying the code it shows all likes as 0 Likes <br><font size="1">{if $[board.thread.first_post.likes.total]} <font size="2">$[board.thread.first_post.likes.total]</font> Like{if $[board.thread.first_post.likes.total] != 1}s{/if}{else}0 Likes {/if}</font> Is their anyway this would work on the board list Steve
|
|
inherit
(?)?
188910
0
Jan 26, 2013 13:30:48 GMT -8
♥ ℒʊ√ ♥
Clouds float into my life no longer to carry rain or usher storm but to add color to my sunset sky.
10,458
January 2013
luv
|
Post by ♥ ℒʊ√ ♥ on Oct 22, 2015 17:23:58 GMT -8
I like this idea, @xsteveuk, as it's more about the thread/post than the member.
It takes the personal aspect out of the equation where some members might have far more likes than others, sparing feelings and keeping things equal.
|
|
inherit
Official Code Helper
65613
0
1
Oct 22, 2024 1:56:19 GMT -8
Chris
"'Oops' is the sound we make when we improve"
9,022
December 2005
horace
RedBassett's Mini-Profile
|
Post by Chris on Oct 22, 2015 18:31:43 GMT -8
Hi, Not sure if this is possible I was trying to add the below code ON THE BOARD LIST as to show the number of likes that thread/post Has received - when adding/trying the code it shows all likes as 0 Likes <br><font size="1">{if $[board.thread.first_post.likes.total]} <font size="2">$[board.thread.first_post.likes.total]</font> Like{if $[board.thread.first_post.likes.total] != 1}s{/if}{else}0 Likes {/if}</font> Is their anyway this would work on the board list Steve Likes as ♥ ℒʊ√ ♥ so correctly pointed out is about the character of our posted content and not the content of the posting character but along the way someone got the dev team to add a variable that attributed and totaled the likes to the character so they could then add it in mini-profile as another shiny badge. In the posted image, it looks like you are trying to get the total likes for the first post in the last updated thread to be displayed in each board, and according to the variable tree on the right that would be: $[board.last_thread.first_post.likes.total] Keep in mind that likes are for individual posts not threads so you are treating the likes that have been given to the first post in a thread as being a vote/like for the entire thread.
|
|
Former Member
inherit
guest@proboards.com
195316
0
Nov 30, 2024 16:36:36 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Oct 22, 2015 22:54:48 GMT -8
Thank you Chris That's how I wanted to display to show the like each first post How it looks on my forum Thanks again for all your help Code I used on the Board List Template - I changed Like to Poem Like on my board <br><font size="1"> {if $[board.last_thread.first_post.likes.total]} <font size="2"><b>$[board.last_thread.first_post.likes.total]</b></font> Like{if $[board.last_thread.first_post.likes.total] != 1}s{/if}{else}0 Likes {/if}</font> Steve
|
|