|
uCoz Community » uCoz Modules » File Catalog, Site Catalog, Publisher, Ad Board, Online Games » How to Truncate the Full Description ($MESSAGE$)? |
How to Truncate the Full Description ($MESSAGE$)? |
How can I truncate the Full Description ($MESSAGE$) which appears in Appearance of Entries?
|
khen,
Code <?if(len($MESSAGE$)>150)?><?substr($MESSAGE$,0,150)?> <?else?>$MESSAGE$<?endif?> Replace 150 with the number of characters you need for the text. The code truncates the text if there are more than 150 characters, otherwise leaves it as it is. I'm not active on the forum anymore. Please contact other forum staff.
|
| |||
| |||