News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

[FREE] Add Facebook Like Button

Started by yogesh_gamer, June 01, 2011, 12:18:14 PM

Previous topic - Next topic

yogesh_gamer

Message:
QuoteI want to add Facebook Like button.
(please see attachment)

Version:
QuoteI am using 1.1.13 version.

Disciption:
I want to add Facebook like button. (please see the attachment, you will understand all things)

Permissions
QuoteEveryone may use this feature.

Feature Set
QuoteAdmin Option.


yogesh_gamer

why nobody is reply me.
its my third day
and no reply

~DS~

"There is no god, and that's the simple truth. If every trace of any single religion were wiped out and nothing were passed on, it would never be created exactly that way again. There might be some other nonsense in its place, but not that exact nonsense. If all of science were wiped out, it would still be true and someone would find a way to figure it all out again."
~Penn Jillette – God, NO! – 2011

Antes

#3
Quote from: yogesh_gamer on June 01, 2011, 12:18:14 PM
Version:
QuoteI am using 1.1.13 version.

You don't need an mod for this just little template play...

I think this helps

Open (Index.template.php)
Code (find) Select

// display the time
echo '
<td class="titlebg2" height="32" align="right">
<span class="smalltext">' , $context['current_time'], '</span>';

Code (change) Select

// display the time
echo '
<td class="titlebg2" height="32" align="right">
<span class="smalltext">' , $context['current_time'], '<iframe src="http://www.facebook.com/plugins/like.php?app_id=139127319470008&amp;href='.$scripturl.'?topic=' . $context['current_topic'] . '.0;msg='.$message['id'].'&amp;send=false&amp;layout=button_count&amp;width=100&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:100px; height:21px;" allowTransparency="true"></iframe></span>';

yogesh_gamer

#4
Ok. But how it works?
Is there no need to enter my facebook page id or username or anything else?

Update:
I have a page on facebook.
I want to integrate My facebook Like Button to my website.

update:
I used facebook plugin and paste the code to Global Header And Footer mod. Its was working but when i click on the sub menu in the admin menu it was not showing anything.
Is there any similar idea?

yogesh_gamer


Antes

So you want that button only use to like your FB Page?

Antes

// display the time
echo '
<td class="titlebg2" height="32" align="right">
<span class="smalltext">' , $context['current_time'], '<iframe src="http://www.facebook.com/plugins/like.php?app_id=139127319470008&amp;href=Your Site Adress Here&amp;send=false&amp;layout=button_count&amp;width=100&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:100px; height:21px;" allowTransparency="true"></iframe></span>';


Use this :)

yogesh_gamer

sir you are not understanding what i want to say
Please explain me how this will work
is there no need to enter my facebook page url?

update:
when somebody like the page then it should show on my facebook page.

Antes

Quote from: yogesh_gamer on June 04, 2011, 10:25:50 PM
sir you are not understanding what i want to say
Please explain me how this will work
is there no need to enter my facebook page url?

update:
when somebody like the page then it should show on my facebook page.


i don't think its possible

"when someone likes something in your site then it shows under your FB page feed"...

I give 2 type of Like button

1 ) When clicked "likes pages". (where you are)
2 ) When clicked "likes page". (your choose)

in 2nd button just edit the "Your Site Adress Here" with eg: http://www.mmobrowser.com or http://www.facebook.com/mmobrowser

yogesh_gamer

#10
ok. thanks
my problem is solved now
Thanks
Yogesh

Advertisement: