PDA

View Full Version : increase image size of featured



Petrache Nicolae
June 29, 2012, 05:30 PM
how can i make featured show a biger image (large type instead of thumb type) as it does the random featured block? i had to increase the left column and the images are poor quality becouse i had to resize the box. thanks

Vladimir
July 2, 2012, 05:12 AM
Hello,

You can try to use value of the field Photo instead of value Thumbnail.

1. Open the script includes/classes/rlListings.class.php
2. Find the method getFeatured();
3. replace this line:


$sql = "SELECT DISTINCT SUBSTRING_INDEX(GROUP_CONCAT(DISTINCT `T6`.`Thumbnail` ORDER BY `T6`.`Type` DESC, `T6`.`ID` ASC), ',', 1) AS `Main_photo`, ";


to


$sql = "SELECT DISTINCT SUBSTRING_INDEX(GROUP_CONCAT(DISTINCT `T6`.`Photo` ORDER BY `T6`.`Type` DESC, `T6`.`ID` ASC), ',', 1) AS `Main_photo`, ";

Petrache Nicolae
July 2, 2012, 06:22 AM
works perfect. thank you