I found below in some old threads to limit the title for feature photo:
$features['title'] = ( strlen($features['title']) > 20 ? substr($features['title'],0,20)."..." : $features['title'] );
Q1. but how do we limit the photo title in the search result page? (too long title causes out of sync page width on the search result page) Which file and line to modify or add to limit the title length on the search result page for the photo being displayed on the search result page? Help.
*I've added the above feature line to pp-inc from other threads I read, but it doesn't work for search result page (the photo displayed on the result page title length still very long)
Last edited by gmptp; March 31st, 2010 at 08:10 AM.
I show in photopost 7.01 the search title is already limited
Content visible to verified customers only.
Hmm Chuck, which file? I open search .php and search .tmp both file doesn't have the above line, I cannot find the above line. Appreciate your advice which file, my search result, the title still very long. Which file should I add above line? or If it has been added in 7.0.1 I will like to find the file and modify to reduce the number of characters because I'm having 4 column and 1000px width... still cannot find the file with above command, I open all the search templates and search .php but cannot locate the line, appreciate your advice which file shall I open and add to which line?
Last edited by gmptp; March 31st, 2010 at 08:45 AM.
I've tried adding this line to search.php
$getphoto[title] = ( strlen($getphoto[title]) > 22 ? substr($getphoto[title],0,22)."..." : $getphoto[title] );
but the title length in the search result photo display still very long, any idea the above line I should place on which file and which line, or which file can I locate above command?
Thanks in Advanced
Last edited by gmptp; March 31st, 2010 at 09:14 AM.