Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Nov 2003
Posts: 482
Enthusiast
Enthusiast
Offline
Joined: Nov 2003
Posts: 482
As usual, i had a buncha forum members with nothing better to do than to bitch about a 'lost feature' that i had hacked in for 65x when we upgraded to 71x.

Sooooo, i added this as a response to their griping. It was a fun one to do.

Essentially, this has a variable delay tooltip, that will show when the user hovers over a topic's subject.

The tooltip is fully styled and fully HTML, with all tags being closed by the truncator. No nl2br stuff or text only!

Just read the readme.txt (duh) and have at it. I have it working on my play forum: Here . The hover activates after a 1 second (configurable) delay.

I think i currently have it showing the last post in the thread, where first==last for a totally new topic wink

Notes:

1. "title="header=[Preview] body=[{$postrow[topic].PostBody}] fade=[on] delay=[1000] fadespeed=[1] cssheader=[tthdr] cssbody=[ttbdy]"

you can change these ie:
. "Preview" could come from a lang file, if you want and you could call it whatever
. fade=[on] can be off, if you don't want the tooltip to fade at all
. delay is in ms, so 1000 is one second. feel free to change. i find a short one kinda sux
. tthdr, ttbdy can be any class you desire. i just used them as 'tt' - tooltip smile

2. i've included a compressed version of boxover.js, since its static anyway. you can choose to copy boxover-cs.js to boxover.js if you want. i also have boxover-nm.js in case you killed the original boxover.js.

3. The css i included above was for a blueish theme (light), so feel free to change it for your particular needs. Also, the widths may not be to your liking. Have at it! You can include 'opacity' stuff and have some neat effects, if you'd like. i tried it, then reverted to none.

4. The popup is a fully HTML one and all tags that aren't finished are handled (finished off) by truncate.inc.php, so no worries, if you choose to have a different size for the preview.

5. I've gone even further with this puppy to add it to Active Topics preview and such. There are lots of places where this can be used, however I decided to stop for now, because what i really intend (and am in the process of doing) is to marry the .js with AJAX functionality so as to not have to burden the title="" with large amounts of data. This will make for a more polished product in the end. I'll probably coincide the new release of this puppy with 7.2, so i don't have to re-hack.

6. You can choose what the hover tooltip will display (first post or last post), by changing the SQL above from .TOPIC_LAST_POST_ID to t1.POST_ID

Screenie below:
[Linked Image]

That's it!

Enjoy!
Attachments
2414-ReadMe.txt (8.84 KB, 53 downloads)
2415-sd.Tooltip.for.Postlist.zip (14.16 KB, 58 downloads)

Last edited by sirdude; 07/21/2007 1:17 PM. Reason: See 7.2 update in separate thread
Sponsored Links
Joined: Feb 2002
Posts: 2,286
Veteran
Veteran
Joined: Feb 2002
Posts: 2,286
Well done laugh

yay



Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Joined: Feb 2002
Posts: 2,286
Veteran
Veteran
Joined: Feb 2002
Posts: 2,286
Originally Posted by sirdude
I'll probably coincide the new release of this puppy with 7.2, so i don't have to re-hack.

Will await 7.2 version smile


Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Joined: Nov 2003
Posts: 482
Enthusiast
Enthusiast
Offline
Joined: Nov 2003
Posts: 482
Ian,

I agree that's probably a good idea. Since it will be ajax based and the load on the php side of things (as well as page size) will drop.

Matter of fact, for all my mods, i don't see why someone would be putting them into a 7.1x right now. Best to wait for 7.2 or later.

Good to note however, most of them aren't different with respect to whether they are intstalled on a 7.1 or 7.2

Joined: Sep 2006
Posts: 75
Power User
Power User
Offline
Joined: Sep 2006
Posts: 75
Hey sirdude, this is exactly what I've been wanting. Good for you, and thanks! smile

I'll wait until I upgrade to 7.2 as well. smile

Sponsored Links
Joined: Nov 2003
Posts: 482
Enthusiast
Enthusiast
Offline
Joined: Nov 2003
Posts: 482
I've decided to separate the 7.1 mods from the 7.2 mods into separate threads. the 7.1 mods will just float down in the list and fade into oblivion, while (if the 7.2 mods are good enough) the new ones will supplant them.

Keeping 2 flavors of mods in the same thread is a pain and the coding (although very similar) is easier to maintain on a per thread/version basis.

So just look for the new [7.2] threads, if you are into 7.2 only mods.

:2c:

Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
Good way to do it, I do it by prefixing the thread with versions it supports; very rare though do I have one which says [7.x] wink


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Joined: Sep 2006
Posts: 75
Power User
Power User
Offline
Joined: Sep 2006
Posts: 75
This will work for 7.2, right?

Joined: Sep 2006
Posts: 75
Power User
Power User
Offline
Joined: Sep 2006
Posts: 75
I think I answered my own question .. which is no. The first piece of code to find and replace is not exactly the same, so I thought I'd better not go ahead. I'll break something for sure. laugh

Joined: Nov 2003
Posts: 482
Enthusiast
Enthusiast
Offline
Joined: Nov 2003
Posts: 482
i'll make a new thread for the 7.2 one. should be after starbucks and 2 triple grande lattes though laugh

Sponsored Links
Joined: Sep 2006
Posts: 75
Power User
Power User
Offline
Joined: Sep 2006
Posts: 75
Thanks SD .. will look out for it. smile


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
JAISP
JAISP
PA
Posts: 449
Joined: February 2008
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)