PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > PhotoPost Pro Support Forums > Photopost Pro How Do I...?

Photopost Pro How Do I...? Wondering how to do things in PhotoPost?

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old February 16th, 2006, 12:46 PM   #1 (permalink)
Junior Member
Verified Customer
 
Join Date: Jan 2006
Posts: 7
Limit Displayed Name Characters in Feature PAL

Code:
Content visible to verified customers only.
Lines 788-796 of pp-inc.php

My question is, what would be the code to limit the $ptitle[$count] variable's length to say, 10 characters, BEFORE it is inserted into $features['title'] for display in the PAL?

I found this bit of code in another post but can't seem to get it to play properly in the script (it never limits or replaces any chars):

Code:
Content visible to verified customers only.
kahmeal is offline   Reply With Quote
Old February 16th, 2006, 01:07 PM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,698
$features['title'] = ( strlen($features['title']) > 10 ? substr($features['title'],0,10)."..." : $features['title'] );

That would need to be placed before the lines where $ptitle[$count] is defined as $features['title']
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old February 16th, 2006, 01:13 PM   #3 (permalink)
Junior Member
Verified Customer
 
Join Date: Jan 2006
Posts: 7
The ONE thing I didn't try is the solution, figures Thanks so much Chuck!
kahmeal is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Announcement Box - How do I increase the character limit beyond 200 characters? ThomasCrown Photopost Pro How Do I...? 1 December 14th, 2005 10:35 AM
Limit characters in photo name? Geiri Photopost Pro How Do I...? 1 September 6th, 2005 02:41 PM
Foreign characters Lionel ReviewPost Bug Reports 19 July 27th, 2005 04:33 PM
limit categories displayed in vB integration webananda Photopost Pro How Do I...? 1 July 11th, 2005 09:44 PM


All times are GMT -5. The time now is 03:59 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0