[SOLVED] Checkbox styling paramters ignored

  • drjjw
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
12 years 7 months ago - 12 years 7 months ago #10954 by drjjw
Hello,

Using Event Booking 1.4.1 for J1.5

When using a custom checkbox field, none of the styling options cause any change in the appearance of the options on frontend.

I want each check box option to have their own line so enter 6 rows in the styling fields; no luck; they all appear on 2 rows, three each. Also tried applying a custom css class to the filed and it does not get inserted.

I'm referring to these options:

Rows
Cols
Size
Css class
Last edit: 12 years 7 months ago by drjjw.

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

More
12 years 7 months ago #10978 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Checkbox styling paramters ignored
@drjjw : Right now, you need to modify the code alitle to make each option appear on one row . Open the file components/com_eventbooking/helper/fields.php, looks at the code at line 10 :
Code:
define('NUMBER_OPTION_PER_LINE', 3) ;

And change it to :
Code:
define('NUMBER_OPTION_PER_LINE', 1) ;

There would need some improvement to it to make it configurable for each field but I haven't had time to work on it yet. So for now, please use the above solution !

Regards,

Tuan

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

  • drjjw
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
12 years 7 months ago #10979 by drjjw
Replied by drjjw on topic Re: Checkbox styling paramters ignored
I don't mind messing with the code. Works great!

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

More
12 years 6 months ago #11787 by alatka
Replied by alatka on topic Re: Checkbox styling paramters ignored
This worked perfectly for the registration form. However, for the Registration Confirmation page, the items are still on a single line (comma separated). Is there a way to make them each on their own line?

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

More
12 years 5 months ago #12294 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Checkbox styling paramters ignored
Now in the latest version, you can control number of checkboxes per line using size property of the field. No need to modify code anymore !

Tuan

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

More
12 years 1 month ago #14653 by alatka
Replied by alatka on topic Re: Checkbox styling paramters ignored
Unfortunately, changing the size of the field does nothing to formatting for me. I'm using EB 1.4.4 and Joomla 2.5. :(

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

More
12 years 1 month ago #14657 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Checkbox styling paramters ignored
@alatka : Change size attribute to 1 and each option will be displayed in one line (meets your requirement)

Regards,

Tuan

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

Moderators: Tuan Pham Ngoc