MyBB Hacks

Full Version: Latest Threads
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hi I try to add intro text to latest threads I modify portal.php for include full tittle but I like to include intro text
Any ideas how to do
Thanks in advance
Intro text? Do you mean a preview of the post or a text block you add on thread creation?
thread description
I will make more clear now latest Threads show like that :

LG G5 tipped to come with a 20MP 1/2'' Sony sensor, Snapdragon 820
Category: Mobiles Reviews
Last Post: Android
7 hours ago
» Replies: 0
» Views: 26

And I want
Tittle    : LG G5 tipped to come with a 20MP 1/2'' Sony sensor, Snapdragon 820
Content: The LG G4 was universally praised for its camera output and we were big fans of it ourselves. About 5 months after it was made official, we're beginning to hear its successor mentioned every now and then.
Category: Mobiles Reviews
Last Post: Android
7 hours ago
» Replies: 0
» Views: 26

Like you can see I want to show intro text from the thread
Thanks In advance
I think you are looking for this:  http://mybbhacks.zingaburga.com/showthread.php?tid=565
Ok That I think but following the instructions no work in my template  that is my code:

<tr>
<td class="{$altbg}" title="{$thread['postpreview']}">
<strong><a href="{$mybb->settings['bburl']}/{$thread['threadlink']}">{$thread['subject']}</a></strong>
<span class="smalltext" title="{$thread['lastpostpreview']}">
<br />
{$lang->forum} <a href="{$thread['forumlink']}">{$thread['forumname']}</a><br />
<a href="{$thread['lastpostlink']}">{$lang->latest_threads_lastpost}</a> {$lastposterlink}<br />
{$lastpostdate}<br />
<strong>&raquo; </strong>{$lang->latest_threads_replies} {$thread['replies']}<br />
<strong>&raquo; </strong>{$lang->latest_threads_views} {$thread['views']}
</span>
</td>
</tr>
Did you install the required plugin?It is linked on the page I sent you to.

http://mybbhacks.zingaburga.com/showthread.php?tid=267
(09-24-2015 10:36 PM)leefish Wrote: [ -> ]Did you install the required plugin?It is linked on the page I sent you to.

http://mybbhacks.zingaburga.com/showthread.php?tid=267

The file threadtooltip.php is in my inc/plugins in one template work when you move the mouse on the top of the tittle in the other no anyway no work at all in Portal
Anyway I observe the preview in the forum section is only when the mouse is in top of the user make the Post no in top of the title of the thread. But where I want really print the preview is in the portal section
I see Smile

Try this:

Code:
<tr>
<td class="{$altbg}">
<strong><a href="{$mybb->settings['bburl']}/{$thread['threadlink']}">{$thread['subject']}</a></strong>

<br />
{$lang->forum} <a href="{$thread['forumlink']}">{$thread['forumname']}</a><br />
<a href="{$thread['lastpostlink']}">{$lang->latest_threads_lastpost}</a> {$lastposterlink}<br />
{$lastpostdate}<br />
<span class="smalltext">{$thread['lastpostpreview']}</span><br/>
<strong>&raquo; </strong>{$lang->latest_threads_replies} {$thread['replies']}<br />
<strong>&raquo; </strong>{$lang->latest_threads_views} {$thread['views']}
</span>
</td>
</tr>

Still not working and why you change
Quote: <td class="{$altbg}" title="{$thread['postpreview']}">
to
Quote:<td class="{$altbg}"

Regards



(09-25-2015 01:47 AM)leefish Wrote: [ -> ]I see Smile

Try this:

Code:
<tr>
<td class="{$altbg}">
<strong><a href="{$mybb->settings['bburl']}/{$thread['threadlink']}">{$thread['subject']}</a></strong>

<br />
{$lang->forum} <a href="{$thread['forumlink']}">{$thread['forumname']}</a><br />
<a href="{$thread['lastpostlink']}">{$lang->latest_threads_lastpost}</a> {$lastposterlink}<br />
{$lastpostdate}<br />
<span class="smalltext">{$thread['lastpostpreview']}</span><br/>
<strong>&raquo; </strong>{$lang->latest_threads_replies} {$thread['replies']}<br />
<strong>&raquo; </strong>{$lang->latest_threads_views} {$thread['views']}
</span>
</td>
</tr>

Pages: 1 2
Reference URL's