Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Facebook integration - "Like" a post...
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Facebook integration - "Like" a post...

 Post Reply Post Reply
Author
alabamatoy View Drop Down
Groupie
Groupie


Joined: 04 February 2006
Location: United States
Status: Offline
Points: 143
Post Options Post Options   Thanks (0) Thanks(0)   Quote alabamatoy Quote  Post ReplyReply Direct Link To This Post Topic: Facebook integration - "Like" a post...
    Posted: 13 February 2011 at 8:57pm
I modified the "forum_posts.asp" at line 865 to add the following:
'Display Facebook like option if not a private forum
if intcatid <> 2 then
    dim strmyurl
    strmyurl= strForumPath & "forum_posts.asp?TID=" & lngTopicID
   
response.write("&nbsp&nbsp<script src=""http://connect.facebook.net/en_US/all.js#xfbml=1""></script><fb:like href=""" & strmyurl & """ show_faces=""false"" width=""40"" font=""arial""></fb:like>")
end if

Intcatid value specifies the category of the forum which is private - you dont want people facebooking your private forum posts.  Even though the public shouldnt be able to get to them, its not a good idea to bring a bunch of traffic beating on the private sections.  The code in blue above is one long line, but in this forum post format it gets line-wrapped.  Also, if your forum uses dark colors, you will want to insert the following
[space]colorscheme=""dark""
immediately after ...arial""  and before > in the blue text above to ensure that the facebook text is readable, otherwise you will have black text on black background.

The result looks like the following:



When you "like" a post, you get a little popup to enter "comments" that will be included in the facebook wall-post.  After you submit the facebook like, it will show "for you" that you have liked the post, and your facebook wall will show the link and post title etc.

How this works is described here on Facebook.

I hope someone finds this useful......
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 15 February 2011 at 12:05pm
Web Wiz Forums already has this functionality built in. Click the on 'Share Topic' at the top of the page and select 'Facebook' from the drop down. It will then add it to your Facebook wall as a link that you like.
Back to Top
alabamatoy View Drop Down
Groupie
Groupie


Joined: 04 February 2006
Location: United States
Status: Offline
Points: 143
Post Options Post Options   Thanks (0) Thanks(0)   Quote alabamatoy Quote  Post ReplyReply Direct Link To This Post Posted: 16 February 2011 at 3:47pm
Must be a version thing, my existing code base doesnt seem to have this capability.
Back to Top
iSec View Drop Down
Senior Member
Senior Member
Avatar

Joined: 13 February 2005
Status: Offline
Points: 1140
Post Options Post Options   Thanks (0) Thanks(0)   Quote iSec Quote  Post ReplyReply Direct Link To This Post Posted: 16 February 2011 at 6:01pm
Bruce,

The "Share topic" button and the Like button are two different Facebook functions.
"When it gets dark enough, you can see the stars"
-Charles A. Beard
Back to Top
Ravage View Drop Down
Newbie
Newbie


Joined: 21 March 2006
Status: Offline
Points: 32
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ravage Quote  Post ReplyReply Direct Link To This Post Posted: 16 February 2011 at 10:40pm
For whats its worth, I appreciated this - Ive added it to our site - nice work!
 
No offence Bruce, but until you replied I didnt even know that share topic link was even there!! Maybe makes it a fb/twitter (thumb and T logos?)  combined logo next to it in the next release rather than the green and white arrows?? Most people will know those but I presume this wont be done as you support allot of other types of sharing there!
 
Also having been made aware of it, I've had to edit the forum_posts.asp to turn of bruce's share topic button on certain forums as we have private channels for admins that really shouldnt be allowed to facebook/digg/whatever and can I strongly suggest a field is added to the forum admin area which is a tick box turning "share topic" on and off for each forum (like the tick box that says hide forum if no access)?


Edited by Ravage - 16 February 2011 at 10:43pm
Back to Top
synan54 View Drop Down
Newbie
Newbie


Joined: 06 February 2009
Status: Offline
Points: 14
Post Options Post Options   Thanks (0) Thanks(0)   Quote synan54 Quote  Post ReplyReply Direct Link To This Post Posted: 27 February 2011 at 2:03am
nice work
thank you
Back to Top
dreamboy3000 View Drop Down
Groupie
Groupie


Joined: 16 August 2006
Status: Offline
Points: 70
Post Options Post Options   Thanks (0) Thanks(0)   Quote dreamboy3000 Quote  Post ReplyReply Direct Link To This Post Posted: 04 March 2011 at 2:18pm
Originally posted by iSec iSec wrote:

Bruce,

The "Share topic" button and the Like button are two different Facebook functions.


You are right and I like the new feature. The following features would be good too......

1) When a newbie signs in for the first time they get a private message popup of the rules thread.

2) In profiles have have the ability to put in Facebook and Twitter account links that show below username after posting.

3) The chance to go to your profile and make it possible to hide the last topic of a section. I run a wrestling site and the shows are shown at different times around the world. People know to avoid a section if they haven't watched a show so they not to be spoilt, but on the forum homepage you can see the last topic mentioned for each section.
Back to Top
AllMor View Drop Down
Groupie
Groupie
Avatar

Joined: 16 April 2010
Location: Denmark
Status: Offline
Points: 70
Post Options Post Options   Thanks (0) Thanks(0)   Quote AllMor Quote  Post ReplyReply Direct Link To This Post Posted: 07 March 2011 at 9:28am
Very usefull script,
For information, the script should be inserted into line 930 in a untouched version 9.70.
 
//Allan
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.