Preview In Latest Threads In Portal
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #1
Preview In Latest Threads In Portal
A simple template modification for displaying thread preview for each thread in Latest Threads block in our Portal page.

We need Thread Tooltip Preview plugin for this.

Find this code in our portal_latestthreads_thread template:

HTML Code
<td class="{$altbg}">


Replace it with:

HTML Code
<td class="{$altbg}" title="{$thread['postpreview']}">


And find this code in the template too:

HTML Code
<span class="smalltext">


Replace it with:

HTML Code
<span class="smalltext" title="{$thread['lastpostpreview']}">


Basically, we need to put {$thread['postpreview']} variable for displaying the first post message, and {$thread['lastpostpreview']} variable for displaying the last post message.


11-11-2010 05:28 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
Preview In Latest Threads In Portal - RateU - 11-11-2010 05:28 AM

 Standard Tools
Forum Jump: