Porting hovertips to 6.x
NancyDru - February 22, 2008 - 22:49
| Project: | Hovertips and Clicktips |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Description
Will there be any?

#1
Yes, eventually. Patches are welcome, if anyone wants to help. It's a small module and may not need much to upgrade.
#2
Actually, here's a patch. I've done the Drupal part, but the jQuery needs attention and I don't know that part.
#3
Scratch that one, I missed two small things. Now this completely works on 6.x.
#4
Hi,
I have applied this patch, and now hovertip seems to be working fine in my Drupal 6.1 installation.
Cheers,
thomas
#5
Dave, is there any chance you could commit this patch?
#6
(After branching CVS appropriately, of course)
#7
And doing more testing? Someone else testing and marking RTBC would be nice.
#8
Hmm. Doesn't seem to work quite right.
http://www.housingaffordabilityaustralia.com/content/hovertips-test
I'm using the chameleon theme that comes with D6. In firefox, the hovertip comes up any time I'm over that window, rather than just when I hover over the appropriate text. Maybe I'm doing something wrong too, which is why I'm posting the link here.
#9
Ok, maybe it does, and I'm wrong. I finally got the Glossary and Hovertips working together here, and they seem to work properly :).
#10
...so I guess what I'm saying is, the patch is fine, but the documentation could probably use some work :).
#11
Ok, I've found a problem -- hovertips are only working if I'm logged in as Administrator, not anonymous. That's no reason not to create a 6.x dev branch, though :).
#12
6.x has a new version of jQuery, and I suspect there is some tweaking required, but I don't know how to do that part.
#13
http://drupal.org/node/114774#upgraded_to_jquery_12
#14
I know about the docs, but I am not a jQuery or js person.
#15
@NancyDru: Sorry, that wasn't directed at you, but more at someone who wants to get in and give this problem a shot.
#16
I think the new version of jquery could make hovertip.js shorter (because I think jquery provides some of the coordinate nastiness in there now) although I'm not certain about that.
I've been sluggish to check in an Drupal 6 changes because personally I have not yet upgraded any of my sites. I will get to this, though! I appreciate the help.
#17
I've only got my one test site so far, and it is not a really good test bed yet. I have most of my modules converted, but the jQuery is beyond me at the moment. Sorry I couldn't do that part too.
#18
I resolved the issue with non-admin users being able to see the tips. The problem was in hovertip_menu, in that apparently access arguments can't simply be array(TRUE). I set it to array('access content').
I also reviewed the js, and it didn't look like it needed any updating.
#19
They can be, but I may not have done it properly. AFAIC, that's a good solution - if they can't see content, then why are they even on the site.
#20
I assume it can be done, I just couldn't figure out how to do it via the Drupal API.
I suppose one could simple change the "access callback" to "is_array" and pass in "array(1)", but this seems hacky at best.
#21
I remember running across it somewhere in the upgrade docs, but don't remember where right now.
#22
@Dave: Can we at least have a dev branch for this? If you need help with the release system (including CVS), I can help with that (I assume you don't need this, but since there's been no 1.x version, I thought I'd offer).
#23
@jhedstrom: what is this patch against?
#24
My base was: $Id: hovertip.module,v 1.3 2007/12/12 19:23:34 yogadex Exp $
#25
Ok, here's mine against current HEAD, which Dave is updating for the first time since last year. Hopefully he'll be willing to branch for 6.x :).
#26
Forgot to change status; sorry. Nancy implied that she'd done as much as she could on it, so I'm reassigning it to no-one.
#27
Thanks everyone for your work on this. And also for your patience.
Sadly, I'm stuck in the Drupal 5.x world for every site I'm working on. So setting up my environment for 6.x has been something of a hurdle. I don't want to delay you any further so I've checked in the patch - without testing it. Something I'm loathe to do, but just resurrect this issue if I've blundered.
http://drupal.org/node/259042
#28
Automatically closed -- issue fixed for two weeks with no activity.