Post: Facebook Like Button
03-24-2012, 09:27 PM #1
Default Avatar
Brad
Guest
(adsbygoogle = window.adsbygoogle || []).push({}); This is a facebook Like button that i have edited so it will automatically know the page that you are on so you will not have to change anything at all!

I know i haven't changed much but this is very useful!

    
<html>
<body>

<!--facebook like source-->
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'Winky Winky);</script>

<!--facebook like button-->
<div class="fb-like" data-href="<?php echo "https://{$_SERVER['SERVER_NAME']}{$_SERVER['REQUEST_URI']}" ?>" data-send="false" data-width="45" data-show-faces="true" data-font="arial"></div>

</body>
</html>


i don't know if this is the correct section for this? :confused:
(adsbygoogle = window.adsbygoogle || []).push({});

The following user thanked Brad for this useful post:

NSixtyFourFAILS
03-25-2012, 09:00 AM #2
Pichu
RIP PICHU.
Originally posted by Dr.
This is a facebook Like button that i have edited so it will automatically know the page that you are on so you will not have to change anything at all!

I know i haven't changed much but this is very useful!

    
<html>
<body>

<!--facebook like source-->
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'Winky Winky);</script>

<!--facebook like button-->
<div class="fb-like" data-href="<?php echo "https://{$_SERVER['SERVER_NAME']}{$_SERVER['REQUEST_URI']}" ?>" data-send="false" data-width="45" data-show-faces="true" data-font="arial"></div>

</body>
</html>


i don't know if this is the correct section for this? :confused:


Right section. Smile

----
Bah, I want to get further in HTML/CSS/JS. Happy
03-25-2012, 02:11 PM #3
Default Avatar
Brad
Guest
Originally posted by Sublimity View Post
Right section. Smile

----
Bah, I want to get further in HTML/CSS/JS. Happy


ahaha Happy
all i did was add a small bit of php Awesome face
03-25-2012, 09:25 PM #4
Pichu
RIP PICHU.
Originally posted by Dr.
ahaha Happy
all i did was add a small bit of php Awesome face


Another language I want to learn. Smile
03-26-2012, 09:47 PM #5
I thought it should be in the coding section , as it's web development. :p.
And also nice work, FB seems to use JS alot combined with perl.

-----700 Posts XD.
03-26-2012, 10:00 PM #6
Epic?
Awe-Inspiring
Originally posted by LEzStarz View Post
I thought it should be in the coding section , as it's web development. :p.
And also nice work, FB seems to use JS alot combined with perl.

-----700 Posts XD.


Facebook doesn't use Perl whatsoever.
03-26-2012, 11:10 PM #7
Pichu
RIP PICHU.
Originally posted by Epic
Facebook doesn't use Perl whatsoever.


Facebook uses VB.NET all the way through... that's what it uses. :carling:
03-27-2012, 07:41 PM #8
Originally posted by Epic
Facebook doesn't use Perl whatsoever.


They started off with Perl.
03-28-2012, 12:30 AM #9
Epic?
Awe-Inspiring
Originally posted by LEzStarz View Post
They started off with Perl.


Wrong again. They started off with PHP. They still use PHP, which is compiled to C++ using HipHop for PHP.

It's possible they wrote some Perl scripts, however they do not use Perl, nor did they start with Perl.
03-28-2012, 12:36 AM #10
Chaz
Tremble Underfoot
Originally posted by Sublimity View Post
Right section. Smile

----
Bah, I want to get further in HTML/CSS/JS. Happy


You and I are in the same boat Happy

I really wan't to learn HTML/CSS and PHP Winky Winky

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo