PDA

View Full Version : character limit in the summary


apocan
11-21-2007, 01:12 PM
as far as I know in the summary part there are nearly 20-25 words or it takes the abstract part.

how can we customize this? I have two columns in my page and it doesnt seem good because I can not adjust this part as I want. some are longer and some are shorter. because of this I want to limit the characters in this part not words.

Suppose that I want in all summaries 50 characters (letters) and than ... Full Story. cant we do this?

or maybe not characters but only 3 lines than ... Full story.

I hope I could tell my problem and wish. Thanks for your help.

Maybe this pic will help you more

http://img142.imageshack.us/img142/528/dfgdfhkz0.jpg

erdsiger
11-21-2007, 02:22 PM
Try to open the /lib/vivvo/core/Articles.class.php file and look for this function:

function get_summary($word_number=25){
...
}

and modify the value, for example

function get_summary($word_number=50){
...
}

Micha
11-21-2007, 03:58 PM
Well if you look at image you posted, you have (first line) three articles, all three with 2 line title, 3 line summary.

I would say that abstract image (in the middle article) causes problems here first, than number of words/characters.

No matter how many characters you have, if one abstract image has bigger height than the other two, you'll end up with uneven columns again.

Spammz
01-20-2008, 10:09 AM
Changing $word_number in article class doesn`t work with russian lang:confused: