How to edit max char for $board['last_post']['link']

Started by shark, June 25, 2006, 02:53:17 PM

Previous topic - Next topic

shark

On the index page (once ppl enter the forum)....

Current layout:
Last post on [When]
in [Where] by [Who]

I wish to get this layout:
Last post in [Where]
on [When]
by [Who]

Which file and how do i edit it?
I'm using SafMC (green), and running 1.1 RC2.
Please help.

NEW QUESTIONS:

I'm currently using this layout:
', $txt[22], ' ', $txt[525], ' ', $board['last_post']['member']['link'], ' <br />
', $txt['smf88'], ' ', $board['last_post']['link'], ' <br />
', $txt[30], ' ', $board['last_post']['time'];

But sometimes the last post link will go to 2nd line (bcoz the topic name is long).
I dont want it to go to 2nd line. How do i change the max. char to be displayed?

diplomat.

in BoardIndex.template.php:

Find and replace

if (!empty($board['last_post']['id']))
echo '
', $txt[22], ' ', $txt[30], ' ', $board['last_post']['time'], '<br />
', $txt['smf88'], ' ', $board['last_post']['link'], ' ', $txt[525], ' ', $board['last_post']['member']['link'];



With

if (!empty($board['last_post']['id']))
echo '
', $txt[22], ' ', $txt['smf88'], ' ', $board['last_post']['link'], '<br />
', $txt[30], ' ', $board['last_post']['time'], '<br />
                        ', $txt[525], ' ', $board['last_post']['member']['link'];

avidSOUND.com: Where Aspiring Musicians Can Be HEARD!

shark

#2
thank u very much!

can u pls help me with the new qtn? pls...

diplomat.

in BoardIndex.php, search for:


$row_board['short_subject'] = shorten_subject($row_board['subject'], 24);


The "24" is the number of characters the last_post link will be. Replace the "24" with whatever length you want.
avidSOUND.com: Where Aspiring Musicians Can Be HEARD!

Advertisement: