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 mod_cblogin styles

  • drdehart
  • drdehart
  • OFFLINE
  • Posts: 253
  • Thanks: 2
  • Karma: 1
11 years 11 months ago #216032 by drdehart
CB mod_cblogin styles was created by drdehart
Hi,

We are using mod_cblogin to provide login form for our users.
The problem is we want to make custom styles for this form (login input, submit button etc) that match template styles.

Any recommendation how to do it without changing mod_cblogin.php?

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

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
11 years 11 months ago #216044 by nant
Replied by nant on topic Re: CB mod_cblogin styles

drdehart wrote: Hi,

We are using mod_cblogin to provide login form for our users.
The problem is we want to make custom styles for this form (login input, submit button etc) that match template styles.

Any recommendation how to do it without changing mod_cblogin.php?


Inspect with firebug to see the markup needed.

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

  • drdehart
  • drdehart
  • OFFLINE
  • Posts: 253
  • Thanks: 2
  • Karma: 1
11 years 11 months ago #216076 by drdehart
Replied by drdehart on topic Re: CB mod_cblogin styles
We're trying to avoid hacking the code. Is it possible to change the reference styles without hacking the cb code?

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

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
11 years 11 months ago - 11 years 11 months ago #216086 by nant
Replied by nant on topic Re: CB mod_cblogin styles

drdehart wrote: We're trying to avoid hacking the code. Is it possible to change the reference styles without hacking the cb code?


That is exactly what you can do with css markups - i would never propose a hack.

There are some nice articles (even on joomla forums) about how to use firebug to inspect a page and see what css is used. You can then override that in your css files.
Last edit: 11 years 11 months ago by nant.

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

  • drdehart
  • drdehart
  • OFFLINE
  • Posts: 253
  • Thanks: 2
  • Karma: 1
11 years 11 months ago - 11 years 11 months ago #216159 by drdehart
Replied by drdehart on topic Re: CB mod_cblogin styles

You can then override that in your css files.


We are not looking for a solution which includes css override. We already have css classes for buttons and simply need to assign this classes to HTML elements. Could you imagine override each button and not only button for whole website?

Another issue we need to have custom HTML for this form. Since classes based on HTML structure.

Any recommendation?
Last edit: 11 years 11 months ago by drdehart.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48473
  • Thanks: 8281
  • Karma: 1443
11 years 11 months ago #216171 by krileon
Replied by krileon on topic Re: CB mod_cblogin styles
If you need to change the HTML the only solution is to edit the module and adjust the HTML as needed. Aside from that you can only change it by using CSS. Your CSS can certainly target the login module only by simply prefixing with #mod_login_logoutform (logout), #login-form (login), or .cbLoginForm (login).


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