Closed (fixed)
Project:
External Link Popularity
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 May 2008 at 01:30 UTC
Updated:
18 May 2008 at 23:50 UTC
Hi, when I click an external link, I get a javascript error
parents(...).attr(...) is null or not an object
I am on IE7
Comments
Comment #1
sikjoy commentedHi Jonga:
I cannot duplicate this bug.
This may be theme related. Which theme are you using?
Comment #2
chandrabhan commentedI am using Twilight theme.
Comment #3
sikjoy commentedI confirmed that this module is currently incompatible with the Twilight theme. It won't matter what browser you are using. It comes down to this: I rely on a convention used by most themes which wraps node markup in a
<div class="node" id="node-1">...</div>tag. I use this to determine which node has been clicked when a user exits your site.I'll need to do a survey of themes to see how many don't follow this convention to decide how to proceed from here.
Comment #4
chandrabhan commentedIf this markup does not affect the layout of the node in any way then I can override this in the template file. Does Garland work with your module? I can refer to its template file and change accordingly then.
Comment #5
chandrabhan commentedlooks like its just the id that I had to add to the div tag in node.tpl.php and its working great! Can you please tell me any other template that I might have to change?
Comment #6
sikjoy commentedYes Garland works.
The node.tpl.php should be the only one you need to change. Modify it so that the starting div tag has:
id="node-<?php print $node->nid; ?>"Then all should be well.
Comment #7
sikjoy commented