Skip to:
Content
Pages
Categories
Search
Top
Bottom

Adding a URL to Profile Field Setup

  • @member11

    Participant

    Hi,

    I’m setting up my profile fields, and would like to allow members to display their own website url’s.

    When I drop the url into a text box, the link that is generated sends me to the search results for the url within BP.

    Is there a way to redirect the url in a new window to the member’s website.

    thanks

    Paul

Viewing 6 replies - 1 through 6 (of 6 total)
  • @djpaul

    Keymaster

    Not out the box. I have most of the code which would allow this to be done on my Mac at home. It’s one of my code projects part way through development ;)

    @member11

    Participant

    right… so no easy job then?

    Any ideas on how it works with the developer profiles on the BP site then?

    thanks for your help.

    Paul

    @r-a-y

    Keymaster

    I use a plugin by Boone Gorges called Custom Profile Filters:

    http://dev.commons.gc.cuny.edu/2009/06/21/updated-version-02-of-custom-profile-filters-for-buddypress/

    Needs some manual configuration in the $social_networking_fields array, but you should be able to do what you need.

    Give that a shot.

    @member11

    Participant

    Thanks a lot R-a-y!

    Boones plugin works great.

    I have one issue, which after reading your commentary on Boones post, you seem well qualified to answer ;) ….

    I wasn’t able to get the website URL inside a text field linking to anything but the members search results. I used the following:

    [http://www.mysite.com]

    Any ideas?

    thanks again for your help.

    Paul

    @mlovelock

    Participant

    @member11 – rather than enclosing your website URL in brackets (and making your users do the same) you’d be better off specifying the website URL field in the config file as @r-a-y suggests, so that it’s not linked to the search facility:

    Open up the custom-profile-filters-for-buddypress.php file and in the $no_link_fields array (starting on line 14) add in your field, so mine looks like this:

    $no_link_fields = array( // Enter the field ID of any field that you want to appear as plain, non-clickable text. Don’t forget to separate with commas.

    ‘Skype ID ‘ ,

    ‘Phone’ ,

    ‘IM’ ,

    ‘Web Site’

    );

    – where my web site field is called Web Site.

    Also you may want to add in any social networking URLS that your site uses in the $social_networking_fields array that’s below this array. Same principle.

    @member11

    Participant

    @mlovelock

    Thanks for the tip. I’m pretty keen to establish clickable links if possible.

    I tested this in the $social_networking_fields = array

    'Website URL' =>'www.' ,

    It seems to work for me as long as I make the instructions clear in the field description about how to format the url. i.e. with [mydomain.com] and no http:// or www.

    My site is still in dev so i have no stats on user understanding of this.

    cheers

    Paul

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Adding a URL to Profile Field Setup’ is closed to new replies.
Skip to toolbar