vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Are bulletin boards intrinsically not xhtml compliant? (https://vborg.vbsupport.ru/showthread.php?t=72933)

Robink 12-15-2004 06:52 PM

Are bulletin boards intrinsically not xhtml compliant?
 
Even though all my vb3 templates are xhtml compliant, when I validate threads, the validator will inevitably give me a "Not compliant" result.

And the reason for this is, that users who post on the forums tend to use non-SGML characters like the euro sign(?), or Quotes like this: ?, ?, ?.

And since they can use vbCode, they often write code like:
HTML Code:

[b][i][u]hello[/u][/i][u][/u][/b][u][/u]
Since a bulletin board must have some part of its pages entered by users, and you cant expect all the users to write correct well nested tags.. my pages are always non xhtml compliant.

Is there a solution to this?
Or due to the very nature of a bulletin board (contribution of user-written content), can it never be xhtml compliant?

sabret00the 12-18-2004 01:41 PM

it can never be compliant unless you want to go mad with the resources of your server and check every message being inputted into teh database replacing all non xhtml compliancy with compliancy i.e

find: "
replace with: &quote;

as you can see this is where XHTML becomes stupid, and thus imo xhtml compliancy is heavily overrated.

Robink 12-19-2004 06:17 PM

For forums, I think xhtml compliance seems unnecessary.. due to such issues.

But I do make all my personal pages xhtml compliant.

Dean C 12-19-2004 06:58 PM

Well you could strip all non-alphanumeric characters from the posting text except the brackets for bbcode and the = sign.

filburt1 12-19-2004 07:31 PM

It's hardly difficult. Most of my forum pages are XHTML 1.0 Transitional compliant and vBulletin itself is too, I believe. You just have to have standards in mind when developing. " to " and such has been around far longer than XHTML.

Robink 12-21-2004 02:26 PM

Filburt, I'm talking about user inputted data. I cant tell my users to type """ when they want to have quotes.

Natch 12-22-2004 10:43 AM

But you are running on a vB powered server, this give your certain advantages (like PHP, and some excellent functions built into vB) over plain vanilla text input: you can post-process the content to modify standalone " and replace them with " etc... if you need to...

Robink 12-24-2004 02:24 PM

Probably I can handle non-SGML characters that way. How do I take care of users using tags in the wrong order?


All times are GMT. The time now is 01:20 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.01968 seconds
  • Memory Usage 1,717KB
  • 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
  • (1)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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