inherit
229614
0
Feb 28, 2016 15:48:18 GMT -8
Trillion
22
February 2016
trillion
|
Post by Trillion on Apr 14, 2016 21:31:41 GMT -8
|
|
#eb7100
1480
0
1
Dec 4, 2024 4:15:04 GMT -8
Craig
209,210
September 2001
cmdynasty
|
Post by Craig on Apr 15, 2016 1:30:19 GMT -8
From a personal point of view, i wouldn't recommend that. Imagine reading the thread, and you like a post half way through, and the page refreshes, and then you like another one a couple of posts on, refreshes again. What i would recommend is making a code request in the headers/footers board for a code that will dynamically adjust the number when the button is pressed. support.proboards.com/board/88/request-header-footer-code
|
|
inherit
229614
0
Feb 28, 2016 15:48:18 GMT -8
Trillion
22
February 2016
trillion
|
Post by Trillion on Apr 15, 2016 2:27:54 GMT -8
Hi, part of my goal is to make only the first post in the thread- the topic, to be able to be liked - I'm going to change the word like to Rec for recommend the topic.
yes, I only want to increase the number when the like button is pressed. Right now it doesn't increase until the page is refreshed.
if I have to do it in the footer I will. Thanks for pointing me there.
|
|
inherit
229614
0
Feb 28, 2016 15:48:18 GMT -8
Trillion
22
February 2016
trillion
|
Post by Trillion on Apr 15, 2016 4:05:18 GMT -8
Hi, I can't get it to work in the footer.
Can I ask for the code to refresh if the like button is pressed?
Here's what I have in the Layout templates - Thread - thread posts - (like section) <td class="content"> <article> <div class="content-head ui-helper-clearfix"> <div class="info"> $[post.thread] <span class="date">$[post.created_on]</span> {if $[post.how_posted]} <span class="post-method">via $[post.how_posted]</span> {/if} Likes: $[post.likes.total]
</div> <div class="controls"> $[post.quote_button] $[post.edit_button] $[post.likes.button] $[post.select_options] </div> </div> <h3 class="title aria-hidden">Post by $[post.created_by.name] on $[post.created_on]</h3> <div class="message">$[post.message]</div> </article> </td>
---------- The like total updates when I press the like button then F5 to refresh the page. I do not see the total update when I press the like button and stay on the page and don't manually refresh the page.
|
|
#eb7100
1480
0
1
Dec 4, 2024 4:15:04 GMT -8
Craig
209,210
September 2001
cmdynasty
|
Post by Craig on Apr 15, 2016 4:15:53 GMT -8
There isnt a code in existence so either way you do it you will need to post a code request. I would still go for the non refresh route, however, so I would recommend requesting that one first
|
|
#e61919
Support Staff
224482
0
Member is Online
1
Dec 4, 2024 16:12:25 GMT -8
Scott
“Asking for help isn't giving up... it's refusing to give up.”
24,571
August 2015
socalso
|
Post by Scott on Apr 15, 2016 9:29:57 GMT -8
TrillionI should mention that it appears you have ad-free on your forum. Every refresh does constitute a pageview and so what you described you're doing could eat up your ad-free pageviews rather quickly.
|
|
inherit
229614
0
Feb 28, 2016 15:48:18 GMT -8
Trillion
22
February 2016
trillion
|
Post by Trillion on Apr 15, 2016 10:57:38 GMT -8
There isnt a code in existence so either way you do it you will need to post a code request. I would still go for the non refresh route, however, so I would recommend requesting that one first You're right. Sorry, I was tired last night and didn't understand your post. I thought you meant I was to write the code so I tried. I will request code on the headers/footers board. Thank you!
|
|
inherit
229614
0
Feb 28, 2016 15:48:18 GMT -8
Trillion
22
February 2016
trillion
|
Post by Trillion on Apr 15, 2016 11:00:09 GMT -8
Trillion I should mention that it appears you have ad-free on your forum. Every refresh does constitute a pageview and so what you described you're doing could eat up your ad-free pageviews rather quickly. Good point!
|
|
inherit
229614
0
Feb 28, 2016 15:48:18 GMT -8
Trillion
22
February 2016
trillion
|
Post by Trillion on Apr 21, 2016 15:50:33 GMT -8
There isnt a code in existence so either way you do it you will need to post a code request. I would still go for the non refresh route, however, so I would recommend requesting that one first You're right. Sorry, I was tired last night and didn't understand your post. I thought you meant I was to write the code so I tried. I will request code on the headers/footers board. Thank you!
Hi, after trying several ways to refresh a div and it not working (no answer on the header/footers board),
I've come to the conclusion that this should work automatically and the parameter I'm calling may be wrong.
when you press the like button, and use $[post.likes] on the page, it automatically shows the name of who liked the post. but when you replace $[post.likes] on the page with $[post.likes.total] you have to refresh the page to get the updated number.
I found out that proboards used to use likes total on the page: "When you like another members post, a message will appear at the top of the post showing the amount of likes the post has received. When this message is clicked, a pop up window will display the names of the members that have clicked the like button for that particular post. www.proboards.com/user-guide/post-options/liking
So it should have the ability to update the likes total without me refreshing the page since it used to do that.
My question is, what was the original tag proboards used to use - ie. instead of $[post.likes.total]? Does anyone have a old copy of the layout-threads-post list template so I can see?
(also, I guessed the param $[post.likes.total] in the first place. It may be something like post.likes.liked, etc.)
|
|
#e61919
Support Manager
154778
0
1
Dec 2, 2024 9:51:07 GMT -8
Michael
19,618
May 2010
wiseowl
|
Post by Michael on Apr 21, 2016 15:59:59 GMT -8
You're right. Sorry, I was tired last night and didn't understand your post. I thought you meant I was to write the code so I tried. I will request code on the headers/footers board. Thank you!
Hi, after trying several ways to refresh a div and it not working (no answer on the header/footers board),
I've come to the conclusion that this should work automatically and the parameter I'm calling may be wrong.
when you press the like button, and use $[post.likes] on the page, it automatically shows the name of who liked the post. but when you replace $[post.likes] on the page with $[post.likes.total] you have to refresh the page to get the updated number.
I found out that proboards used to use likes total on the page: "When you like another members post, a message will appear at the top of the post showing the amount of likes the post has received. When this message is clicked, a pop up window will display the names of the members that have clicked the like button for that particular post. www.proboards.com/user-guide/post-options/liking
So it should have the ability to update the likes total without me refreshing the page since it used to do that.
My question is, what was the original tag proboards used to use - ie. instead of $[post.likes.total]? Does anyone have a old copy of the layout-threads-post list template so I can see?
(also, I guessed the param $[post.likes.total] in the first place. It may be something like post.likes.liked, etc.)
This has never changed unfortunately. The likes go from: Liked by x Liked by x and y Liked by x and y and 3 more... Then you can click on 3 more and you'll see the total list, it's never showed the total number. You're doing it as right as you can (as far as I know)!
|
|