How to modify Phoca Gallery Search Plugin?
Posted: 31 Mar 2010, 23:12
How to make, that photos are displayed on page after search with preview possibility?
For example on this site it is introduced - http://www.anakaonews.com
It is necessary for my site - http://basemfoto.ru
On my site is installed Phoca Gallery Search Pluggin.
There is file in Joomla: /components/com_search/views/search/tmpl/default_results.php
This file shows results of search.
For example to show a picture it is necessary to write After line 42:
But for each result there should be shown own picture. The way to a picture should be read out from a database. But how?
There is one more file: /plugins/search/phocagallery.php
In this file written down SQL query to a database. See line 144.
Help please.
For example on this site it is introduced - http://www.anakaonews.com
It is necessary for my site - http://basemfoto.ru
On my site is installed Phoca Gallery Search Pluggin.
There is file in Joomla: /components/com_search/views/search/tmpl/default_results.php
This file shows results of search.
For example to show a picture it is necessary to write After line 42:
Code: Select all
<?php
$v="<img src=' /images/phocagallery/thumbs/phoca_thumb_m_act-017.jpg'>";
echo $v;
?>
There is one more file: /plugins/search/phocagallery.php
In this file written down SQL query to a database. See line 144.
Help please.