Support Forums - Classified Ads Script Osclass

General osclass questions => Feature request => Topic started by: katalin2k on February 08, 2025, 08:14:58 PM

Title: Renaming thumbnails to listing title slug
Post by: katalin2k on February 08, 2025, 08:14:58 PM
I would suggest renaming images to product title slug instead of a random string of numbers, it will improve SEO a lot.
In the meanwhile can you tell me where to find the functions that are responsible for image name generation so I can try it myself? I can't seem to find anything related to image renaming...
Title: Re: Renaming thumbnails to listing title slug
Post by: katalin2k on February 14, 2025, 09:36:38 PM
Anyone?
Title: Re: Renaming thumbnails to listing title slug
Post by: MB Themes on February 18, 2025, 05:10:22 PM
No plans for that, not simple change.
A lot of core functions, plugins and themes would have to be changed.
Title: Re: Renaming thumbnails to listing title slug
Post by: katalin2k on February 20, 2025, 08:01:40 PM
No plans for that, not simple change.
A lot of core functions, plugins and themes would have to be changed.
If you tell me what files would need modifications I would try to do it myself.
Title: Re: Renaming thumbnails to listing title slug
Post by: MB Themes on February 20, 2025, 08:18:04 PM
 :) ... its called development man.
Title: Re: Renaming thumbnails to listing title slug
Post by: katalin2k on February 21, 2025, 11:12:58 AM
:) ... its called development man.
Of course it is but it seems to me you don’t want anyone to do this.
Title: Re: Renaming thumbnails to listing title slug
Post by: MB Themes on February 21, 2025, 02:40:25 PM
You have code, you can go for it, but I see this is not work that could be discussed on forums in way "tell me file, line and what code to change..."
Title: Re: Renaming thumbnails to listing title slug
Post by: Wiz on February 21, 2025, 04:29:14 PM
This is actually a very valid point that katalin2k raises as proper/linked filename naming adds context even when image indexing is disabled at the robots.txt file level. Search engines love context and the more context that's provided, the better the ranking.

You should first look at ItemActions.php, specifically uploadItemResources function to get an understanding of how uploaded resources get named, analyze dependencies and identify were changes are needed not just in core, but also in plugins that handle listing resources then code it in.