Thank you so much for the solution. Works Great!! You saved my day!
jjozsika said:
Hello! i've found a solution:
You have the search mod which is searching in the table.
Located: plugins/search/jak2_filter.php
It has the SQL query with binary search, you have to add the id field to the selected list:
In the 231. line oyou have to add the id field name:
$query = " SELECT i.id, i.title, i.metadesc,
Now, you can go and edit the result lister tamplate:
/templates/gk_mystore/html/com_search/search/default_results.php
After the result cycle,
<?php foreach ($this->results as $result) : ?>
You can add the image generation based pn the id and md5() hash:
<?php $row = './media/k2/items/cache/'.md5("Image".$result->id).'_S.jpg'; if(file_exists($row)) echo "<img src=\"$row\">";?>
And woala, the images right there!
regards, jjozsi
jjozsika said:
Hello! i've found a solution:
You have the search mod which is searching in the table.
Located: plugins/search/jak2_filter.php
It has the SQL query with binary search, you have to add the id field to the selected list:
In the 231. line oyou have to add the id field name:
$query = " SELECT i.id, i.title, i.metadesc,
Now, you can go and edit the result lister tamplate:
/templates/gk_mystore/html/com_search/search/default_results.php
After the result cycle,
<?php foreach ($this->results as $result) : ?>
You can add the image generation based pn the id and md5() hash:
<?php $row = './media/k2/items/cache/'.md5("Image".$result->id).'_S.jpg'; if(file_exists($row)) echo "<img src=\"$row\">";?>
And woala, the images right there!
regards, jjozsi