Thread Tooltip Preview
Author Message
Displays a basic preview of a thread in forumdisplay/search in a tooltip.  The tooltip acts like any standard tooltip - it will be shown after the mouse is hovered on the table cell containing the thread title.  (will also do it for thread title text itself if the user is not a moderator, in which case, the "click and hold to edit" will override the thread tooltip)

This will also display a tooltip preview for the last post, when the user hovers the mouse on the last post cell in forumdisplay/search (note, this doesn't work for the forum index).

Note: this plugin assumes that you're using the UTF-8 character set everywhere (which MyBB somewhat assumes anyway).

As there are clearly a lot of people who don't read the above, I will say this differently.  This DOES work for moderators and administrators, however you need to hover the mouse on the TABLE CELL for it to appear (not the actual thread link).
(This post was last modified: 11-11-2014 07:16 AM by ZiNgA BuRgA.)
Find all posts by this user
Quote this message in a reply
Download: threadtooltip-1.33.7z (2.65 KB)
Plugin Version: 1.33
Last Updated: 11-11-2014, 07:14 AM

Downloads: 1,978
MyBB Compatibility: 1.4.x, 1.6.x, 1.8.x
Plugin License: WTFPLv2
Uploader: ZiNgA BuRgA
Monaco Offline
Junior Member
**
Posts: 2
Joined: Jul 2011
Post: #41
RE: Thread Tooltip Preview
Does this work in 1.6.4?
07-28-2011 11:03 AM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #42
RE: Thread Tooltip Preview
I would think so.  I haven't tried so no guarantees (though I never guarantee anything anyway).

My Blog
(This post was last modified: 07-28-2011 11:13 AM by ZiNgA BuRgA.)
07-28-2011 11:13 AM
Find all posts by this user Quote this message in a reply
Monaco Offline
Junior Member
**
Posts: 2
Joined: Jul 2011
Post: #43
RE: Thread Tooltip Preview
Thank you - I will try it and let you know how it works!
Hey- it seems to work fine!
(This post was last modified: 07-28-2011 11:53 AM by Monaco.)
07-28-2011 11:36 AM
Find all posts by this user Quote this message in a reply
RocketFoot Offline
Senior Member
****
Posts: 338
Joined: Jul 2010
Post: #44
RE: Thread Tooltip Preview
It works fine in 1.6.4

Biggrin

[Image: gallery_2_628_39582.jpg]
07-29-2011 05:39 AM
Find all posts by this user Quote this message in a reply
Sama34 Offline
Senior Member
****
Posts: 490
Joined: May 2011
Post: #45
RE: Thread Tooltip Preview
The plugin doesn't work in my custom theme.

The plugin looks for <td class="{$bgcolor}">, <td class="{$bgcolor}{$thread_type_class}">, <td class="{$bgcolor}" style="white-space: nowrap; text-align: right;"> and <td class="{$bgcolor}{$thread_type_class}" style="white-space: nowrap; text-align: right;"> in the forumdisplay_thread template.

For what I understand, I need to edit the plugin itself to make it work if I already modified these td's right?

Edit: It looks like it works just manually adding title="{$thread['postpreview']}" and title="{$thread['lastpostpreview']}" to the templates, is there any problem with doing this?

Support PM's will be ignored. Yipi
Plugins: Announcement Bars - Custom Reputation - Mark PM As Unread
(This post was last modified: 09-30-2011 10:08 PM by Sama34.)
09-30-2011 09:59 PM
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: #46
RE: Thread Tooltip Preview
(09-30-2011 09:59 PM)Sama34 Wrote:  is there any problem with doing this?

No.

My Blog
(This post was last modified: 10-01-2011 08:49 AM by ZiNgA BuRgA.)
10-01-2011 08:49 AM
Find all posts by this user Quote this message in a reply
Sama34 Offline
Senior Member
****
Posts: 490
Joined: May 2011
Post: #47
RE: Thread Tooltip Preview
Thanks ZiNgA BuRgA.

Support PM's will be ignored. Yipi
Plugins: Announcement Bars - Custom Reputation - Mark PM As Unread
10-01-2011 04:06 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Glas Offline
Member
***
Posts: 106
Joined: Jul 2010
Post: #48
RE: Thread Tooltip Preview
This is my default forumdisplay_thread template

and this plugin don't work
can someone fix please?

Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<tr>
	<td align="center" class="{$bgcolor}{$thread_type_class}" width="2%"><img src="{$theme['imgdir']}/{$folder}.gif" alt="{$folder_label}" title="{$folder_label}" /></td>
	<td align="center" class="{$bgcolor}{$thread_type_class}" width="2%">{$icon}</td>
	<td class="{$bgcolor}{$thread_type_class}">
		{$attachment_count}
		<div>
			<span>{$prefix} {$gotounread}{$thread['threadprefix']}<a href="{$thread['threadlink']}" class="{$inline_edit_class} {$new_class}" id="tid_{$inline_edit_tid}">{$thread['subject']}</a>{$thread['multipage']}</span>
			<div class="author smalltext">{$thread['profilelink']}</div>
		</div>
	</td>
	<td align="center" class="{$bgcolor}{$thread_type_class}"><a href="javascript:MyBB.whoPosted({$thread['tid']});">{$thread['replies']}</a>{$unapproved_posts}</td>
	<td align="center" class="{$bgcolor}{$thread_type_class}">{$thread['views']}</td>
	{$rating}
	<td class="{$bgcolor}{$thread_type_class}" style="white-space: nowrap; text-align: right;">
		<span class="lastpost smalltext">{$lastpostdate} {$lastposttime}<br />
		<a href="{$thread['lastpostlink']}">{$lang->lastpost}</a>: {$lastposterlink}</span>
	</td>
{$modbit}
</tr>

10-08-2011 06:12 AM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #49
RE: Thread Tooltip Preview
Did you run the Rebuild Thread Tooltips?

10-08-2011 06:19 AM
Find all posts by this user Quote this message in a reply
Glas Offline
Member
***
Posts: 106
Joined: Jul 2010
Post: #50
RE: Thread Tooltip Preview
(10-08-2011 06:19 AM)RateU Wrote:  Did you run the Rebuild Thread Tooltips?

yes i did
10-08-2011 06:47 AM
Find all posts by this user Quote this message in a reply


Forum Jump: