obey robots.txt
May 18 2013 23:54:35
Navigation
View standard Themes
Switch to:
Forum Threads
Newest Threads
BBcode overview page
Trio panel with late...
Insert an advertisem...
Install PHP-Fusion, ...
Messages.php no limi...
Hottest Threads
BBcode overview page [0]
Latest Articles
No Articles available
Facebook Like
Portfolio
BetterClimate.Net
Classifieds.Start-Pages
Daily-Breaking-News.Com
PHP-Fusion.Asia
PHP-Fusion.Cn
PHP-Fusion.Fr
PHP-Fusion.in
PHP-Fusion.Org
WebHostingTrouble.Com
WebMasterTrouble.Com
View Thread
 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']."&amp;send=false&amp;layout=button_count&amp;width=".$width."&amp;show_faces=".$faces."&amp;action=like&amp;colorscheme=".$color_scheme."&amp;font=tahoma&amp;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.052 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.
.
 
Jump to Forum:
Users Online
Guests Online: 2

Members Online: 0

Total Members: 20
Newest Member: Craig
Login
Username

Password



Not a member yet?
Click here to register.

Forgotten your password?
Request a new one here.
Last Seen Users
Fusioneer02:53:24
Shoutbox
You must login to post a message.

No messages have been posted.
Member Poll
PHP-Fusion, I might try it.

Yes
Member Poll: PHP-Fusion, I might try it. Yes 100% [3 Votes]
100% [3 Votes]

No
Member Poll: PHP-Fusion, I might try it. No 0% [0 Votes]
0% [0 Votes]

Maybe
Member Poll: PHP-Fusion, I might try it. Maybe 0% [0 Votes]
0% [0 Votes]

Votes: 3
You must login to vote.
Started: 20.10.11
80,959 unique visits