How do I add "facebook like" to all items?

Hi I am running version 6.1.6 of dolphin.

Ffacebook lets you add a "like" button to anywhere on your site.

This is where you add the code for each like button:

(http://developers.facebook.com/docs/reference/plugins/like)

 

Anyway you have to enter the URL for each and every item into that form which can be long and laborious.

 

This is typical of the code you receive(to put in a html widget):

<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like href="http://www.free-mobile-content.com/photo/gallery/Angry-Birds-Wallpaper-Blackberry-Bold-BB-"></fb:like>

 

You can see my url in there..

 

what I want to know is:  Can I edit a file somewhere inside dolphin so that the "like" button is hard coded in under or on top of each image/item etc that is added?

 

It would have to be hard coded in some way so that the varibale for post title, site url etc are already coded in.

Can anyone give me any advice on this?

 

I imagine Ill need to know from you:

which files I should edit.. then

I assume Ill be putting code in, something along the lines of:

<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like href="$siteurl/$photo/$gallery/$post-title"></fb:like>

 

 

This is my "understanding" - but Id appreciate a programmer helping me out with this as Ive got a lot of content on my site I think people may like.

So which files do I need to look at, plus what is the "actual" url to each file (in terms of variables) - this would be awesome if I could get this done.

Thanks

 

shaun

Quote · 24 Oct 2010

Here is the code that ad the url and title automatically to the share button. You don't have to car about URL and TITLE just add this where ever you want i suggest ; add this under the menu.

<a name="fb_share" type="button_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>

I hop this help you!

Quote · 24 Oct 2010

Hey, thanks so much for that - I'll give it a try...!

Quote · 24 Oct 2010

That worked a dream - thanks SO much!

Quote · 24 Oct 2010

 

Here is the code that ad the url and title automatically to the share button. You don't have to car about URL and TITLE just add this where ever you want i suggest ; add this under the menu.

<a name="fb_share" type="button_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>

I hope this help you!

Hi, could you let me know if this is the only code needed and where it would get placed. I was trying this as well and am a bit stuck. Thank you.

Quote · 24 Oct 2010

Your welcome shaunbaird.

 

 

Here is the code that ad the url and title automatically to the share button. You don't have to car about URL and TITLE just add this where ever you want i suggest ; add this under the menu.

<a name="fb_share" type="button_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>

I hope this help you!

Hi, could you let me know if this is the only code needed and where it would get placed. I was trying this as well and am a bit stuck. Thank you.

 

Wish version of dolphin you are using ?

Quote · 25 Oct 2010

Hello,

 

Il like to add the like button under almost everything (photos, videos, ...)

I am using dolphin 7.0.3.

If I put the code gaven by eaa-boonex in a html box, it is not really working because it doesn't add the url automaticaly.

Where can I put the code ?

Thank you for any help

Quote · 2 Nov 2010

This is actually exactly what I needed... on my site it actually DOES link to the correct page but I'm only displaying it via a inserted block... I have it showing on View Video, View Group, View Photo...  I like the Share button but I would prefer the "Like" button instead eaa_boonex have any ideas to have the like button instead of the Fshare button?

Quote · 3 Nov 2010

 

This is actually exactly what I needed... on my site it actually DOES link to the correct page but I'm only displaying it via a inserted block... I have it showing on View Video, View Group, View Photo...  I like the Share button but I would prefer the "Like" button instead eaa_boonex have any ideas to have the like button instead of the Fshare button?

Hi,

where did you put the code? in a html block ?

Thanks

Quote · 16 Nov 2010

 

 

This is actually exactly what I needed... on my site it actually DOES link to the correct page but I'm only displaying it via a inserted block... I have it showing on View Video, View Group, View Photo...  I like the Share button but I would prefer the "Like" button instead eaa_boonex have any ideas to have the like button instead of the Fshare button?

Hi,

where did you put the code? in a html block ?

Thanks

To put the like button directly on the page below the menu and on in an html box follow this, applies to D7

For the like button on different pages you will have to find the correct main html page in the modules/boonex/(module name)/templates/base folder for the appropriate file

i.e. for the photos page like button edit /public_html/modules/boonex/photos/templates/base/page_1.html

 

<bx_include_auto:_sub_header.html />
<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fmysite.com%2Fm%2Fphotos%2Fbrowse%2Falbum%2F&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;font=segoe+ui&amp;colorscheme=light&amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowTransparency="true"></iframe>
__page_main_code__
<bx_include_auto:_sub_footer.html />
Screenshot-60.png · 103.7K · 269 views
ManOfTeal.COM a Proud UNA site, six years running strong!
Quote · 16 Nov 2010

 

I'm sorry to be a pain but I just cannot get this to work. I have read many posts and tried different versions but nothing is shopping on any of my pages. I'm on Dolphin 7.0.8.

Any help is much appreciated.

 

Thanks

 

M

 

Quote · 11 Apr 2012

I'm getting the gist of it, but I can help when i get to it, but not now.  I'm still trying to work out the kinks.  As soon as I upload version 9 I will try it on my site and if it works I'll post it here.  I'm a novice but others are helping me and if I can get it to work, I'll let you know.  I do appreciate everyone's help if I had funding I would pay the people who is helping me.

I'm like the godfather, I never forgot. :)

Quote · 11 Apr 2012

 No pain.. lol

I have setup another page with this example 

iframe facebook like

It is only showing on the photos "main" page, which would be 

i.e. for the photos page, you would edit /public_html/modules/boonex/photos/templates/base/page_1.html


<bx_include_auto:_sub_header.html />

<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fmysite.com%2Fm%2Fphotos%2Fbrowse%2Falbum%2F&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;font=segoe+ui&amp;colorscheme=light&amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowTransparency="true"></iframe>

        __page_main_code__

<bx_include_auto:_sub_footer.html />



of course you could always use the examples I use on duvallocals.info.. the one on the left and the "basket" on the bottom right.

http://www.boonex.com/forums/topic/New-Look-of-Add-This-share-buttons.htm

These are taken directly from postings here, all free.

Remember after working with pages on your site, you must clear the /cache and /public_cache (leaving both .htaccess files) folders to see your changes.


Michael

 

I'm sorry to be a pain but I just cannot get this to work. I have read many posts and tried different versions but nothing is shopping on any of my pages. I'm on Dolphin 7.0.8.

Any help is much appreciated.

 

Thanks

 

M

 

 

ManOfTeal.COM a Proud UNA site, six years running strong!
Quote · 11 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.