Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Extending Profiles


mlovelock
Participant

@mlovelock

If you’re using the plugin I mentioned and you want to do exactly what you mentioned above, you could probably just add it into the SN arry in the plugin file, thus:

$social_networking_fields = array( // Enter the field ID of any field that prompts for the username to a social networking site, followed by the URL that must be appended to username to create a link to the user's profile on that site. Thus, since the URL for the profile of awesometwitteruser is twitter.com/awesometwitteruser, you should enter 'Twitter' => 'twitter.com/'. Don't forget: 1) Leave out the 'http://', 2) Include the trailing slash (/) if needed to make a valid URL, and 3) to separate items with commas
'Twitter' =>'twitter.com/' ,
'Delicious ID' => 'delicious.com/' ,
'YouTube ID ' => 'youtube.com/' ,
'Flickr ID ' =>'flickr.com/' ,
'FriendFeed ID' => 'friendfeed.com/',
'Facebook' => 'facebook.com/',
'MySpace' => 'myspace.com/',
// your site's Company Field
'Company' => 'google.co.uk/search?q='

);

// You shouldn't need to touch anything below this line.

Of course I haven’t actually tried this myself. The alternative is to extend the plugin a little with a function that takes that company field and does whatever you want to do with it.

Skip to toolbar