Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Facebook Panel

Asked Modified Viewed 4,219 times
S
Samuel MS
S
I'm not good at English.
  • Member, joined since
  • Contributed 70 posts on the community forums.
  • Started 21 threads in the forums
  • Started this discussions
asked
Member

Hello all, i want to make my facebook like box at side panel, can anyone tell me how to do it.
0 replies

4 posts

C
Craig
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
answered
Fusioneer

Here you go mate.

Paste this into the panel editor in Admin >>> System >>> Panels >>> New Panel

openside("Facebook Like");

global $settings;

echo "<iframe src='http://www.facebook.com/plugins/like.php?href=".$settings['site_protocol']."://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']."
&amp;layout=standard&amp;show_faces=true&amp;width=400&amp;action=like&amp;font=tahoma&amp;colorscheme=light'
scrolling='no' height='60' frameborder='0' allowTransparency='true' id='facebook-like'></iframe><br /><br />";
closeside();
0 replies
S
Samuel MS
S
I'm not good at English.
  • Member, joined since
  • Contributed 70 posts on the community forums.
  • Started 21 threads in the forums
  • Started this discussions
answered
Member

Thanks Craig,but there is an error.

Here is a code a got from Facebook
<iframe src="http://www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Fwww.facebook.com%2Fpages%2Fsamteacom%2F106831622733454&amp;width=292&amp;colorscheme=light&amp;show_faces=true&amp;stream=false&amp;header=true&amp;height=62" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:292px; height:62px;" allowTransparency="true"></iframe>
Edited by faga on 20-05-2011 22:32,
0 replies
F
faga
F
faga 10
I choose a lazy person to do a hard job. Because a lazy person will find an easy way to do it.” - Bill Gates
  • Member, joined since
  • Contributed 158 posts on the community forums.
  • Started 14 threads in the forums
answered
Member

Try this:


openside("Facebook Like");

  echo '<iframe src="http://www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Fwww.facebook.com%2Fpages%2Fsamteacom%2F106831622733454&amp;width=292&amp;colorscheme=light&amp;show_faces=true&amp;stream=false&amp;header=true&amp;height=62" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:292px; height:62px;" allowTransparency="true"></iframe>',
closeside();
0 replies
S
Samuel MS
S
I'm not good at English.
  • Member, joined since
  • Contributed 70 posts on the community forums.
  • Started 21 threads in the forums
  • Started this discussions
answered
Member

Thanks for your help.
0 replies

Category Forum

Panels and Infusions

Labels

None yet

Statistics

  • Views 0 views
  • Posts 4 posts
  • Votes 0 votes
  • Topic users 3 members

3 participants

C
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
F
F
faga 10
I choose a lazy person to do a hard job. Because a lazy person will find an easy way to do it.” - Bill Gates
  • Member, joined since
  • Contributed 158 posts on the community forums.
  • Started 14 threads in the forums
S
S
I'm not good at English.
  • Member, joined since
  • Contributed 70 posts on the community forums.
  • Started 21 threads in the forums
  • Started this discussions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet