Keyword

SEO k2 Image

  • Tiziano Cocilova
  • Tiziano Cocilova's Avatar Topic Author
  • Offline
  • New Member
More
6 years 6 months ago #164708 by Tiziano Cocilova
SEO k2 Image was created by Tiziano Cocilova
Excuse me, I have a problem.
I have changed the name of image on save with the alias and this is ok., but..
I have a problem when there is an accented character in alias.
Don't save the image.

In file /administrator/components/com_k2/models/item.php
I have changed in
$handle->file_new_name_body = $row->alias;
but if in the alias there is "à" or "è" don't save.

str_replace??
Can you help me? thanks

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
6 years 6 months ago #164721 by Krikor Boghossian
Replied by Krikor Boghossian on topic SEO k2 Image
You can use str_replace() php.net/manual/en/function.str-replace.php to remove all unwanted characters.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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


Powered by Kunena Forum