Facebook Like-button for Geeklog

The reason for this is simply put: exposure. Your site link will be exposed to everyone who is friends with a person who have "liked" your page. This is a free, simple and fast way of marketing your site. This guide will focus on how to implement the button in GeekLog with the professional theme applied.

Using Plugins

I've searched for plugins which includes the "facebook like button" and only came across one called SocialShare, available here. Unfortunately it didn't work for me so I made my own modifications and wrote down the steps needed to integrate facebook to your site.

Download files

First we need to download a few files that we need to modify manually, don't worry it will be simple.
Use a FTP client to connect to your site, and download the following files:

  • /layout/professional/storytext.thtml
  • /layout/professional/featuredstorytext.thtml
  • /system/lib-story.php

 

Modify GeekLog files

 

  • First, open up the lib-story.php file in any text editor that you prefer and search for the following text:
     $articleUrl = COM_buildUrl($_CONF['site_url'] . '/article.php?story='. $story->getSid());
    
  • Insert the following line of below the line mentioned above
     $article->set_var('story_encoded_link', urlencode($articleUrl)); 
  • Save and close the file
  • Open storytext.thtml and search for
     
    <
    div class="story-footer">
  • Insert the following code below that line mentioned above:
     
    <
    iframe src="http://www.facebook.com/plugins/like.php?show_faces=false&href={story_encoded_link}" 
    scrolling="no" frameborder="0" style="border:none; width:450px; height:35px;">
    <
    /iframe>
    
  • Save and close
  • Do with featuredstorytext.thtml the same as you did with storytext.thtml

 

Upload

Now all you have to do is to upload the modified files to their original location on your server, and your good to go.

 Facebook Signin using the PHP SDK

Have you setup a facebook app and downloaded their sdk, and don\'t know where to go from there?

 Facebook PHP SDK login problem

Have you integrated a facebook login to your site, or are you planning to? There\'s a small bug involving the sign in process that can make your life miserable unless you know how to get around it. Here\'s one possible solution.

 Internet Explorer 9, JScript Error c00c023f

Ajax and Error c00c023f

After updating to Internet Explorer 9, a previously working ajax driven site of mine stopped working sporadically.

In this short article you will see how to reproduce, and how to solve the problem.

 Facebook Like button shows blank, solution

The \"EnkelAdress on Facebook\" button displayed just fine for a couple of days and then suddenly it showed up blank, no matter how many times trying to copy the code provided by Facebook. After quite some time digging deep in the information jungle we found the solution.

Page 1 / 2

 Facebook PHP SDK login problem

Have you integrated a facebook login to your site, or are you planning to? There\'s a small bug involving the sign in process that can make your life miserable unless you know how to get around it. Here\'s one possible solution.

 Thumbs Up Immerse VR Headset

This Immerse headset from ThumbsUp offers both positive and negative sides.

 Know your limits: Web Design

You might have the best app ever created, or you might have the user friendliest web page in the world. You might even have the most useful piece of shareware ever made and still not making any money.

 DroidXplorer big in China?

According to an email DroidXplorer will be preinstalled on devices, and be featured on a set of app stores. For free.

 Would this interest you?

Page 1 / 11