Skip to Content Skip to Menu

css problem and rtl community builder

  • javkhe
  • javkhe
  • OFFLINE
  • Posts: 2
  • Thanks: 0
  • Karma: 0
13 years 8 months ago - 13 years 8 months ago #160861 by javkhe
hi,
i use joomla 1.6.1 and jsn epic 4.1.0 template
Everything is excellent.
i set Compress CSS/JS on both css and js.
Everything is excellent.
after install community builder :
when i use community builder on ltr lanquage,Everything is ok.
but
when i use community builder on rtl lanquage,community builder page for example Registeration page have error:
Code:
Warning: filemtime() [function.filemtime]: stat failed for C:\Program Files\xampp\htdocs/components/com_comprofiler/plugin/templates/default/rtl.css/rtl.css in C:\Program Files\xampp\htdocs\templates\jsn_epic_pro\includes \lib\jsn_compression.php on line 94 Warning: filesize() [function.filesize]: stat failed for C:\Program Files\xampp\htdocs/components/com_comprofiler/plugin/templates/default/rtl.css/rtl.css in C:\Program Files\xampp\htdocs\templates\jsn_epic_pro\includes \lib\jsn_compression.php on line 94
This code is shown at the top of page
my template supporter said:

this problem come from community builder, you should post this at community builder forum.
You can reference at www.php.net/manual/en/function.filemtime.php#95955 to get more details about your problem

Last edit: 13 years 8 months ago by javkhe.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48674
  • Thanks: 8313
  • Karma: 1446
13 years 8 months ago #160883 by krileon
Replied by krileon on topic Re: css problem and rtl community builder
Neither of which are coming from CB. They're both stating the error is in jsn_compression.php on line 94.

Please disable compression and confirm if issue persists. The state failed error will happen if relative paths are sent to the function. It needs to be sent absolute paths. There are a couple of other reasons this can happen, but is not coming from CB.

On a side note you should never use CSS and JS compression as they'll obscure the code resulting in errors. The only time compressions should be used is when it is provided through your host via PHP extensions.


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.

  • javkhe
  • javkhe
  • OFFLINE
  • Posts: 2
  • Thanks: 0
  • Karma: 0
13 years 8 months ago #161280 by javkhe
Replied by javkhe on topic Re: css problem and rtl community builder
i found
rtl.css file not loading.
this problem come from community builder
creat css.rtl folder on :
components/com_comprofiler/plugin/templates/default/
and move rtl.css file into it
*****************
rtl.css path Not inserted Correct on community builder

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

  • mouchoon
  • mouchoon
  • OFFLINE
  • Posts: 2
  • Thanks: 0
  • Karma: 0
13 years 8 months ago #163193 by mouchoon
Replied by mouchoon on topic Re: css problem and rtl community builder
hello,

with thanks for new version of CB

this is a small bug for CB 1.4

i hope to solve this!

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

  • mouchoon
  • mouchoon
  • OFFLINE
  • Posts: 2
  • Thanks: 0
  • Karma: 0
13 years 8 months ago - 13 years 8 months ago #163197 by mouchoon
Replied by mouchoon on topic Re: css problem and rtl community builder
i am use: joomla 1.5.23 & CB1.4

i change comprofiler.class.php in admin/component/com_comprofiler
And solve this!
change the:
Code:
if ( file_exists( selectTemplate( 'absolute_path' ) ) ) { $rtlPath = selectTemplate() . 'rtl.css'; } else { $rtlPath = selectTemplate( 'live_site', 'default' ); } $_CB_framework->document->addHeadStyleSheet( $rtlPath . '/rtl.css', false, $media ); }

to this:
Code:
if ( file_exists( selectTemplate( 'absolute_path' ) ) ) { $rtlPath = selectTemplate(); } else { $rtlPath = selectTemplate( 'live_site', 'default' ); } $_CB_framework->document->addHeadStyleSheet( $rtlPath . 'rtl.css', false, $media ); }

but the owner of CB component should be change this, that not return in newer version of cb

regard
Last edit: 13 years 8 months ago by mouchoon.

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

Moderators: beatnantkrileon
Powered by Kunena Forum