topic descriptions!!

Started by KirbyDX, February 12, 2004, 03:40:38 PM

Previous topic - Next topic

KirbyDX

i like how it is in invision..
also, can you put the "Check this box for no Edited by line"?

pulpitfire

i think they may already have the option to display or not display the "edited" line.  what exactly does invision do for topic descriptions?

[Unknown]

He or she means the secondary subject line.  I've always seen it as utterly pointless.

-[Unknown]

pulpitfire

well, if you want a newsy look, it shouldn't be too hard to hack in something like...

<br /> substr($row['body'],0,100))

underneath the topic in your message display source code, where 'body' is the column for your message body query, and 100 is the number of characters you want to it to show.  that gives you the first x characters of the post itself, which usually gives you an idea what they're talking about.  i use something like that on my board.

David

I think people should just learn to write good subjects.
This space for rent.

pulpitfire

example from http://www.simplemachines.org where you have the topic name and then the topic excerpt underneath...


pulpitfire

i went ahead and hacked this into my YaBB 1.5.4.  it wasn't too hard to tweak Post and ModifyMessage.php, to enable you to add a topic description.  it's for use in applications like professional news pages, where they show you a headline and a picture, then give you a brief summary of the article.  my board is set to place my latest post in the "top story" position, with the title and a brief article description (see my page).  that way, you don't have to manually edit the front page all the time.  if you wanted such a thing to show in your MessageIndex, you'd just have to add it to your query and html there too.

Advertisement: