Topic-icon Facebook Like on Kunena Forum Posts / Category / Topic

Active Subscriptions:

None
I am interested to know whether now or in the future, it will be possible to add a Facebook Like button on a Kunena Forum - either at Forum / Category / Topic or Post level.
It would be great to be able to have the posts visible in Facebook.

If its possible now, would you please be able to advise how, or point me to a doc, or extensiuon which would allow me to do this?

Rich
The topic has been locked.
Support Specialist
Rich,
There's a few options you could use to add the Like button to your Kunena pages. The easiest is to simply find a good module position that will show up on your Kunena pages and simply add the JFBCLike module to that position. JFBConnect will automatically use the current URL for each page the Like button is shown on, so anytime that button is clicked, it will be for the current forum / category / topic that is displayed. It would not work for a specific post though.

Beyond that, if you need more control of the positioning, you can add the {JFBCLike} tag to different areas of the Kunena template files. I don't know Kunena's template structure well enough to let you know where exactly it'd go, but if you add it in the right spots, you could place the button wherever you want and would work for the forum / category / topic views. With the {JFBCLike} tag, you could even add it to each post. We can help with that, but I'd recommend getting to understand (or contacting Kunena support) to find out where best to add for the 'upper' level views. Once you get that, adding to the post-level shouldn't be overly difficult.

Hope that helps,
Alex
The topic has been locked.
Active Subscriptions:

None
13 years 5 months ago #28873 by y021ahe
I've been working on the Kunena Forum Posts to try to add the Facebook Like using the JFBCLike tag as you suggested and I have managed to add it into the post as you suggested - The only issue is that the tag seems to "steal" half of the posting space in the template, word wrapping the comments. You can see this in the two attachments.

I did this by adding the code <td>{JFBCLike}</td> in the template.

I can't find a way of correcting this in the template, so I was wondering whether there are any adjustments that that can be made in/to the tag that would enable the formating to be as they should be?

Rich
File Attachment:

File Attachment:
The topic has been locked.
Support Specialist
Can you paste the 5 lines above and below where you were trying to add the {JFBCLike} tag? Also, please post (or Private Message) a URL to a page that we can see a forum thread with the Like buttons on it. Between those two, we should be able to help you figure out where better to add the tag or some CSS that will get you going.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
13 years 5 months ago #28923 by y021ahe
Alex,
I have sent a private message containing the details that you requested.

Rich
The topic has been locked.
Active Subscriptions:

None
13 years 5 months ago #28970 by y021ahe
Do you guys need anything else from me to help you investigate my issue?

Rich
The topic has been locked.
Support Specialist
Rich,
When trying to integrate with other extensions, we'll help how we can. It's a difficult process though and not our highest priority of tasks simply because it's not our area of expertise to know every other extension out there, especially all their templates and methods to edit things.

As to your issue, looking at the code on your site for the Like button, it seems like it's inserted like below:
<tr>
	<td class="kbuttonbar-left">
		<div class="kmessage-editmarkup-cover">
			<span class="kmessage-informmarkup">...</span>
		</div>
		<div class="kmessage-buttons-cover">
			<div class="kmessage-buttons-row">
				Quick Reply
				Reply
				Quote
		</div>
	</td>
	<td>{JFBCLike}</td>
</tr>
I'd recommend to not create a new td element and put the {JFBCLike} tag within a div tag of the first td element instead. That way, it should be inline with the rest. Can't guarantee that though as tables are always difficult to work with.

If that doesn't work, we'll gladly try to help further. However, you may also want to post in the Kunena support forums as they may be able to help you understand their templates a little better in order to properly add the Like button where it works best.

Hope that helps,
Alex
The topic has been locked.
Active Subscriptions:

None
13 years 5 months ago #29000 by y021ahe
Alex,
I have added the code into the default_message.php file in the kunena/blue_eagle/template/html component file as show below
--

(bracket) JFBCLike(bracket) (bracket) SCOpenGraph image=http://www.website.com/picture.jpg(bracket)

--
File Attachment:


This has worked perfectly and gives me what I want(as you can see above) .. now the but.. as there always has to be one.
As you can see above, I have added the opengraph image code in, because I need a way that a controlled image can be added when the like button is posting to Facebook... UNLESS the forum topic, already has a picture or attachment in it -
Question is can SCOpenGraph be set up to say use the image in the code above unless theres an image already there..I'm not skilled enough about OpenGraph to understand if this could even be considered an option?

Any advice on setting up opengraph in JFBConnect would be great.

BTW - I have now updated to 4.3.3 and I have sent the full default_message.php file to you by private message

Rich
The topic has been locked.