Log in

View Full Version : vBFOAF - Friend of a Friend exporter for vBulletin 3


Cloud-Warrior
06-22-2004, 10:00 PM
Please find attached first version of vBFOAF - an exporter of user profiles to FOAF format.

Note that a user's buddies will become publicly viewable after installing this mod, so it is advisable to notify users of a policy change on your bulletin board.

I haven't modified any vB files, but you will have to create a custom profile field called "Real Name".

Opinions etc. here - for more information on FOAF, visit www.foaf-project.org.

Following comments I will release an updated version.

Directions:


Copy the attached file into your vbulletin directory
Call with the parameter u=1 for the userid, e.g. http://www.vbulletin.ie/forums/foaf.php?u=1


John.
--
Also the 1st workshop on FOAF, social networking and the semantic web is in Galway, Ireland in September - Call for Papers (http://www.w3.org/2001/sw/Europe/events/foaf-galway/) | Organisers Page (http://sw.deri.ie/~jbreslin/foaf-galway/)

Cloud-Warrior
06-23-2004, 10:49 AM
Sorry, can this be moved to vB3 beta forum - oops!

KTBleeding
06-23-2004, 02:52 PM
Cool. SO this just displays the users in a certain members buddy list on their profile?

Cloud-Warrior
06-23-2004, 05:24 PM
Cool. SO this just displays the users in a certain members buddy list on their profile?

Yep, it displays the FOAF-able elements from a user's profile, including who they know (their buddies) - RDF crawlers can then see who is linked to who, for example www.plink.org - later, I'd like to add a custom FOAF code profile field, so that people can add in their own FOAF bit linking to people outside the local site.

KTBleeding
06-24-2004, 01:02 AM
Sorry if I'm coming off as ignorant.. but where does it display the friends? Their profiles? If so, you are awesome. I requested this a looong time ago. :)

Cloud-Warrior
06-24-2004, 07:55 AM
Sorry if I'm coming off as ignorant.. but where does it display the friends? Their profiles? If so, you are awesome. I requested this a looong time ago. :)

Ah, sorry - I think I've confused you, this hack provides an RDF representation of a person's profile for use on a semantic web. It doesn't show anything on a person's profile, so it is standalone.

I think what you may be interested in is another hack I beta-ed yesterday - vBFriends (https://vborg.vbsupport.ru/showthread.php?t=66449).

Cloud-Warrior
07-23-2004, 10:02 AM
Moved to Full Releases - thanks Logician.

Cloud-Warrior
11-24-2005, 04:04 PM
Updated for vB 3.5:

https://vborg.vbsupport.ru/showthread.php?t=101472

rfikki
06-23-2007, 11:56 AM
3.6.7 shows errors:

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /foaf.php on line 40

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /foaf.php on line 45

Warning: Cannot modify header information - headers already sent by (output started at /home/www/zebra/includes/class_core.php:3083) in /foaf.php on line 103

Cloud-Warrior
11-29-2007, 02:13 PM
I fixed these errors - the new script can be downloaded here https://vborg.vbsupport.ru/showthread.php?t=101472