[SOLVED] Hide Facebook/Twitter Connect buttons after login

13 years 2 months ago - 13 years 2 months ago #154197 by studymanuk
Hi there,

I am wondering if there is any way to hide Facebook/Twitter Connect buttons once the user is logged in?

It is really confusing when user is logged in but still sees two buttons that say Sign in.

Thank you in advance.

Please Log in to join the conversation.

13 years 2 months ago #154199 by krileon

I am wondering if there is any way to hide Facebook/Twitter Connect buttons once the user is logged in?

With CSS, yes you can hide them on login. Example as follows.
.mod_logout_plugin .twitter_button[value~='in'],
.mod_logout_plugin .fbc_button[value~='in'] {
 display: none;
}

If you do this your users will not be able to synchronize their existing CB account with their Facebook or Twitter accounts. Notice the value selector. This is there to hide the Sign in buttons and not the Sign out buttons. Without this all buttons from FBC and Twitter (including sign out) would be hidden.


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 to join the conversation.

13 years 2 months ago #154205 by studymanuk
Works like a charm. Thank you!

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.286 seconds

Facebook Twitter LinkedIn