|
Page 1 of 1
|
Cristianita 
Joined: October 2015
Posts: 297
Location:  Sonora, México
|
 I Need To Add Like Button In Each Post
Hi, everyone! God bless you!
I've seen this button in other icyphoenix forum:
But I don't know how to set it in mine... Is it a plugin, or something that I have to configure in the ACP?
|
#1 Wed 25 Oct, 2017 23:23 |
|
Sponsors

|
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.
|
|
Mighty Gorgon 
Luca Libralato
Joined: August 2006
Posts: 7192
Location:  Borgo San Michele
|
 Re: I Need To Add Like Button In Each Post
It's an option you should enable in ACP on a per-forum basis:
ACP -> Main Settings -> SQL Optimization -> Disable Posts Like (Global Switch) -> NO
ACP -> Forum -> Management -> EDIT ANY FORUM -> Like Posts -> YES
Let me know if you succeed.
____________ Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
|
#2 Sat 04 Nov, 2017 10:30 |
|
Cristianita 
Joined: October 2015
Posts: 297
Location:  Sonora, México
|
 Re: I Need To Add Like Button In Each Post
It's an option you should enable in ACP on a per-forum basis:
ACP -> Main Settings -> SQL Optimization -> Disable Posts Like (Global Switch) -> NO
ACP -> Forum -> Management -> EDIT ANY FORUM -> Like Posts -> YES
Let me know if you succeed.
I already have this configuration:
SQL Optimization:
LIKE POSTS editing any forum:
As you can see, in my own posts, the like button doesn't show, just the share button (and only text, not blue button). This post is in the Sectas Forum::
In other posts, not mine, appears a like text:
|
#3 Sun 05 Nov, 2017 05:40 |
|
Mighty Gorgon 
Luca Libralato
Joined: August 2006
Posts: 7192
Location:  Borgo San Michele
|
 Re: I Need To Add Like Button In Each Post
Because that template has only links (like all other I designed). If you want to have buttons instead, you need to edit your template file manually and add a custom code.
____________ Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
|
#4 Sun 05 Nov, 2017 17:56 |
|
Cristianita 
Joined: October 2015
Posts: 297
Location:  Sonora, México
|
 Re: I Need To Add Like Button In Each Post
Because that template has only links (like all other I designed). If you want to have buttons instead, you need to edit your template file manually and add a custom code.
I see... Well, I have three questions:
- How can I edit the template? I mean, what is the template that I need to edit to?
- My own posts don't show the "like" text. And it goes me to the third question:
- Is this Like Text option just for the forum or it's for Facebook also? If the answer is "no, it's just for the forum", I'm affraid I have a fourth question:
- How can I add a Like Button for FB? I've noticed that this button is in a new windows when "share" is opened. Is there some way to put it out of this window, just below the topic, alongside the "share" option?
|
#5 Sun 05 Nov, 2017 18:26 |
|
Mighty Gorgon 
Luca Libralato
Joined: August 2006
Posts: 7192
Location:  Borgo San Michele
|
 Re: I Need To Add Like Button In Each Post
You are mixing up things...
Topics LIKE is not Facebook LIKE.
Anyway:
- viewtopic_body.tpl
<!-- IF S_POSTS_LIKES and not postrow.S_THIS_POSTER_MASK -->
<tr><td class="row-post-date tdalignc tvalignm" colspan="2"><span class="gensmall"><span id="like_s_p{postrow.U_POST_ID}"><!-- IF postrow.POST_LIKE_TEXT -->{postrow.POST_LIKE_TEXT} •<!-- ENDIF --> </span><!-- IF S_LOGGED_IN and not postrow.S_OWN_POST --><a href="#" id="like_a_p{postrow.U_POST_ID}" style="text-decoration: none;" onclick="post_like_ajax({postrow.U_TOPIC_ID}, {postrow.U_POST_ID}); return false;"><!-- IF postrow.READER_LIKES -->{L_UNLIKE}<!-- ELSE -->{L_LIKE}<!-- ENDIF --></a> •<!-- ENDIF --> {postrow.SINGLE_POST_SHARE}</span></td></tr>
<!-- ENDIF -->
- You can't like your own posts...
- Just for the forum
- What do you want to like on Facebook? A page? A post? How can viewtopic guess what you want to like on Facebook? Your forum is your forum and Facebook is Facebook, they are not linked at all.
____________ Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
|
#6 Sun 05 Nov, 2017 18:55 |
|
Cristianita 
Joined: October 2015
Posts: 297
Location:  Sonora, México
|
 Re: I Need To Add Like Button In Each Post
You are mixing up things...
Yes, I know... That's why I have to ask many questions
[*]You can't like your own posts... Answer: Not for the forum, but yes for Facebook, right?
[*]What do you want to like on Facebook? A page? A post? How can viewtopic guess what you want to like on Facebook? Your forum is your forum and Facebook is Facebook, they are not linked at all. Answer: I want to like all posts, to facilitate indexing.[/list]
|
#7 Sun 05 Nov, 2017 20:13 |
|
|
Page 1 of 1
|
Was this topic useful?
Was this topic useful?
Link this topic |
URL |
|
BBCode |
|
HTML |
|
Similar Topics
Similar Topics
You cannot post new topics You cannot reply to topics You cannot edit your posts You cannot delete your posts You cannot vote in polls You cannot attach files You can download files You cannot post calendar events
|
|
|
|