vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Validate this code please.. (https://vborg.vbsupport.ru/showthread.php?t=268324)

gamerzhut 08-10-2011 03:50 PM

Validate this code please..
 
Hi, these 2 lines throws errors, when i try to validate on a validator.



HTML Code:

<div style="color:black; font-family:Franklin Gothic Medium; text-shadow:1px 1px 1px transparent; font-style:oblique; text-decoration:overline; padding:1px; font-weight:900;" class="smallfont">{vb:raw post.usertitle}</div>
Also this
HTML Code:

<vb:if condition="$post['field8']"><div class="Bold" style="color:black; text-shadow:1px 1px 1px transparent; padding:1px; font-weight:900;"><dt>Gender</dt> </div> <dd>{vb:raw post.field8}</dd></vb:if>

Any help would be appreciated, cheers :)

Lynne 08-10-2011 03:52 PM

What are the errors you get?

gamerzhut 08-10-2011 04:17 PM

https://vborg.vbsupport.ru/external/2011/08/49.jpg

If the image is not clear, let me know :)

Lynne 08-10-2011 04:52 PM

The image is clear, but the errors are spelled out right there. You can't have a <b> around a <div>. You can't put a <div> around a <dt> (<dt> must be enclosed in <dl> tags).

gamerzhut 08-10-2011 05:20 PM

Quote:

Originally Posted by Lynne (Post 2231902)
The image is clear, but the errors are spelled out right there. You can't have a <b> around a <div>. You can't put a <div> around a <dt> (<dt> must be enclosed in <dl> tags).

Yeah, thanks!! I tried adding & removing them but failed. It resulted in new errors :/

Can you just validate for the lines which i have posted above?

Many thanks.

Lynne 08-11-2011 01:55 AM

You should just change this to span tags and put them inside the <dt> tags:
HTML Code:

<vb:if condition="$post['field8']"><dt><span class="Bold" style="color:black; text-shadow:1px 1px 1px transparent; padding:1px; font-weight:900;"> Gender</span></dt> <dd>{vb:raw post.field8}</dd></vb:if>
You can try changing the other to <span> tags also.


All times are GMT. The time now is 09:02 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.01123 seconds
  • Memory Usage 1,725KB
  • 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
  • (3)bbcode_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete