Keyword
Please note that official support for commercial extensions & templates is provided in the Subscriber Help Desk.
Support requests should ONLY be directed there and require an active subscription plan.
This forum board is to be used for archive purposes and knowledge exchange ONLY.

Problems with CSS Validation

  • cherwoh
  • cherwoh's Avatar Topic Author
  • Offline
  • New Member
More
17 years 1 week ago #2272 by cherwoh
Problems with CSS Validation was created by cherwoh
OK, so it passed the XHTML validation beautifully. But it gives me some warning messages and apparently it's on error that is recurring repeatedly. I'd like to fix this because I'd like to have my site CSS validated also and I intend to use this plugin on most of my pages; it's the cooles pluggin ever. Please help:

This is the output that I got from www.w3c.org for www.cherwoh.com/cah/

Below is a list of the warning message(s) produced when validating your document.

  1. Warning Line 131 column 184: character "<" is the first character of a delimiter but occurred as data.

      ...hickbox" rel="lightbox[sig0]" title="<b>Dario Gonzalves

      This message may appear in several cases:
          * You tried to include the "<" character in your page: you should escape it as "&lt;"
          * You used an unescaped ampersand "&": this may be valid in some contexts, but it is recommended to use "&amp;", which is always safe.
          * Another possibility is that you forgot to close quotes in a previous tag.

      ✉
  2. Warning Line 132 column 0: character "<" is the first character of a delimiter but occurred as data.

      </b>" target="_blank"><img alt="Click image to open!" title="Click image to open

      ✉
  3. Warning Line 134 column 179: character "<" is the first character of a delimiter but occurred as data.

      ...hickbox" rel="lightbox[sig0]" title="<b> Where me doubles - eh?

      ✉
  4. Warning Line 135 column 0: character "<" is the first character of a delimiter but occurred as data.

      </b>" target="_blank"><img alt="Click image to open!" title="Click image to open

      ✉
  5. Warning Line 137 column 178: character "<" is the first character of a delimiter but occurred as data.

      ...hickbox" rel="lightbox[sig0]" title="<b>Ok so she is cool

      ✉
  6. Warning Line 138 column 0: character "<" is the first character of a delimiter but occurred as data.

      </b>" target="_blank"><img alt="Click image to open!" title="Click image to open

      ✉
  7. Warning Line 140 column 177: character "<" is the first character of a delimiter but occurred as data.

      ...hickbox" rel="lightbox[sig0]" title="<b>Jade thinks u're cute

      ✉
  8. Warning Line 141 column 0: character "<" is the first character of a delimiter but occurred as data.

      </b>" target="_blank"><img alt="Click image to open!" title="Click image to open

      ✉
  9. Warning Line 143 column 176: character "<" is the first character of a delimiter but occurred as data.

      ...hickbox" rel="lightbox[sig0]" title="<b> Rodney and Miss Beckles

      ✉
  10. Warning Line 144 column 0: character "<" is the first character of a delimiter but occurred as data.

      </b>" target="_blank"><img alt="Click image to open!" title="Click image to open


________________
Please help

Please Log in or Create an account to join the conversation.

More
17 years 1 week ago #2273 by JoomlaWorks
Replied by JoomlaWorks on topic Re: Problems with CSS Validation
Although validating your CSS will not do any good to your site, here's what you need to do.

Open up the main plugin file, plugin_jw_sigpro.php and find this block of code:
				// if labels don't exist
				if (!$labels) {
					// display nice message?
					if ($displaymessage) {
						if ($popup_engine == 'greybox') {
						$html .= '<b>'.$itemtitle.'</b>'; // remove nice messages for Greybox
						} else {
						$html .= $message.'
<b>'.$itemtitle.'</b>';
						}
					} else {
					$html .= '<b>'.$images[$a].'</b>';
					}
				}

Change it to:

				// if labels don't exist
				if (!$labels) {
					// display nice message?
					if ($displaymessage) {
						if ($popup_engine == 'greybox') {
						$html .= ''.$itemtitle.''; // remove nice messages for Greybox
						} else {
						$html .= $message.' '.$itemtitle.'';
						}
					} else {
					$html .= ''.$images[$a].'';
					}
				}

Again, I do not recommend it cause this changes the layout.

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • cherwoh
  • cherwoh's Avatar Topic Author
  • Offline
  • New Member
More
17 years 1 week ago #2274 by cherwoh
Replied by cherwoh on topic Re: Problems with CSS Validation
But how does it change the layout: Also note, that I don't necessarily want to show captions; I can give that up for CSS compliance :-). Is this what u mean? I'm about to try your fix now. Thanks I'll tell u if it works

CAH

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum