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
leefish Offline
Hamster
*****
Posts: 1,009
Joined: Apr 2010
Post: #2
RE: Preview In Latest Threads In Portal
Very neat RateU - I always hated that we could not see what a thread was about from portal. Thank you.


[Image: leelink.gif]
MYBB1.6 & XThreads
11-11-2010 09:20 AM
Visit this user's website Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #3
RE: Preview In Latest Threads In Portal
Nice trick Smile

My Blog
11-11-2010 10:32 AM
Find all posts by this user Quote this message in a reply
Imran Offline
Member
***
Posts: 204
Joined: Apr 2010
Post: #4
RE: Preview In Latest Threads In Portal
Very useful Smile

[Image: logo.png]

[Image: twitter.png]
11-13-2010 08:24 PM
Visit this user's website Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #5
RE: Preview In Latest Threads In Portal
With a little more modification, we can use it as a "contents" in Portal (Conditional needed - optional).


Attached File(s) Thumbnail(s)
   

11-14-2010 07:02 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: