Jump to content

Custom profile fields, URL and regex question

Recommended Posts

I am currently in the process of developing custom profile field to store members' Facebook profile and Facebook group links information. While the implementation of these fields is straightforward, I am trying to enforce a restriction wherein only specific URL leading to Facebook is accepted by the field.

I'm wondering if there's a way to automatically fix entries when a member only puts in a Facebook handle without the full URL. I want it to add the necessary parts to create a proper link. Whether it's a exact link like www.facebook.com/username or https://www.facebook.com/groups/groupname/ just the handle "username" or "groupname" I require it to transform into the correct link like www.facebook.com/username or https://www.facebook.com/groups/groupname.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...