Skip to Content Skip to Menu

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

[SOLVED] CB Connect button display in CB Login Module after logging in

11 years 1 month ago - 11 years 1 month ago #233738 by richbrundage
Working with CB Connect 5.2.1 - before logging in the Facebook, Twitter... buttons are left aligned, after logging in the Link Facebook, Twitter... buttons are center aligned. Using the vertical layout in CB Login.

Looking at the elements of the page the centering is generated by a element.style

<div style="text-align:center; margin:auto; margin: 1.4em 0px 2px 0px;">

and I wasn't able to hunt down where this is set.

Sorry for this fussy little question, the rest of the system works great.

Richard Brundage
Last edit: 11 years 1 month ago by krileon.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48466
  • Thanks: 8280
  • Karma: 1443
11 years 1 month ago - 11 years 1 month ago #233749 by krileon
Edit your CB login module within Extensions > Module Manager and set "Avatar position" to "Left". That should get rid of all the center alignment.


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: 11 years 1 month ago by krileon.

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

11 years 1 month ago #233760 by richbrundage
Thanks for the prompt response, but it didn't work for me, independent of whether the avatar was displayed or not, right or left alignment, pretty much any combination of login module settings. The avatar div is closed before the buttons are shown.

Richard Brundage

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48466
  • Thanks: 8280
  • Karma: 1443
11 years 1 month ago - 11 years 1 month ago #233779 by krileon
Then you'll need to add CSS to left align the module. You can use !important tag to override inline styles. The below should work.

Code:
#mod_login_logoutform > div { text-align: left !important; }


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: 11 years 1 month ago by krileon.

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

11 years 1 month ago #233809 by richbrundage
I was able to make it work with a slightly different approach:

.mod_logout_plugin {
text-align: left !important;
}

But to get the Logout button to align left I had to add

.moduletable {
float:left;
width:200px;
height:200px;
}

.cbLogoutButtonSpan {
float:left;
}

The height and width were required to make the module play nice with other modules in the same position, not real happy with putting in a fixed size but it works for now.

Richard Brundage

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48466
  • Thanks: 8280
  • Karma: 1443
11 years 1 month ago #233810 by krileon
Don't float the entire module as you're not clearing it. You'll have a design break. The below is tested working for the logout display.

Code:
#mod_login_logoutform > div { text-align: left !important; }

The only reason for the above to not work is if you modified the login module or you added a class suffix to the module. If you added a class suffix then append it to the end of mod_login_logoutform . Example as follows.

Code:
#mod_login_logoutformSUFFIX > div { text-align: left !important; }


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