[buddypress-trac] [BuddyPress Trac] #5501: Custom xprofile field: URL
buddypress-trac
noreply at wordpress.org
Wed Jun 25 13:45:43 UTC 2014
#5501: Custom xprofile field: URL
---------------------------+------------------
Reporter: sooskriszta | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 2.1
Component: XProfile | Version:
Severity: normal | Resolution:
Keywords: needs-refresh |
---------------------------+------------------
Changes (by boonebgorges):
* keywords: has-patch dev-feedback => needs-refresh
Comment:
This ticket prompted the opening of #5630. That ticket has just been
resolved, which means that `BP_XProfile_Field_Type` classes can now
provide their own `display_filter()` method to customize the display of
their content. I'd like to suggest a refresh of this ticket that adds a
`display_filter()` method that does the following:
1. Turns URLs into clickable links with nofollow
2. Strips schemes from the text of the links
3. Strips trailingslashes from the URL displayed, but adds them to the
href
So
`https://buddypress.trac.wordpress.org`
and
`https://buddypress.trac.wordpress.org`
both become:
`<a href="https://buddypress.trac.wordpress.org/"
rel="nofollow">buddypress.trac.wordpress.org</a>`
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5501#comment:21>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list