Jump to content

Image file names in JReviews


Dan Campbell

Recommended Posts

I want to modify or override the way JReviews names images. In the file name I want to use underscores or hyphens for SEO purposes, but JReviews removes them.  For example a file named "Disk-Space.png" becomes "147_DiskSpace_1282069055.png". I understand the "147" being the record number for the article / listing and the "_" underscore being used as a separator, however I don't know where"1282069055" comes from.

 

I went to the file on the server and renamed it to "147_Disk-Space_1282069055.png" and then changed the images column in record 147 in the Joomla content table so that it looked for the renamed file and it worked correctly.

 

Where do I need to go to access the code that validates and names the image files? I have traced some of the workings to "listings_controller.php" and "jr_imageUpload", but I'm not sure if I'm on the right track.

Link to comment
×
×
  • Create New...