View Thread
Do you have a nice horizontal or vertical panel in use? Share your code to all PHP-Fusion users.
 Print Thread
Facebook Like Panel
Fusioneer
Display a Facebook Like panel, you can choose any kind of panel you like (left, right, upper, lower)
Then paste the code below in a panel you choose.

My example is for a left panel.

Go to your "Admin Panel" --> System Admin --> Panels
Create a new "Left" panel.
Give the panel a name, for example "Facebook Like"
Keep panel filename the default value "None"
Remove all panel content and replace with the code below.

Download source  GeSHi: PHP
  1. //Variables//
  2. $faces = "false"; // Show Facebook Profile Picture under the Like button true || false
  3. $color_scheme = "dark"; // The Colour Scheme of the Facebook Like Button light || dark
  4. $width ="160"; // The width of the Facebook Like Button in pixels Numbers
  5. $height = "21"; // The height of the Facebook Like Button in pixels Numbers
  6. openside("Facebook Like");
  7.  
  8. echo "<iframe src='//www.facebook.com/plugins/like.php?href=".$settings['site_protocol']."://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']."&send=false&layout=button_count&width=".$width."&show_faces=".$faces."&action=like&colorscheme=".$color_scheme."&font=tahoma&height=".$height."' scrolling='no' frameborder='0' style='border:none; overflow:hidden; width:".$width."px; height:".$height."px;' allowTransparency='true'></iframe>";
  9.  
  10. closeside();
  11.  
Parsed in 0.019 seconds, using GeSHi 1.0.8.10


Panel restriction should be "include in these pages" and leave the field blank.
Panel access should be public.
Check the checkbox for "Display panel on all pages".
Save the panel and enable it.

Bottom left is an example! Please click it to see how it works.

Note: Panel is based on Fangree Graig's code and Facebook Like plugin wizard, but improved by me.
Warning about ParkingCrew.com! Case: ParkingCrew.com acquires NameDrive.com but earnings are not transferred despite assurances and promises. Inquiries about this are ignored! It's just a con compagny. Don't do business with them!
 
Jump to Forum
New Thread Post Reply
Gebruik BBcode of HTML om naar; 'Facebook Like Panel', te verwijzen!
BBcode:
HTML:
Vergelijkbare onderwerpen
Subject Discussion Forum         Last Post
Trio panel with latest threads, news and articles Panels/infusions (add ons) : 23 15-07-2015
Add edit message to Quickreply panel Modifications to viewthread.php : 1 19-01-2015
Insert an advertisement panel between forum posts Panels, share youre code : 2 16-12-2014
Navigation panel without CSS Panels/infusions (add ons) : 1 14-09-2014
Improved Last seen users panel Panels/infusions (add ons) : 3 17-12-2013