Welcome, Guest. Please Login or Register.
November 25, 2024, 12:30:35 PM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  English User Help  |  English Help  |  Shorten last Post display on Index « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Shorten last Post display on Index  (Read 12069 times)
Hort
Noobie
*
Posts: 14


I'm a llama!

Shorten last Post display on Index
« on: March 16, 2004, 06:11:28 PM »
Reply with quote

Hi,

is there a way to shorten the number of letters shown of the last post's title on the Boardindex in the far right column (Last Post)?

Thanks

Hort
Logged
Hort
Noobie
*
Posts: 14


I'm a llama!

Re:Shorten last Post display on Index
« Reply #1 on: March 21, 2004, 10:21:04 AM »
Reply with quote

Hi,

I still need to shorten the number of letters  shown as the last post display in the right-side column  ???

Anyone know how I can do that?
Logged
Peter Duggan
Llama Chameleon
Global Moderator
YaBB God
*****
Posts: 1793


You come and go...

WWW
Re:Shorten last Post display on Index
« Reply #2 on: March 21, 2004, 12:06:48 PM »
Reply with quote

Well, I looked at this, but wasn't sure what you wanted...

So what exactly is too long for you? Like the date/time (where there's always the possibility of changing the default format) or the post subject?

Edit:

Quote from: Hort on March 21, 2004, 10:21:04 AM
I still need to shorten the number of letters  shown as the last post display in the right-side column  ???

* Peter Duggan needs some more sleep! ::)
« Last Edit: March 21, 2004, 12:08:59 PM by Peter Duggan » Logged

Peter Duggan
Llama Chameleon
Global Moderator
YaBB God
*****
Posts: 1793


You come and go...

WWW
Re:Shorten last Post display on Index
« Reply #3 on: March 21, 2004, 12:19:13 PM »
Reply with quote

Search BoardIndex.php for:

$subject = (strlen($subject) > 20)? htmlspecialchars(substr($subject, 0, 20) . '...'):htmlspecialchars($subject);

And change the two '20's to whatever you want.
Logged

Hort
Noobie
*
Posts: 14


I'm a llama!

Re:Shorten last Post display on Index
« Reply #4 on: March 21, 2004, 02:35:53 PM »
Reply with quote

Hi,

thanks!   :D

That was what I meant.

Hort
Logged
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  English User Help  |  English Help  |  Shorten last Post display on Index « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.040 seconds with 20 queries.