Customizing SMF > Now Available

MouseOver: topic preview!

<< < (3/22) > >>

dg:

--- Quote from: dg on October 18, 2004, 12:17:29 AM ---
--- Quote from: [Unknown] on October 15, 2004, 03:55:32 PM ---Bloody.... grr... find, MessageIndex.php:


--- Code: --- $row['firstBody'] = substr($row['firstBody'], 128) . '...';
$row['lastBody'] = strip_tags(strtr(doUBBC($row['lastBody'], $row['lastSmileys']), array('<br />' => '&#10;')));
if (strlen($row['lastBody']) > 128)
$row['lastBody'] = substr($row['lastBody'], 128) . '...';
--- End code ---

Replace:


--- Code: --- $row['firstBody'] = substr($row['firstBody'], 0, 128) . '...';
$row['lastBody'] = strip_tags(strtr(doUBBC($row['lastBody'], $row['lastSmileys']), array('<br />' => '&#10;')));
if (strlen($row['lastBody']) > 128)
$row['lastBody'] = substr($row['lastBody'], 0, 128) . '...';
--- End code ---

Will be resolved in the next release.

-[Unknown]

--- End quote ---

I'm using RC1 and I couldn't find that code in MessageIndex.php???

--- End quote ---

great huge quote....anyway

I'm now using RC2 and still can't find it!

[Unknown]:
Did you install the fix via the package manager?

-[Unknown]

dg:

--- Quote from: [Unknown] on October 20, 2004, 12:09:32 AM ---Did you install the fix via the package manager?

-[Unknown]

--- End quote ---

No, I just edited the file with EditPlus...I found the first part (the $topic change) no problem, it's the second part (the $row) that I can't even find in MessageIndex.php

A.M.A:
It is two lines below this:

--- Code: ---// Limit them to 128 characters - do this FIRST because it's a lot of wasted censoring otherwise.
--- End code ---

Kindred:
And in combination with the bold (sticky) / italics (locked) mods, the line would look like this:


--- Code: ---                        <span style="', $topic['is_sticky'] ? 'font-weight: bold;' : '', $topic['is_locked'] ? 'font-style: italic;' : '', '" title="', $topic['first_post']['preview'], '">
                                ', $topic['is_sticky'] ? 'Sticky: ' : ($topic['is_locked'] ? 'Locked: ' : ''), ' ', $topic['first_post']['link'], '
                        </span>';

--- End code ---

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version