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,957
MyBB Compatibility: 1.4.x, 1.6.x, 1.8.x
Plugin License: WTFPLv2
Uploader: ZiNgA BuRgA
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #51
RE: Thread Tooltip Preview
If this is your forum URL:
http://www.beatdj.net/MyIB/forumdisplay.php?fid=4
It works for me.

If you are login as Administrator or Moderator, hover the table cell, not the thread link.

10-08-2011 07:09 AM
Find all posts by this user Quote this message in a reply
Glas Offline
Member
***
Posts: 106
Joined: Jul 2010
Post: #52
RE: Thread Tooltip Preview
(10-08-2011 07:09 AM)RateU Wrote:  If this is your forum URL:
http://www.beatdj.net/MyIB/forumdisplay.php?fid=4
It works for me.

If you are login as Administrator or Moderator, hover the table cell, not the thread link.

hmm i beg you pardon me, but i don't get enough what is table cell, (english is not my native language) but i've pointed everyplace and nothing appears
>< and yes, i am as admin
10-08-2011 11:55 AM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #53
RE: Thread Tooltip Preview
Table cell = the box.
But if you've pointed everywhere, then it obviously doesn't like you.

My Blog
10-08-2011 12:15 PM
Find all posts by this user Quote this message in a reply
Glas Offline
Member
***
Posts: 106
Joined: Jul 2010
Post: #54
RE: Thread Tooltip Preview
well i've hovered the mouse over "the box" and still don't work

could you tell me if the template is well edited?
10-08-2011 10:26 PM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #55
RE: Thread Tooltip Preview
Here is the screenshot:
   

Hover around the <td> (the table cell) where the thread title laid, but not the thread title (if you are login as Administrator or Moderator).

(This post was last modified: 10-09-2011 01:12 AM by RateU.)
10-09-2011 01:09 AM
Find all posts by this user Quote this message in a reply
Glas Offline
Member
***
Posts: 106
Joined: Jul 2010
Post: #56
RE: Thread Tooltip Preview
oh you're right, it works

i will try to figure out how to make it show instantly without the need to hover the mouse

is that even possible?

Thanks for all the patience ><
10-09-2011 03:05 AM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #57
RE: Thread Tooltip Preview
You can put {$thread['postpreview']} variable directly in your forumdisplay_thread template for the first post, and (if you want), {$thread['lastpostpreview']} variable for the last post.

There is a setting group for how many chars should be displayed.

(This post was last modified: 10-09-2011 03:38 AM by RateU.)
10-09-2011 03:38 AM
Find all posts by this user Quote this message in a reply
RocketFoot Offline
Senior Member
****
Posts: 338
Joined: Jul 2010
Post: #58
RE: Thread Tooltip Preview
Hello...I am using this plugin but I need to hide the tooltip that shows the users last post when you hoover over the "last post" in the thread list.  See the screen cap below:

[Image: hiddenanswer.png]

[Image: gallery_2_628_39582.jpg]
01-10-2012 07:45 AM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #59
RE: Thread Tooltip Preview
Find and delete the following:

PHP Code:
'<td class="{$bgcolor}" style="white-space: nowrap; text-align: right;">' => '<td class="{$bgcolor}" style="white-space: nowrap; text-align: right;" title="{$thread[\'lastpostpreview\']}">',

PHP Code:
'<td class="{$bgcolor}{$thread_type_class}" style="white-space: nowrap; text-align: right;">' => '<td class="{$bgcolor}{$thread_type_class}" style="white-space: nowrap; text-align: right;" title="{$thread[\'lastpostpreview\']}">'

PHP Code:
'<td class="{$bgcolor}" style="white-space: nowrap">' => '<td class="{$bgcolor}" style="white-space: nowrap" title="{$thread[\'lastpostpreview\']}">'


My Blog
01-10-2012 12:07 PM
Find all posts by this user Quote this message in a reply
RocketFoot Offline
Senior Member
****
Posts: 338
Joined: Jul 2010
Post: #60
RE: Thread Tooltip Preview
Thanks, Zinga...that seems to have fixed the issue.  I like the preview but it was showing answers to other members in my hidden trivia forum forum!  I wish I could have eliminated it from just several forums but I know that probably isn't possible.

[Image: gallery_2_628_39582.jpg]
01-11-2012 09:08 PM
Find all posts by this user Quote this message in a reply


Forum Jump: