Skip to Content Skip to Menu

🕒 Save Time and Effort with CB Editor Assistant: Effortlessly create and refine content in Joomla 3, 4, & 5.
🎁 Limited Offer: Enjoy a 5-day FREE trial and save up to 30% afterward!

Date field problems with jch optimize

  • activha
  • activha
  • OFFLINE
  • Posts: 2336
  • Thanks: 117
  • Karma: 13
12 years 1 month ago #217154 by activha
Date field problems with jch optimize was created by activha
Well again I use jch optimize to keep the number of css sheets within IE 9 area :-)

I have excluded com_comprofiler from jch optimize but I have a problem with date fields which are not displayed and only show type="hidden" > instead.

When unpublishing jch optimize plugin all is working well but I need this plugin for IE 9 due to the big number of stylesheets used by CB and all plugins (roughly still 14)

I have no idea why I get this behavior with date fields and any idea would be welcome :-)

(By the way cannot you make an internal script to combine all CB css within one ?)

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48709
  • Thanks: 8319
  • Karma: 1447
12 years 1 month ago #217157 by krileon
Replied by krileon on topic Re: Date field problems with jch optimize
We don't support compression. Either stop using it or set it to completely ignore any and all CB JS/CSS files. If it continues to cause problems then please contact JCHOptimizer developer for support. Alternative is to manually move CSS to CBs template main CSS file (adjust image paths as needed as they're always relative).


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.

  • activha
  • activha
  • OFFLINE
  • Posts: 2336
  • Thanks: 117
  • Karma: 13
12 years 1 month ago #217164 by activha
Replied by activha on topic Re: Date field problems with jch optimize
Kyle,
This is not an answer !
All other components work well with jch optimize, CB is the only one with such a number of files for js and css.
We have to use this compression because CB is not optimized and uses so many js and css files !!
jch optimize does not have bugs, it's only YOUR way of doing things not completely in the joomla way which makes a problem

This time I am angry with this answer that you always make

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48709
  • Thanks: 8319
  • Karma: 1447
12 years 1 month ago #217168 by krileon
Replied by krileon on topic Re: Date field problems with jch optimize
If I've the development time after a few incubator releases I'll look into the possibility of a CB plugin that optimizes CB header output. For a future CB release we'd of course like to have some sort of way to optimize the headers as well as they're all output from a single function so it maybe possible.

it's only YOUR way of doing things not completely in the joomla way which makes a problem

We are adding to the header the same way you would with any Joomla extension. Plugins call CB API to add to the header. CB API passes this to Joomla API and Joomla adds it to the header. I don't see how our way is any different then any other way extensions would add to the header. The only exception is CB has ability to have unlimited plugins that all could have their own CSS/JS headers, which is no different then those individual plugins being individual Joomla extensions.

JCHOptimizer is merging all JS headers together and all CSS headers together. In the process it's probably running other optimizations on the JS/CSS. This is likely causing the JS to break as it appears the date field JS is what is breaking (probably see fatal errors in browser error log and is the very reason we don't support optimization extensions). There's nothing I can do about this. I did not develop JCHOptimizer and I did not write their optimization code so I've no clue how it behaves.


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.

  • activha
  • activha
  • OFFLINE
  • Posts: 2336
  • Thanks: 117
  • Karma: 13
12 years 1 month ago #217170 by activha
Replied by activha on topic Re: Date field problems with jch optimize

krileon wrote: JCHOptimizer is merging all JS headers together and all CSS headers together. In the process it's probably running other optimizations on the JS/CSS. This is likely causing the JS to break as it appears the date field JS is what is breaking (probably see fatal errors in browser error log and is the very reason we don't support optimization extensions).


Well I don't have any errors in logs or even in browser even with max report.
could you tell me what files js are called by the date field ?

Maybe that I could find it this way
thanks anyway for implementing something soon

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48709
  • Thanks: 8319
  • Karma: 1447
12 years 1 month ago #217186 by krileon
Replied by krileon on topic Re: Date field problems with jch optimize
The calendar JS is as follows.

components/com_comprofiler/js/calendar.js
components/com_comprofiler/js/calendardateinput.js
components/com_comprofiler/js/calendar-setup.js


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