Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

Discussion removal does not delete attached files

9 years 7 months ago
  • Dalvio's Avatar
    Topic Author
  • Dalvio
  • Offline
  • Fresh Boarder
  • Posts: 23
  • Thank you received: 0
Licenses:
JomSocial Expired

Please, take a look. When administrators decide to remove a discussion, attached files do not disappear: they still remains under /images/files/discussion.

Thanks.

9 years 7 months ago
  • Dimas Tekad Santosa's Avatar
  • Dimas Tekad Santosa
  • Visitor
  • Thank you received: 0
Licenses:

Hi Dalvio,

I just tested on my newest code, and the files are deleted completely, except the folders, the folders is still there.

Regarding folders I will report to our developer.

thank you

9 years 6 months ago
  • Dimas Tekad Santosa's Avatar
  • Dimas Tekad Santosa
  • Visitor
  • Thank you received: 0
Licenses:

Hi Dalvio,

This is tha patch..

open this file components/com_community/controllers/groups.php, add this code :

JFolder::delete(JPATH_ROOT . '/' . 'images/files/discussion/'.$topicid);

after :
fileModel->alldelete($topicid, 'discussion');

thank you!

Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW