I Need To Add Like Button In Each Post »  Show posts from    to     

Icy Phoenix


General Support - I Need To Add Like Button In Each Post



Cristianita [ Wed 25 Oct, 2017 23:23 ]
Post subject: I Need To Add Like Button In Each Post
Hi, everyone! God bless you!

I've seen this button in other icyphoenix forum:

9569240506

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?


Mighty Gorgon [ Sat 04 Nov, 2017 10:30 ]
Post subject: 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.


Cristianita [ Sun 05 Nov, 2017 05:40 ]
Post subject: Re: I Need To Add Like Button In Each Post
Mighty Gorgon wrote: [View 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:
2807649489

LIKE POSTS editing any forum:
5271726725

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::
3079761089

In other posts, not mine, appears a like text:
1232051157


Mighty Gorgon [ Sun 05 Nov, 2017 17:56 ]
Post subject: 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.


Cristianita [ Sun 05 Nov, 2017 18:26 ]
Post subject: Re: I Need To Add Like Button In Each Post
Mighty Gorgon wrote: [View 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:
  1. How can I edit the template? I mean, what is the template that I need to edit to?
  2. My own posts don't show the "like" text. And it goes me to the third question:
  3. 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:
  4. 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?


Mighty Gorgon [ Sun 05 Nov, 2017 18:55 ]
Post subject: Re: I Need To Add Like Button In Each Post
You are mixing up things...

Topics LIKE is not Facebook LIKE.

Anyway:
  1. viewtopic_body.tpl
    Code: [Hide] [Select]
    <!-- 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}&nbsp;&bull;<!-- ENDIF -->&nbsp;</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>&nbsp;&bull;<!-- ENDIF -->&nbsp;{postrow.SINGLE_POST_SHARE}</span></td></tr>
    <!-- ENDIF -->

  2. You can't like your own posts...
  3. Just for the forum
  4. 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.


Cristianita [ Sun 05 Nov, 2017 20:13 ]
Post subject: Re: I Need To Add Like Button In Each Post
Mighty Gorgon wrote: [View Post]
You are mixing up things...
Yes, I know... That's why I have to ask many questions
Mighty Gorgon wrote: [View Post]
[*]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]




Powered by Icy Phoenix