Previous Thread
Next Thread
Print Thread
Hop To
Joined: Jul 2006
Posts: 50
M
mag
Offline
journeyman
journeyman
M Offline
Joined: Jul 2006
Posts: 50
I am trying to lessen the errors shown by W3C validation on my backup-copy of the html homepage. I know I cannot remove all of them. cry
I have a UBB 7.1.1 forum.
I post news from the forum on my homepage by linking to specific forum threads.

I get these warnings and errors on W3c validation:
Quote
Warning Line 129 column 86: cannot generate system identifier for general entity "Number".
...om/forum/ubbthreads.php?ubb=showflat&Number=163506">

Quote
Error Line 129 column 86: general entity "Number" not defined and no default entity.
...om/forum/ubbthreads.php?ubb=showflat&Number=163506">

Quote
Error Line 129 column 92: reference to entity "Number" for which no system identifier could be generated.
...um/ubbthreads.php?ubb=showflat&Number=163506">

How can I correct these?
Thanks.

Last edited by mag; 06/25/2007 10:06 AM.
Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
I'm pretty sure that first error and second error are because & isn't written as &

As for the third, i think it's also due to the & before Number.


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Jul 2006
Posts: 50
M
mag
Offline
journeyman
journeyman
M Offline
Joined: Jul 2006
Posts: 50
Thank you very much, Gizmo. It is appreciated.

Joined: Aug 2006
Posts: 1,358
Y
Veteran
Veteran
Y Offline
Joined: Aug 2006
Posts: 1,358
The &'s are a bugger that are a bit difficult to fix.

I also spend some time making everything more xhtml w3c ok this week. Afer we upgrade to 7.2 I want to continue with fresh original templates.


[Linked Image from siemons.org]
Joined: Dec 2003
Posts: 1,796
Pooh-Bah
Pooh-Bah
Joined: Dec 2003
Posts: 1,796
Turning on spider-friendly urls will at least hide those ampersand errors smile


- Allen
- ThreadsDev | PraiseCafe
Joined: Nov 2006
Posts: 3,095
Likes: 1
Carpal Tunnel
Carpal Tunnel
Joined: Nov 2006
Posts: 3,095
Likes: 1
So what is the root cause of them and why can't the core code of UBBT be altered to use a more Web friendly alternate?

Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
hardcoded structure; and it's not like it can't be updated, but theres a lot of areas to update


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Nov 2006
Posts: 3,095
Likes: 1
Carpal Tunnel
Carpal Tunnel
Joined: Nov 2006
Posts: 3,095
Likes: 1
Originally Posted by Gizmo
hardcoded structure; and it's not like it can't be updated, but theres a lot of areas to update

Well if that's the case then maybe time for some RegEx hehe

Joined: Jun 2006
Posts: 196
I
enthusiast
enthusiast
I Offline
Joined: Jun 2006
Posts: 196
7.3 should have far less validation errors. I went through every public template fixing the issues, and I got in a url function that assures no link will ever be invalid again. The only thing we can't guarantee will validate are the posts made by users

Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
assuming the posts are run through htmlspecialchars, a lot of the content should be pushed out as valid as possible

Great work on all of the validation though Ian; I know a lot of site owners who'll bow at your feet for that smile


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Jun 2006
Posts: 196
I
enthusiast
enthusiast
I Offline
Joined: Jun 2006
Posts: 196
Oh, that stuff gets pumped out as valid, unforunately we can't expect users to understand proper nesting.


[b][i]Test[/b][/i] results in a validation error . It's the same for every other forum software, as we'd require a complex token tree to even come close to compensating for that stuff. I know CC had that before, but the code never got checked in.

That and the issue with people doing

[i][quote]test[/quote][/i], putting block level elements inside of inline elements.

Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
Ahh yes, nesting could be a problem indeed... At least those are miniscule compared to larger problems that you fixed with validity wink


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
Is UBB.threads still going?
by Aaron101 - 04/01/2022 8:18 AM
Who's Online Now
1 members (Geoff), 1,124 guests, and 219 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240501)