Skip to main content
Topic: predefined custom fields (Read 7608 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

predefined custom fields

While fixing the MSN / Skype thingy (https://github.com/elkarte/Elkarte/issues/890) I thoght it might be worth to add some more predefined fields for at least Twitter, Facebook, G+ and LinkedIn..

Do we want them in the core or is this addon stuff?
Thorsten "TE" Eurich
------------------------

Re: predefined custom fields

Reply #1

I think it wouldn't hurt. :D
Bugs creator.
Features destroyer.
Template killer.

Re: predefined custom fields

Reply #2

Yeah adding those in is easy and will help stop a bunch of questions of how do I add xyz to my forum ... So I'd put them in as they will be expected.

Re: predefined custom fields

Reply #3

sorry but I cannot find those fields (Facebook, G+, Twitter...) on my forum, or should I add them as custom fields?
sorry for my bad english

Re: predefined custom fields

Reply #4

Did you enable the "Advanced profile fields" in core features?
Bugs creator.
Features destroyer.
Template killer.

Re: predefined custom fields

Reply #5

yes, enabled. I can add custom fields, but I thought there are some "standard" fields for social networks like FB, G+, Tw, etc
sorry for my bad english

Re: predefined custom fields

Reply #6

Ahhh!
Probably with the import the default custom fields have been removed.
In a clean install there are: Skype, FB, Twitter, LinkedIn, G+ (plus the... well, whatever... AOL, ICQ and Yahoo! Messenger).

For the record.
Facebook
* Wrap user input in text
Code: [Select]
<a target="_blank" href="https://www.facebook.com/{INPUT}"><img src="{DEFAULT_IMAGES_URL}/profile/facebook.png" alt="{INPUT}" /></a>
* Input Mask => Regex
Code: [Select]
~[a-z][0-9a-z.-]{1,31}~i

Twitter
* Wrap user input in text
Code: [Select]
<a target="_blank" href="https://www.twitter.com/{INPUT}"><img src="{DEFAULT_IMAGES_URL}/profile/twitter.png" alt="{INPUT}" /></a>
* Input Mask => Regex
Code: [Select]
~[a-z][0-9a-z.-]{1,31}~i

Google+
* Wrap user input in text
Code: [Select]
<a target="_blank" href="{INPUT}"><img src="{DEFAULT_IMAGES_URL}/profile/gplus.png" alt="G+ profile" /></a>
* Input Mask => No HTML

LinkedIn
* Wrap user input in text
Code: [Select]
<a target="_blank" href="{INPUT}"><img src="{DEFAULT_IMAGES_URL}/profile/linkedin.png" alt="LinkedIn profile" /></a>
* Input Mask => No HTML

FB and Twitter are "Text 50".
G+ and LinkedIn are "Text 255"
Last Edit: January 10, 2015, 05:05:20 am by emanuele
Bugs creator.
Features destroyer.
Template killer.

Re: predefined custom fields

Reply #7

Thank you Emanuele, with your indication I was able to add the facebook link ;) I'll try the rest

I tried on a clean install and discovered that the fileds for social links are visble, but if I try to add a link to my FB account does not gaet saved. Once activated the custom fields they are saved. I think the social fields should be disabled if the custom fields are not enabled in Core Features.
sorry for my bad english

Re: predefined custom fields

Reply #8

Sounds like a bug !

Re: predefined custom fields

Reply #9

I made a test in LinkedIn and Google + and basically they already allow custom url.

This may be used  to replace current one:
LinkedIn: https://www.linkedin.com/in/{INPUT}
Google+: https://plus.google.com/+{INPUT}

Their text may be shorten to 50 as well.

Don't forget to replace the LinkedIn png as well. It is currently using G+ png as reported earlier.