4.7 Version?

jasonwhat - January 17, 2007 - 21:26
Project:Hovertips and Clicktips
Version:5.x-1.x-dev
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:reviewed & tested by the community
Description

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?

#1

Dave Cohen - January 20, 2007 - 15:54
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
 
 

Drupal is a registered trademark of Dries Buytaert.