dweeb73 Posted April 4, 2007 Share Posted April 4, 2007 Hello, I've tried asking around on the gallery2 support boards but no one is replying to my queries thus far. I am trying to alter a subcomponent of the gallery search function. Currently when I search for photos it displays various file information along with the photo, one of the fields is the owner field which I would like to remove. I have tried some solutions/hacks that I found but they don't work for me. I do not consider myself a PHP coder, rather just a hack so any help would be appreciated. This is the code where the search results are displayed on the results page: <ul class="giInfo"> {foreach from=$result.fields item=field} {if isset($field.value)} <li> <span class="ResultKey">{$field.key}:</span> <span class="ResultData">{$field.value|default:" "|markup}</span> </li> {/if} {/foreach} </ul> </td> {/foreach} </tr></table> I have figured out that the variables for each field are named 'description', 'keywords', 'summary', 'title', and 'owner'. How do I change this line to display only the first 4 fields instead of all of them. Link to comment https://forums.phpfreaks.com/topic/45562-deperate-for-help-with-gallery2-function-hack/ Share on other sites More sharing options...
dweeb73 Posted April 13, 2007 Author Share Posted April 13, 2007 anyone? Link to comment https://forums.phpfreaks.com/topic/45562-deperate-for-help-with-gallery2-function-hack/#findComment-228405 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.