Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

Cb Connect with Custom HTML Tutorial

8 years 7 months ago #278608 by Andrew Dunn
Cb Connect with Custom HTML Tutorial was created by Andrew Dunn
Hi
I have used the tutorial that explains how to use custom html field to create social media badges on a profile. I am also attempting to use cb connect for a couple of sites.

What is the best way to setup it so that I can still use cb connect but only display the custom links. i.e. where is the best place to pull the userid of the social media profile from?

Please see the image attached as an example of what I would like to achieve. I would like to show the 'social' field with the badges at the bottom but not the individual profile links whilst also integrating cb connect.

Kind regards

Andrew

Attachments:

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

8 years 7 months ago #278609 by Andrew Dunn
Replied by Andrew Dunn on topic Cb Connect with Custom HTML Tutorial
Actually I think I have worked it out by studying the links more closely.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
8 years 7 months ago #278611 by krileon
Replied by krileon on topic Cb Connect with Custom HTML Tutorial
The profile links are basically just URLs with the ID substituted in. Example as follows.

Facebook
Code:
https://www.facebook.com/app_scoped_user_id/[fb_userid]

Twitter
Code:
https://twitter.com/intent/user?user_id=[twitter_userid]

Google
Code:
https://plus.google.com/[google_userid]

LinkedIn
Code:
https://www.linkedin.com/profile/view?id=[linkedin_userid]

Not all the providers have a profile URL that's usable from ID though. Using IF substitutions you can condition them to show only when the id exists. Example as follows.

Code:
[cb:if fb_userid!=""]https://www.facebook.com/app_scoped_user_id/[fb_userid][/cb:if]


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