PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   ReviewPost How do I...? (http://www.photopost.com/forum/reviewpost-how-do-i/)
-   -   Random & Recent product - product name character limit ? (http://www.photopost.com/forum/reviewpost-how-do-i/144886-random-recent-product-product-name-character-limit.html)

p4guru January 1st, 2011 08:40 AM

Random & Recent product - product name character limit ?
 
My product database for reviewpost has alot of long character based product names of which first lot of characters are the same. What ends up happening is recent and random product listing sidebar/bottom tables end up cutting off the full product name due to character limit in place.

Wondering where do I change the limit for characters displayed for product name for random/recent and search results page, seems to be limited to 20 characters ?

thanks

Chuck S January 1st, 2011 09:30 AM

There are limited so as not to cause viewing problems on your site. You do know what happens if you have alot of long titles with no spaces right? You end up with a horrific looking site because you can not span anything without a space therefore you end up with all this funky malformed tables. You would have to alter the code depending on where your talking to a higher number if you want

For instance this is the line in pp-inc.php that controls the photo blocks

Code:

Content visible to verified customers only.

p4guru January 2nd, 2011 10:50 AM

i see.. hmmm cause right now nearly all products listed on random/recent product listings show same product name for first 20 characters heh

part of the length is due to manufacturer name + product name. So maybe if i could introduce a line break between the manufacturer name and product name in the recent/random product listings to allow for longer product name ?

i.e. change from

manufacturer name + product name

to

manufacturer name +
product name (on new line break)

where would I do that ? same place ?

thanks

Update: for now i've increased it from 20 to 35 and fits all my product names perfectly :)

Chuck S January 2nd, 2011 02:57 PM

yes you just increase the characters. we limit the size for spacing issues in certain places thats it.

p4guru January 2nd, 2011 08:07 PM

k while it increased character limit on recent/random pages, where do i change character limit for search by date outputed results when clicking calendar dates ? i.e. results from

/reviewpost/search.php?date=1293890418

Chuck S January 2nd, 2011 08:50 PM

You would see a similar line in search.php using strlen php function.

p4guru January 3rd, 2011 06:05 AM

thanks

Chuck S January 3rd, 2011 07:32 AM

Your welcome


All times are GMT -5. The time now is 12:58 AM.

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


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97