Skip to:
Content
Pages
Categories
Search
Top
Bottom

Convert URL Xprofile field to text


  • bdd
    Participant

    @bws-online

    I’d like to take the URL entered in an Xprofile field and display it on another page using a different Xprofile field as the link text (instead of using the URL entered in the the Xprofile field as both the link text and the destination).

    So as an example, the Xprofile fields are Blog Name and Blog Address. On the profile, the Blog Name is plain text, and the Blog Address is a URL. When I display it on the other page, I want the Blog Name field to show up as the link text, and then the link’s destination will be the Blog Address field.

    I’m able to grab and display both Xprofile fields as is, but the URL field is coming through as the full link (with link text and address).

    How do I convert that URL Xprofile field to text? Or split it up somehow so I’m just getting the address part?

Viewing 1 replies (of 1 total)

  • bdd
    Participant

    @bws-online

    Short-term solution: I changed the Xprofile field type to text — seems to still be linking in the profile (whether the member types “https://” or “http://” or neither). And then I was able to manipulate the HTML and PHP to do what I wanted above (since the Blog Address is no longer formatted as a URL).

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar