Skip to Content Skip to Menu

[SOLVED] Add facebook button in user's profile

  • peli_m
  • peli_m
  • OFFLINE
  • Posts: 54
  • Thanks: 6
  • Karma: 0
10 years 1 week ago - 10 years 5 days ago #252039 by peli_m
Hello,

I have installed the new CB Connect 6.0, but I don't want the users can access by facebook login, I only want the users have the posibility to include a facebook link to their personal pages. Is it possible?

Thank you, and congratulations for the improvements with 2.0!
Last edit: 10 years 5 days ago by krileon.

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

10 years 5 days ago #252060 by stewart9643
Replied by stewart9643 on topic Add facebook button in user's profile
I would imagine you turn off the facebook option with CBConnect but enable the facebook field in the registration page and set it to display in the profile. This would apply to any social media links with CBConnect. In fact if you don't want people registering off their social media sites, you don't need CBConnect installed.

The links would only display as a link, not as icons.

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

  • peli_m
  • peli_m
  • OFFLINE
  • Posts: 54
  • Thanks: 6
  • Karma: 0
10 years 5 days ago #252111 by peli_m
Replied by peli_m on topic Add facebook button in user's profile
Thank you for your answer. I agree and I have uninstalled CB Connect. I can't find Facebook field in the fields type drop-down, only appears Web Address as similar option. It works fine and displays as a link as you said.

But I would like a line with different social icons like facebook, tweeter, instagram, etc linked to the personal sites of the users. I have used CB Substitutions, adding

<a href=[cb_facebook]><img src="images/banners/facebook1.jpg"/></a>

in Parameters > Layouts > Profile Value Layout, and adding some CSS to show the incons in a line. But the link doesn't work because it add the url of my main site to the url written in the field. Some idea?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48482
  • Thanks: 8283
  • Karma: 1443
10 years 5 days ago - 10 years 5 days ago #252117 by krileon
Replied by krileon on topic Add facebook button in user's profile
If all you want is a link then I wouldn't bother with CB Connect as that's not its purpose at all. The purpose of CB Connect is single sign-on with social site login and profile data. For what you're wanting just create a text field and use the layout feature to build a link to their social site profile.

But I would like a line with different social icons like facebook, tweeter, instagram, etc linked to the personal sites of the users. I have used CB Substitutions, adding

We include fontawesome with CB 2.0 so you can use fontawesome for the icons. Example as follows.

Code:
<span class="fa fa-facebook"></span>

See the below for more fontawesome icons.

fontawesome.io/icons/

in Parameters > Layouts > Profile Value Layout, and adding some CSS to show the incons in a line. But the link doesn't work because it add the url of my main site to the url written in the field. Some idea?

You should build the link except for the ID. Example as follows.

www.facebook.com/profile.php?id= [cb_facebook]

The user would then just supply their facebook id to the cb_facebook field. Your layout would be as follows.

Code:
<a href="https://www.facebook.com/profile.php?id=[cb_facebook]" target="_blank"> <span class="fa fa-facebook"></span> </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.
Last edit: 10 years 5 days ago by krileon.
The following user(s) said Thank You: nant

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

  • peli_m
  • peli_m
  • OFFLINE
  • Posts: 54
  • Thanks: 6
  • Karma: 0
10 years 5 days ago - 10 years 5 days ago #252132 by peli_m
Replied by peli_m on topic Add facebook button in user's profile
¡Great!

Thank you very much.
Last edit: 10 years 5 days ago by peli_m.

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

Moderators: beatnantkrileon
Powered by Kunena Forum