Recent Topics

1 Feb 21, 2011 16:53    

I am using B2E version 3.3.1.
My blog homepage is http://jeyjoo.com/blog/blog1.php

I would like to integrate facebook like button for each blog post. Is this possble in b2evolution? The forums posts I have read seem to indicate not.

The main issue I have is specifying the URL for each post in the FB:like code:

<fb:like href="http://www.jeyjoo.com" layout="box_count" show_faces="false" width="30px" font="trebuchet ms"></fb:like>

Can I set this up automatically with eac post or do I have to do this manually?

Many thanks,
Mike

2 Feb 21, 2011 20:08

<fb:like   href="<?php $Item->permanent_url();?>"  ....>

should do fine for each post....

see: http://forums.b2evolution.net/viewtopic.php?p=103419#103419

for iframe implementation

if you d like to include pages and stuff as well as posts, you could use:


global $ReqURI; //current url
<fb:like   href=".$ReqURI."  ....>

3 Feb 21, 2011 23:50

Thanks for the quick reply. That worked perfectly!

4 Feb 22, 2011 01:19

oh btw,instead of using Item->permanent_url,
you might wanna use Item->ID.

Personally i would choose the latter.Because permament_url may change as you change your title some other time, so it'd cost you to lose your like count afaik. to avoid this you could use a fixed parameter such as id.

5 Apr 06, 2011 20:53

tilqicom wrote:

oh btw,instead of using Item->permanent_url,
you might wanna use Item->ID.

Personally i would choose the latter.Because permament_url may change as you change your title some other time, so it'd cost you to lose your like count afaik. to avoid this you could use a fixed parameter such as id.

Hi tilqicom,

I hope you are well!

I have seen your post and I have a question for you please.

I am not sure if this is correct with your code

oh btw,instead of using Item->permanent_url,
you might wanna use Item->ID.

My question, am i right in what i did below?

<iframe src="http://www.facebook.com/plugins/like.php?href=<?php $Item->ID_url(http://www.icanhelp.ie/testblog/blog2.php/my-journey-to-everest-2012);?>&amp;layout=standard&amp;show_faces=true&amp;width=150&amp;action=like&amp;font&amp;colorscheme=light&amp;height=21&quot; scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:150px; height:21px;" allowTransparency="true"></iframe>

Thank you in advance!

Best regards,

David.


Form is loading...