Customizing SMF > Now Available

MouseOver: topic preview!

(1/23) > >>

This tip has been in some way ported over to be a modification package located on the SMF modsite. Please note, the mod package may not do the exact same function and may not even use any of the code originally written for the tip, but should still hold the same basic functionality of the tip posted here. With the mod package for this tip, you can now let the SMF package manager make the code changes for you without you having to look at the code and edit it manually.

For documentation on using the SMF package manager, view this document.

To download the modification package, [please click here].

In MessageIndex.template.php find:

--- Code: ---', $topic['first_post']['link'];
--- End code ---


--- Code: ---<span title="', $topic['first_post']['preview'], '">', $topic['first_post']['link'], '</span>';
--- End code ---

You must have 1.0 RC1 or higher to do this.

By: [Unknown]

Sigh, I seem to be bad with applying mods these days...

But, the good thing first: It does tool tips, and I've wanted this feature for a long time, so thanks!

The only thing is, they don't start from the beginning of a post, it swallows letters/ words/ the first post, is that intentional or did I do something wrong?? Oh, and also they show html entities in between.   

Here's a link to check for yourselves: 
(Link removed, solved)

I have the same problem. The beginning of it isn't displayed.

What I noticed is that it will display the start of the second line. So when there is just one line it will display fine but when there are more then one it seems to show the start of the second line.

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 ---


--- 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.


Thank you very much. That did it. Great mod, I like it a lot.  :)


[0] Message Index

[#] Next page

Go to full version