Keyword

How to disable md5 for all item images

  • sApO_sUicIdA
  • sApO_sUicIdA's Avatar Topic Author
  • Offline
  • New Member
More
13 years 8 months ago #99842 by sApO_sUicIdA
How to disable md5 for all item images was created by sApO_sUicIdA
I am trying to change the way k2 uploads images.

 

I will use k2 as a catalogue, so I will need to update constantly my item images.

 

I want to use this name:  $item->id.'_'.$item->alias.jpg (ex: 19_alias-name.jpg )

The idea is to have de id as unique number and the item alias as the image name for easy upload and maintenance.

 

The files I tested were:

administrator/components/com_k2/models/item.php

administrator/components/com_k2/views/item/view.html.php

 

I'm able to change the native name by adding something to the md5 code, but if I remove de md5 it all stops working..

- md5("Image".$row->id).'value' - Works

- $item->id.'_'.$item->alias - Stops working the links and thumbs, but it creates the files wih the right names.

 

Any ideas how to stop the md5 encrypting?

 

Tkx in advance

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

  • sApO_sUicIdA
  • sApO_sUicIdA's Avatar Topic Author
  • Offline
  • New Member
More
13 years 8 months ago #99843 by sApO_sUicIdA
Replied by sApO_sUicIdA on topic How to disable md5 for all item images
I've fixed this!

Later, when I have same time,  I will post it.

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

More
11 years 11 months ago #99844 by Angel_Rom
Replied by Angel_Rom on topic Re: How to disable md5 for all item images
Hi Bruno.

I need disable MD5 for upload the images with k2.

Can you tell me what can I do, Please?

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


Powered by Kunena Forum