Print Page | Close Window

Facebook integration - "Like" a post...

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums Modifications
Forum Description: Mod's and Add-on's for Web Wiz Forums.
URL: https://forums.webwiz.net/forum_posts.asp?TID=29123
Printed Date: 28 March 2026 at 10:56am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Facebook integration - "Like" a post...
Posted By: alabamatoy
Subject: Facebook integration - "Like" a post...
Date 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 http://developers.facebook.com/docs/reference/plugins/like" rel="nofollow - here on Facebook.

I hope someone finds this useful......



Replies:
Posted By: WebWiz-Bruce
Date 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.

-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: alabamatoy
Date Posted: 16 February 2011 at 3:47pm
Must be a version thing, my existing code base doesnt seem to have this capability.


Posted By: iSec
Date 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


Posted By: Ravage
Date 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)?


Posted By: synan54
Date Posted: 27 February 2011 at 2:03am
nice work
thank you


Posted By: dreamboy3000
Date 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.


Posted By: AllMor
Date 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net