Drupal Association members fund grants that make connections all over the world.
My desire is to simply replace the code that pops links into a new window with corresponding code that pops links into a lightframe via the lightbox2 module. Later on this could be expanded to include admin options for lightbox2 and other *box modules, but first I must prove it works in the most simple way.
It seems straightforward:
1) change line 73 in extlink.module to read 'lightframe[|width:800; height:600;]' in place of _blank
2) change line 84 of extlink.js to read 'rel' in place of 'target'
Inspecting the link element in firebug shows that the rel=lightframe[|width:800; height:600;] is being appended to the links properly, but viewing the source shows that it is not there. I'm guessing it is how/when the .js is being applied that is affecting things. Whit the code as is, the target="_blank" behaves the exact same way, but works. That leads me to believe that the lightbox script is either running before that element is applied or doesn't even see it because it is added later.
Has anyone done this successfully and could point me in the right direction?
I found the following: http://drupal.org/node/442382 which pertains to doing this exact thing with the 5.x version of extlink. I believe I read somewhere that the linking strategy is different between the 5.x and 6.x versions, but I could be wrong. Can anyone confirm?
I also read that the maintainer (at least in the past) didn't want to support all of the *box modules because that would tie this module to one of them instead of keeping it open, but it seems like at least documenting an approach to do it with the popular ones would be helpful since these lightboxes are used more and more today.