Project:Lightbox2
Version:6.x-1.9
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

I'm trying to debug my site so it validates correctly.

This is the major error that I'm trying to solve.

# Error  Line 493, Column 258: ID "node_link_text" already defined

…s.jpg" alt="wave" title="wave"  id="node_link_text" width="73" /></a></span>

An "id" is a unique identifier. Each time this attribute is used in a document it must have a different value. If you are using this attribute as a hook for style sheets it may be more appropriate to use classes (which group elements) than id (which are used to identify exactly one element).

I use FeedAPI to create nodes of images from a Flickr group. The Flickr XML data is parsed and then the image is placed in a CCK embedded image field. The CCK embedded image field is then shown through Lightbox2.

Here's a link to the site: www.taipeitechclub.com (Lightbox2 is used in the "Slideshow" section.)

Does anyone know how I could either remove the id="node_link_text" or make it so the info is unique in this View?

AttachmentSize
lightbox2.png85.69 KB

Comments

#1

Category:bug report» support request

I opened up lightbox2.module and found this code on line 658.

'node_link_text' => check_plain(variable_get('lightbox2_node_link_text', 'View Image Details')),

I removed it that line, saved the file, and ftp'd the revised version to my site but no luck.

I was glad to see find that line of code, but still not sure which module is outputting the real HTML that causing the validation error. I'm not really sure what I'm doing but just revisiting this issue in case someone has any ideas.

I changed this from bug report to support request because the module works well, just trying to get valid markup if that's possible.

Thanks.

#2

Status:active» fixed

That's not the line to change at all. It must be a conflict with another module, so I've just namespaced the id to prevent future problems.

#3

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

nobody click here