Project:Hovertips and Clicktips
Version:5.x-1.x-dev
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed (works as designed)

Issue Summary

I plan to upgrade soon but am still missing some modules. On your site you mention that it can work in 4.7. Do I just need to add jquery to my 4.7 install to get this working?

Comments

#1

Status:active» reviewed & tested by the community

Attaching a module I use in Drupal 4.7. However, to make it work, you must patch your 4.7 installation as follows...

Drupal 4.7 defines a javascript function $(), and jquery defines the same function. So to make them play nice together, rename the drupal function. Because the drupal function returns an element given it's id, I rename the function to $id(). So do a search and replace in all files for "$(" and replace it with "$id(". You have to get where the function is defined (end of drupal.js) and also everywhere it is called, which may include contrib modules you've installed.

After you've replaced all "$(" with "$id(", install the attached package and it should work. I've included a version of jquery in the tarball, you may want to replace it with a more recent one.

AttachmentSize
hovertip-4.7.tar.gz 26.1 KB

#2

Status:reviewed & tested by the community» closed (works as designed)

Given that this is provided here in case anyone needs it and that 4.7 is really out of date, I'm marking this "by design" to clean up the issue queue.

nobody click here