PDA

View Full Version : news archive displaying post preview


cyr0n_k0r
12-23-2007, 04:35 PM
Does the news archive allow a preview of the thread text?

Currently it only displays the title, view, replies, post date, etc.

But can a variable such as $news[message] be applied to allow the following format?


-NEWS ARCHIVE

*THREAD TITLE*
*POST DATE* by *POSTER USERNAME*
*THREAD TEXT PREVIEW* (100 characters or so)

cyr0n_k0r
12-23-2007, 04:54 PM
I've gotten this far. And it seems there is some built in limit for the preview that is 140 characters which is fine. But in a future version it would be nice if this variable could be customized within news archive.

Here is the code for anyone else


<DIV class="head"><B>$news[title]</B></DIV>
<IMG src="$news[threadiconpath]" border="0" alt="" align="left" class="pic">
$news[preview]