× Joomla Facebook Connect support forum

Topic-icon JFBCLike

Active Subscriptions:

None
15 years 1 month ago #9025 by menelaosd
JFBCLike was created by menelaosd
Hi

I am using the JREVIEWS component on my site and I would like to incorporate the JFBCLike feature in the theme file ( detail.thtml ) which generates the listing detail page. As I am not an experienced developer :rolleyes: , I would highly appreciated it if you could advise me the code that I have to use in order to display the JFBCLike feature.

Many thanks in advance.

BR,

Menelaos
The topic has been locked.
Support Specialist
15 years 1 month ago #9030 by alzander
Replied by alzander on topic JFBCLike
You shouldn't really need to edit the jReviews template file. There's 2 options:
1) I think jReviews already has some Facebook features for Like buttons included. You should be able to enable this, but it may cause some problems... if so, let us know.
2) You can use the JFBCLike module and place it on your review pages in a module position that would look good for you.
3) If you really want to modify the template file (to give you the most flexibility of placement), when you find the location the Like button should go, simply type {JFBCLike}. JFBConnect will take care of the rest. Make sure this is in an HTML area of the code though, not in a PHP block. I hope that make sense.. if not, I can explain more.

Finally, in either case above, you can use the OpenGraph features in JFBConnect to describe the page's contents to Facebook. For instance, {JFBCGraph image=http://linktoreviewimage.jpg} will set the image that Facebook will use when someone Likes the page. You can either set a default image for the whole site in the JFBConnect Social configuration area, or individually on each page using the tag.

We have a lot of flexibility, but understand, it can be confusing, so if you have any other questions, just let us know!
The topic has been locked.
Active Subscriptions:

None
15 years 1 month ago #9032 by menelaosd
Replied by menelaosd on topic JFBCLike
Hello Alex,

I think I will go with option 3.

Is the below code correct? :rolleyes:

<div>{JFBCLike}</div>

BR,

Menelaos
The topic has been locked.
Support Specialist
15 years 1 month ago #9033 by alzander
Replied by alzander on topic JFBCLike
If you do {JFBCLike}, we'll actually add a div around it automatically so you can style it easier. You're welcome to put your own div around it if you want though.

There are other options you can use with the {JFBCLike} tag. We recommend looking at the Examples tag in the Social configuration area for some of the available options. In general though, we try to make it simple for you.. hope we did!

Good luck!
The topic has been locked.