Facebook "LIKE" button

Hello everyone,

I would like to add a Facebook "LIKE" button to my events and blog pages.

When I do insert the LIKE button code in HTML mode and I then switch to WYSIWYG mode I see the LIKE button correctly.

However when I'm going to save, the LIKE button is gone.

Does anyone one have suggestion to get the LIKE button to work?

Thanks!

Quote · 24 May 2010

Weird. Sounds correct.

Open block, toggle the html, insert code (into html), update, then save?

Maybe you did not copy the code correct? When you got the code from fb, you didnt get the sample page code, right? You entered the site name and adjusted the size and all that, then got the code, right? Make sure to copy all of it.

Do you have other code in the html block also?

Should be working. Did you look directly at the site to see if it was there?

This sentance says nothing, and its possibly spellt wrong.
Quote · 24 May 2010

Hi barrydeez

Thanks for your reply.

I guess I did everything right but is still not working.

I'm also having the same problem trying to insert Google Adsense scripts.

It looks like that I'm missing something here to get the scripts to work.

Anyone?

Quote · 1 Jun 2010

Hi barrydeez

Thanks for your reply.

I guess I did everything right but is still not working.

I'm also having the same problem trying to insert Google Adsense scripts.

It looks like that I'm missing something here to get the scripts to work.

Anyone?

if your using 7.0.1, html blocks get striped of script code.

Also follow this thread.. http://www.boonex.com/unity/forums/?action=goto&my_threads=1#topic/Problem-with-HTML-Block-in-7-0-1-Adsense.htm

and

http://www.boonex.com/unity/forums/?action=goto&topic_id=Good-News-For-D7-Site-Admin

ManOfTeal.COM a Proud UNA site, six years running strong!
Quote · 1 Jun 2010

Newton, as far as I know I'm running Dolphin 7.0 (installed in February 2010).

Quote · 1 Jun 2010

Hey,

Has anyone got the like button working for articles, blog posts, videos and photos.

A friend of mine uses this code fine:

<iframe src="http://www.facebook.com/plugins/like.php?href={$baseurl}/view/{$parray[0].name|stripslashes}/{$parray[0].PID}&amp;layout=standard&amp;show_faces=false&amp;width=450&amp;action=like&amp;colorscheme=light&amp;height=35" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:35px;" allowTransparency="true"></iframe>


I tried to edit the code by replacing "/view/" with "/blogs/entry/" in hopes that i would capture the rest of the link. But thats did not work. I get and error.

If you got the like button working for your articles and all let me please let me know.

Thanx

Free the Dolphin...
Quote · 26 Aug 2010

hello

 

try this for facebook like on every page

 

<script type="text/javascript">
document.write ('<iframe src="http://www.facebook.com/plugins/like.php?href='+window.location+'&layout=standard&show_faces=false&width=160&action=like&colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:160px; height:40px"><\/iframe>');
</script>

Quote · 6 Nov 2010

this code is working good but when i like a link it doesnt appear on live feeds in my frnds profile,

so they dnt know that i likes sumthing on this perticular site but when they go to my profile thay can see it......

is there ny way to make it possible in live feeds as we see in other likes done...

https://www.facebook.com/4thmolar
Quote · 16 Nov 2010

I´m having the same problem, i´m using 7.0.6. google adsense codes is working fine but the Facebook codes is not. Is there anybody here launched successfully? Please help?

Quote · 7 Aug 2011

Now, I have Like button running, thanks to Deano.

Quote · 7 Aug 2011

 

Now, I have Like button running, thanks to Deano.

You should point out what it was or a link to a post that helped you so i don't get emails asking what i did to help you when i have not posted here on this topic and i have no clue what it was i did that helped you.


https://www.deanbassett.com
Quote · 7 Aug 2011

I´m searching here about this problem and found a thread that you are suggesting. I tried this and successfully got it and revert back the codes to its original form after it works fine. Thanks to your idea.

Quote • Report • Bury • May 30, 2010 20:14 • 4 likes • Like
 

Try this. Untested but should put the html block back to the way it was.

Edit inc\classes\BxDolPageViewAdmin.php

Look for this at about line 473

if( $aItem['Func'] == 'Echo' ) {
$aForm['inputs']['Content'] = array(
'type' => 'textarea',
'html' => false,
'attrs' => array ('id' => 'form_input_html'.$iBlockID),
'name' => 'Content',
'value' => $sBlockContent,
'caption' => $sHtmlContentC,
'required' => true,
'colspan' => true,
);


Change to this.

if( $aItem['Func'] == 'Echo' ) {
$aForm['inputs']['Content'] = array(
'type' => 'textarea',
'html' => false,
//'attrs' => array ('id' => 'form_input_html'.$iBlockID),
'name' => 'Content',
'value' => $sBlockContent,
'caption' => $sHtmlContentC,
'required' => true,
'colspan' => false,
);

Quote · 12 Aug 2011

Hello,

I was askings the same question and I was looking how to add Facebook like, share, Google+ botton without too much trouble.
I got it now and I hope that it will help others. you can see it working at my website is in all the pages but the home page http://www.gsr-media.com

There is this code below that could be modify as you like easily.

Copy and paste it in _sub_header.html  just after <!-- end of top -->

Clear your cache and that's it, normaly it do not appear in the from page but on all others.


---------start
<style>

#pageshare {position:fixed; bottom:40%; right:10px; float:left; border: 1px solid black; border-radius:5px;-moz-border-radius:5px;-webkit-border-radius:5px;background-color:#eff3fa;padding:0 0 2px

0;z-index:10;}

#pageshare .sbutton {float:left;clear:both;margin:5px 5px 0 5px;}

.fb_share_count_top {width:48px !important;}

.fb_share_count_top, .fb_share_count_inner {-moz-border-radius:3px;-webkit-border-radius:3px;}

.FBConnectButton_Small, .FBConnectButton_RTL_Small {width:49px !important; -moz-border-radius:3px;-webkit-border-radius:3px;}

.FBConnectButton_Small .FBConnectButton_Text {padding:2px 2px 3px !important;-moz-border-radius:3px;-webkit-border-radius:3px;font-size:8px;}

</style>
<div id='pageshare' title="Share This With Your Friends">
<div class='sbutton' id='gb'><script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like layout="box_count" show_faces="false" font=""></fb:like></div>
<!-- <div class='sbutton' id='rt'><a href="http://twitter.com/share" class="twitter-share-button" data-count="vertical" >Tweet</a><script src='http://platform.twitter.com/widgets.js' type="text/javascript"></script></div> -->
<div class='sbutton' id='gplusone'><script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script><g:plusone size="tall"></g:plusone></div>
<div class='sbutton' id='fb'><a name="fb_share" type="box_count" href="http://www.facebook.com/sharer.php">Share</a><script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script></div></div>

--------- end

I hope that will help ?

Quote · 22 Oct 2011

awesome stuff i love you guy for this !!!!

Quote · 11 Feb 2012

The last help tip does not seem to work with 7.0.9 and I cannot find the section mentioned.  Is there another way?  Thanks x

Get on the highway of life or sit at the side of the road and watch the world pass you by.
Quote · 14 Mar 2012

 

The last help tip does not seem to work with 7.0.9 and I cannot find the section mentioned.  Is there another way?  Thanks x

 His working i'm using 7.0.9 you can check www.momenthunters.com

Quote · 14 Mar 2012

thank you gukmedia, your code works fine!

Quote · 15 Mar 2012

I'm installing the

http://www.boonex.com/m/Facebook_Like_instead_of_Stars_Rating

 

I installed the module correctly.

then i installed the:

<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like show_faces="false" width="350"></fb:like>

and now under all photos it's showing:

<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like show_faces="false" width="350"></fb:like>

instead of what it's suppose to be showing.

 

Any clues?

Quote · 8 Apr 2012
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.