XF 1.4 Reddit username under Additional Contact

JackieChun

Active member
Are there any plans to overhaul Additional Contact fields available to users during registration? AIM, ICQ, and Yahoo Messenger usage is dwindling, Google Talk is no longer a thing, while a bunch of social networks have emerged that people are using now. Much of my membership, for example, comes from reddit, and I would like to have the ID listed in Additional Contact. Is this possible?
 

eberkund

Well-known member
What have you tried?

When you make the custom field you need a regular expression to get just the user ID and then there is another field for how it is displayed where you can insert HTML
 

JackieChun

Active member
I am at the Custom Field creation screen, not sure what to do next. I've only created static custom fields before.
 

eberkund

Well-known member
Options for text fields:

Field type: Single line text box
Value match requirements: A-Z, 0-9, and _ only

General Options:

Value Display HTML:
HTML:
<a href="http://reddit.com/user/{$value}">Reddit User {$value}</a>
 

JackieChun

Active member
Great, thank you very much.

Slight correction to the code:

HTML:
<a href="http://reddit.com/user/{$value}">{$value}</a>
The style will display Reddit user: automatically.

:)
 
Top