UBB.Dev
Posted By: Pilot Snipes Change subject truncation on main page - 10/03/2002 10:34 PM
I found this thread in the 6.0x mod forum, and it is exactly what I've been trying to do:

https://ubbdev.com/ubbcgi/ultimatebb.cgi?ubb=get_topic;f=19;t=000039

Would someone point of what code I need to tweak on UBB 6.3.1.1 ? It's looks a little similar, but when I play around with it I screw everything up!!

On another note, somewhat related. When I go to the main forum page of my BB, the first column which has the name of the forum and it's description underneath, is in my opinion, too wide.

This in turn leaves less room for the other columns, especially the "last post" column. This is what is making too many of my subjects "squashed" off the end (ie 90% of topics all end with the 3 dots eg. "Blah Blah Bl..."), and if I could make the 1st column smaller, would probably sort all my problems out.

Is this possible?

(Just for info, all my forum discriptions come no where near the whole width of the 1st column, hence the reason why I want to narrow it.)

Thank you.
Posted By: jordo Re: Change subject truncation on main page - 10/03/2002 11:15 PM
If you want to change the lenght to 55, then:

Find:
Quote
code:
Code
			if (length($last_subject) > 25) {
$last_subject = &GoodNiceTruncate($last_subject, 26);
}

Replace with:
code:
[qb]
Code
			if (length($last_subject) > 55) {
$last_subject = &GoodNiceTruncate($last_subject, 56);
}
[/qb]
Thank you, Thank you, Thank you.

Works just as advertised. And I think looks alot better set at about 45/46!
© UBB.Developers