Solution to Add the Facebook Sharer On your HESK Articles

Everything related to Hesk - helpdesk software

Moderator: mkoch227

Post Reply
hefin
Posts: 8
Joined: Wed Mar 24, 2010 7:44 am

Solution to Add the Facebook Sharer On your HESK Articles

Post by hefin »

/*************************************
Title: Adding the Facebook Sharer on your HESK Articles
Version: 1.0
Author:
Demo: http://hefin.in
Download:
Website:

Short description:
A Simple Addition in the Knowledgebase.php page to add the Facebook sharer to allow your Viewers to share your articles on Facebook

*************************************/
Open the knowledgebase.php file and paste the following lines anywhere you want to display the Facebook Share Icon

Code: Select all

echo '<a name="fb_share" type="button_count" share_url="http://[YOUR HESK URL]/knowledgebase.php?article='.$artid.'" href="http://www.facebook.com/sharer.php">Share</a><script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>';
DEMO here
http://hefin.in/knowledgebase.php?article=2
I added this code below the Vote Option
So I pasted the code above the Following line

Code: Select all

    if ($article['catid']==1)
Just felt like sharing this with all of phpjunkyard members
[/code]
Regards
Hefin Dsouza
http://hefin.in
Klemen
Site Admin
Posts: 10136
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Thanks for sharing!
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Post Reply