Skip to Content Skip to Menu

[SOLVED] how can i add a field to a user that is linked to an url?

  • eddyd
  • eddyd
  • OFFLINE
  • Posts: 15
  • Thanks: 2
  • Karma: 0
3 years 11 months ago - 3 years 10 months ago #322079 by eddyd
Hi there,

this is clear to me but my intention is that when i click on someone's profile and i go to the url field that i can see there and i click on that url, i go directly to that url site. At the moment i can see the url on someone's profile but to get there i have to copy and past in in my browser to go to that url.
So in the webadress field the link is not activated.
Hope this is clear.

Can somebody help me with this one please?

Best regards,
Eddy



Answer :

Create a field with the Type of Web Address.

Hi there,

how can i add a field to a user that is linked to an url?
So when the user go to his profile he should be able to click on the url and he should go the to the url site.

Best regards,
Eddy
Last edit: 3 years 10 months ago by krileon. Reason: Added [SOLVED] tag to subject

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48548
  • Thanks: 8290
  • Karma: 1445
3 years 11 months ago #322080 by krileon
Web Address fieldtype will do exactly that. If the field is already a text type it should be safe to simply change its type to web address.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • eddyd
  • eddyd
  • OFFLINE
  • Posts: 15
  • Thanks: 2
  • Karma: 0
3 years 10 months ago #322112 by eddyd
Ok then there is something wrong on my site. I used the Web Address fieldtype and nevertheless it is just text on my site. Perhaps i have to change something in my template. (made it myself) I'll check id unless you have a idea :-)

Is there a way ( except in the database ofcourse) that a moderator can fill in a Web Address in a Web Address fieldtype and that it is automatically copied in the same field for every user?

Best regards,
Eddy

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48548
  • Thanks: 8290
  • Karma: 1445
3 years 10 months ago #322130 by krileon
Are you trying to substitute the field in somewhere? If so [FIELD_NAME] substitutions are raw value and have no HTML. Be sure to use [cb:userfield field="FIELD_NAME" /]. See the below tutorial for further substitution information.

www.joomlapolis.com/documentation/279-community-builder/tutorials/18353-using-substitutions-throughout-cb

It should absolutely be linked when viewing your profile though and have confirmed web address fields working fine in my tests.

Is there a way ( except in the database ofcourse) that a moderator can fill in a Web Address in a Web Address fieldtype and that it is automatically copied in the same field for every user?

Just use a Custom HTML field for that and supply the HTML to link to whatever URL you want to link to. I do not suggest storing a ton of duplicate data like that.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • eddyd
  • eddyd
  • OFFLINE
  • Posts: 15
  • Thanks: 2
  • Karma: 0
3 years 10 months ago #322152 by eddyd
No i'm not trying to substitute the field in somewhere. I just create a webadress on my profile fe : www.joomlapolis.com and when someone visits my profile and clicks on this url , he should see the joomlapois site. It' as easy as that. The problem is that the link is just text and nothing happens if the visitor sees the filed www.joomlapolis.com .

Just use a Custom HTML field for that and supply the HTML to link to whatever URL you want to link to. I do not suggest storing a ton of duplicate data like that.
Can you give an example please? i can't manage to do this

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48548
  • Thanks: 8290
  • Karma: 1445
3 years 10 months ago #322155 by krileon

No i'm not trying to substitute the field in somewhere. I just create a webadress on my profile fe : www.joomlapolis.com and when someone visits my profile and clicks on this url , he should see the joomlapois site. It' as easy as that. The problem is that the link is just text and nothing happens if the visitor sees the filed www.joomlapolis.com .

Sounds like you set "Website Links" to "No" in CB > Configuration > General. Set it back to default "Yes" should fix your issue.

Can you give an example please? i can't manage to do this

A Custom HTML field with the following would display the same link on every profile for example.

Code:
<a href="https://www.joomlapolis.com/">https://www.joomlapolis.com/</a>


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum