Skip to Content Skip to Menu

🌟Discover the Joomla AI Plugin that wrote its own story! - CB Editor Assistant 1.1now for Joomla 3, 4 & 5!
✍️ 5-Day Free Trial, then 🎯 save up to 30% with our 🛍️ Intro Offer (First 50 users, ends Dec. 25th)
🌲 Merry Christmas! Great savings on Professional and Developer Memberships! Get 25% off now with code XMAS-2024!

CB Field Groups and Cyrillic

  • Pena007
  • Pena007
  • OFFLINE
  • Posts: 11
  • Thanks: 0
  • Karma: 0
5 years 2 months ago #314642 by Pena007
Replied by Pena007 on topic CB Field Groups and Cyrillic
Files whose names contain numbers or numbers and letters of the Latin alphabet are loaded normally. Nested groups are not used

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

  • beat
  • beat
  • ONLINE
  • Posts: 2174
  • Thanks: 463
  • Karma: 352
5 years 2 months ago #314664 by beat
Replied by beat on topic CB Field Groups and Cyrillic

Pena007 wrote: Files whose names contain numbers or numbers and letters of the Latin alphabet are loaded normally. Nested groups are not used


At this stage, only latin-filenames are supported by Community Builder. Any non-latin alphanumeric chararcters (and _ and -) are filtered out (with following preg-expression), and at this stage we don't expect CB to support non-latin characters as it becomes very file-system dependant. Now if not a single character is latin, then there is no filename left, hence your error message. Sorry about that inconvenience.
Code:
/[^-a-zA-Z0-9_]/

Beat - Community Builder Team Member

Before posting on forums: Read FAQ thoroughly -- Help us spend more time coding by helping others in this forum, many thanks :)
CB links: Our membership - CBSubs - Templates - Hosting - Forge - Send me a Private Message (PM) only for private/confidential info

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

  • Pena007
  • Pena007
  • OFFLINE
  • Posts: 11
  • Thanks: 0
  • Karma: 0
5 years 2 months ago #314686 by Pena007
Replied by Pena007 on topic CB Field Groups and Cyrillic
You could add this option: in the settings of the field of type "File" add the option to select that the downloaded file was renamed to a name containing only the letters of the Latin language? For example, so you have works booting avatar.

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

  • beat
  • beat
  • ONLINE
  • Posts: 2174
  • Thanks: 463
  • Karma: 352
5 years 2 months ago #314688 by beat
Replied by beat on topic CB Field Groups and Cyrillic
Maybe it works already like that if there is a single latin character in the filename ? Can you please confirm ?

Beat - Community Builder Team Member

Before posting on forums: Read FAQ thoroughly -- Help us spend more time coding by helping others in this forum, many thanks :)
CB links: Our membership - CBSubs - Templates - Hosting - Forge - Send me a Private Message (PM) only for private/confidential info

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

  • Pena007
  • Pena007
  • OFFLINE
  • Posts: 11
  • Thanks: 0
  • Karma: 0
5 years 2 months ago #314689 by Pena007
Replied by Pena007 on topic CB Field Groups and Cyrillic
Yes, if there is at least one Latin character or digit, then the file is loaded

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

  • beat
  • beat
  • ONLINE
  • Posts: 2174
  • Thanks: 463
  • Karma: 352
5 years 2 months ago #314691 by beat
Replied by beat on topic CB Field Groups and Cyrillic

Pena007 wrote: Yes, if there is at least one Latin character or digit, then the file is loaded


Ok, thank you for your report, found the bug and proposing a fix to test:

in file components/com_comprofiler/plugin/user/plug_cbcore/cb.core.php line 6772:
replace:
Code:
$uploaded_name = preg_replace( '/[^-a-zA-Z0-9_]/', '', pathinfo( $value['name'], PATHINFO_FILENAME ) );
with
Code:
$uploaded_name = pathinfo( $value['name'], PATHINFO_FILENAME );

And it should work properly.

Thank you for reporting back if it fixes it for you.

We should then add it the fix to a nightly soon.

forge.joomlapolis.com/issues/7740

Beat - Community Builder Team Member

Before posting on forums: Read FAQ thoroughly -- Help us spend more time coding by helping others in this forum, many thanks :)
CB links: Our membership - CBSubs - Templates - Hosting - Forge - Send me a Private Message (PM) only for private/confidential info
The following user(s) said Thank You: nant

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

Moderators: beatnantkrileon
Powered by Kunena Forum