vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   XHTML question... (https://vborg.vbsupport.ru/showthread.php?t=202141)

Saviour 01-17-2009 05:03 PM

XHTML question...
 
I have the following line of code in a product's XML file and would like to know the proper way to code it, since the way it is now fails XHTML compliancy.

Here's the HTML:
HTML Code:

<div class="smallfont" style="float: right" style="font-style: italic;">
Any help is greatly appreciated.

Lynne 01-17-2009 05:16 PM

Perhaps:

HTML Code:

<div class="smallfont" style="float:right; font-style:italic;">

Saviour 01-17-2009 05:25 PM

Thanks Lynne...I can always count on you, but aren't you missing some spaces in your coding? Just want to make sure...

Lynne 01-17-2009 05:28 PM

You may add in a space if you want. I don't think it really matters.

Saviour 01-17-2009 06:02 PM

Thanks, Lynne...

You're one of the best!

I've got 136 errors down to just 89, but from there...I'm totally "clueless".

Lynne 01-17-2009 06:16 PM

Usually the validator spits out the reason. And, very often one little error on your page will give several errors on a validator. So, just take them one at a time and you'll see progress.

Saviour 01-17-2009 06:27 PM

Unfortunately, I'm not really that skilled. Even though I can get the general idea...and I do happen to fix some of the issues, most of the time, on my own.

However, reading the reasons the validator gives is based on the source code for that particular page. What I find to be the hardest part is determining whether the errors are being caused by the product's xml file...or if it's being caused by a template within that product.

That's why...at this particular juncture...I'm stuck.

I do agree, however, that one issue can cause several. I just wish I had someone sitting next to me who knows what they're doing. Care to come over and fix this for me?:D

--------------- Added [DATE]1232229018[/DATE] at [TIME]1232229018[/TIME] ---------------

Guess I can take that as a "no", huh?;)

Dismounted 01-18-2009 03:32 AM

Quote:

Originally Posted by Saviour (Post 1716024)
However, reading the reasons the validator gives is based on the source code for that particular page. What I find to be the hardest part is determining whether the errors are being caused by the product's xml file...or if it's being caused by a template within that product.

All HTML should be inside templates, and none should in plugins/files/etc. Make sure you have enabled template commenting in the Admin CP (vBulletin Options > General Settings, IIRC). This will allow you to easily pinpoint which template is causing the error.

Saviour 01-18-2009 05:48 AM

Dismounted...

Thanks for the tip...I'm down to just 37 errors. However, I'm stuck. Is there any way I can provide you with the source code and you tell me where to look?

I've enable the setting as you previously mentioned...and it does show the templates, but the very first validation error has me stumped.

Thanks for all of your help everyone...really...much appreciated.

Dismounted 01-18-2009 09:46 AM

Please post a link to the page you are validating.


All times are GMT. The time now is 03:41 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01497 seconds
  • Memory Usage 1,733KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete