jDownloads Support Forum

jDownloads for Joomla 4.x and 5.x => jDownloads 4.0 => General => Topic started by: Drax658 on 15.07.2024 13:52:46

Title: jDownloads tree creating an override to change icons
Post by: Drax658 on 15.07.2024 13:52:46
Hello everyone, I decided to start this topic to learn if it's possible to create an override so I can easly change icons that appears next to categories in jDownloads tree module. When I create an override it only creates a default.php file that contains methods to draw a tree using jdownloadstree class. Unfortunetly for me the icons are coded into the class definition tha resides in a seperate file in the jdtree folder. I could technically change it there modifing the file and adding my own icons but I think that override is more elegant and I'm affraid that with futre updates my changes will be discarded.

I love jDownloads extetnsion and the jDownloads tree module it's a blessing for me as it is exactly what I needed but those icons doesn't fit style of my page.
Title: Re:cron and special char
Post by: ColinM on 15.07.2024 16:36:42
Hi
 The images are stored in /modules/mod-_jdownloads_tree/jdtree/images
 
 There are only 4 images base.gif, folder.gif.minus.gif and plus.gig
 Each is 20 by 20 px
 So you need gif images of the same size. and the same name
 Most gif files are 'video' but these are simple gif files
 I have renamed the original base.gif and added a new one with a bell to ilustrated
I do not believe these are changed on an update but jst in case  I would save them elsewhere.

Colin
Title: Re: jDownloads tree creating an override to change icons
Post by: ColinM on 15.07.2024 21:51:19
Hi
I have looked at the Update sequence and it does 'reload' the Tree Module code and Images.
So it will be necessary for you to reinstate the specific images you change.  Using FTP would probably be a suitable way.

To do this via an override would be more challenging in creating the override, particularly as the tree module is not setup for override support.
Colin
Title: Re: jDownloads tree creating an override to change icons
Post by: Drax658 on 16.07.2024 10:01:15
Thank you for your reply Colin. So it is as I thought and I will have to replace the files after each update. It may not be a perfect solution, but the most important thing is that it is possible and is not very time-consuming.