Thread Preview
XMB 1.9.11
This modification will add a 'hover' effect to the Today's Posts. When moving our link over the thread-name, a small ballon will apear and show you the first part of the post.
Version 0.1
miqrogroove & Mouser
Edit PHP File: today.php
Find:
--------------------------------------------------
"SELECT t.*, t.replies+1 as posts, m.uid, r.uid AS lastauthor
FROM ".X_PREFIX."threads t
--------------------------------------------------
Replace With:
--------------------------------------------------
"SELECT t.*, t.replies+1 as posts, m.uid, r.uid AS lastauthor, p1.message
FROM ".X_PREFIX."threads t
LEFT JOIN ".X_PREFIX."posts AS p1 USING (tid)
INNER JOIN (
SELECT MAX(pid) AS lastpid
FROM ".X_PREFIX."posts AS p2
GROUP BY tid
) AS query2 ON query2.lastpid = p1.pid
--------------------------------------------------
Find:
--------------------------------------------------
eval('$today_row[] = "'.template('today_row').'";');
--------------------------------------------------
Add ABOVE
--------------------------------------------------
$thread['message'] = shortenString( str_ireplace('script', '_script', str_replace('"', '"', rawHTMLmessage(stripslashes($thread['message'])))) , 125, X_SHORTEN_SOFT|X_SHORTEN_HARD, '...');
--------------------------------------------------
Edit Template: today_row
Find:
--------------------------------------------------
$thread[subject]
--------------------------------------------------
Replace with:
--------------------------------------------------
$thread[subject]
--------------------------------------------------