 | |  | | | Photopost Pro How Do I...? Wondering how to do things in PhotoPost? |
March 31st, 2010, 07:56 AM
|
#1 (permalink)
| | Member Verified Customer
Join Date: Mar 2010
Posts: 111
| Search Result - photo title filename too long
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.
|
| |
March 31st, 2010, 08:20 AM
|
#2 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,699
|
I show in photopost 7.01 the search title is already limited Code: Content visible to verified customers only.
|
| |
March 31st, 2010, 08:30 AM
|
#3 (permalink)
| | Member Verified Customer
Join Date: Mar 2010
Posts: 111
| Quote:
Originally Posted by Chuck S I show in photopost 7.01 the search title is already limited Code: 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.
|
| |
March 31st, 2010, 09:08 AM
|
#4 (permalink)
| | Member Verified Customer
Join Date: Mar 2010
Posts: 111
|
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.
|
| |
March 31st, 2010, 09:16 AM
|
#5 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,699
|
well are you using photopost 7?
Kinda hard to say without you actually posting a site link.
what I am saying is very valid for photopost 7 and if you dont have a line like that maybe your not using our present code but maybe an old version.
|
| |
March 31st, 2010, 09:22 AM
|
#6 (permalink)
| | Member Verified Customer
Join Date: Mar 2010
Posts: 111
| Quote:
Originally Posted by Chuck S well are you using photopost 7?
Kinda hard to say without you actually posting a site link.
what I am saying is very valid for photopost 7 and if you dont have a line like that maybe your not using our present code but maybe an old version. | Thanks Chuck, your response is superb, I bought and using photopost701.zip
Or which file should I add the command can you tell me, I manually add the command into the file myself possible?
Or am I using not the latest version I just bought few weeks ago.
Last edited by gmptp; March 31st, 2010 at 09:28 AM.
|
| |
March 31st, 2010, 09:23 AM
|
#7 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,699
|
Forgot to post but at line 196 of search.php if you put what I posted it shows fine I forgot to post a link Search - ReefTalk Gallery |
| |
March 31st, 2010, 09:29 AM
|
#8 (permalink)
| | Member Verified Customer
Join Date: Mar 2010
Posts: 111
| Quote:
Originally Posted by Chuck S Forgot to post but at line 196 of search.php if you put what I posted it shows fine I forgot to post a link Search - ReefTalk Gallery |
It works now after adding the line to 196! Thanks a million Chuck, you're number 1 in term of your support! Best Product and Support I've ever purchased and recieved, Bravo!
|
| |
March 31st, 2010, 09:44 AM
|
#9 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,699
|
enjoy your day my friend
|
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -5. The time now is 03:14 PM. | |