Previous Thread
Next Thread
Print Thread
Hop To
Joined: Apr 2004
Posts: 1,945
Likes: 145
UBB.threads Developer
UBB.threads Developer
Joined: Apr 2004
Posts: 1,945
Likes: 145
UBBT 7.5.8 pages should not be declaring themselves as an HTML5 doctype pages when they are actually "XHTML 1.0 Transitional"

UBBT 7.5.7 and prior version were "XHTML 1.0 Transitional", and they validated nearly perfect.

The stock UBBT 7.5.8 doctype tells the browser to process the page as HTML5; yet when processing the page as HTML5 the page's code is filled with all sorts of obsolete and bad values. Such as: tables with cellpadding/cellspacing, nowrap, width, align, valign=, and taget=... to name only a few invalid (obsolete) HTML5 tags.

This is a bug in UBB 7.5.8 that affects every page for every site that has upgraded and is using that stock templates/default/header.tpl file. The doctype and head tags within, should be reverted back their 7.5.7 variation until UBBT is truly HTML5.

in UBBT 7.5.8, replace:
Code
{* Script Version 7.5.8 *}
<!DOCTYPE html>
<html  lang="{$lang.XML_LANG}" dir="{$lang.READ_DIRECTION}" prefix="og: http://ogp.me/ns#">
<head>{$refresh}
	<meta charset="{$lang.CHARSET}" />
	<title>{if $inputTitle}{$inputTitle|strip_tags} | {/if}{if $powered}{$powered} UBB.threads&trade;{else}{$config.COMMUNITY_TITLE}{/if}</title>
	{$headerinsert}
	<meta name="generator" content="UBB.threads {$version}" />

with UBBT 7.5.7 header:
Code
{* Script Version 7.5.7 *}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{$lang.XML_LANG}" lang="{$lang.XML_LANG}" dir="{$lang.READ_DIRECTION}">
<head>
	<title>{if $inputTitle}{$inputTitle|strip_tags} - {/if}{if $powered}{$powered} UBB.threads&trade;{else}{$config.COMMUNITY_TITLE}{/if}</title>
	<meta name="generator" content="UBB.threads {$version}" />
	{$headerinsert}
	{$refresh}
	<meta http-equiv="Content-Type" content="text/html; charset={$lang.CHARSET}" />

One caveat is that prior to HTML5, your script tag types should be declared. This means that rather than using the HTML5 format of <script src="blahblahblah"></script>, they should be written as <script src="blahblahblah" type="text/javascript"></script>. UBBT 7.5.8 removed all the script type declarations. But...

Many modern browsers are able to look at a page and render a correct doctype no mater how it's declared (same, regarding script type), though, not everyone is running the latest operating system and/or are unable to upgrade to a more up-to-date browser -- I'm looking at you, "Windows XP" and your IE8 browser!


Current developer of UBB.threads PHP Forum Software
Current Release: UBBT 7.7.5 // Preview: UBBT 8.0.0
isaac @ id242.com // my forum @ CelicaHobby.com
Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
It's the new "target"; personally, every site I have is xHTML, and the html5 declaration trashes UBBDev's design (plus several other client sites).


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
spam issues
by ECNet - 03/19/2024 11:45 PM
Who's Online Now
2 members (ahmed047, Nightcrawler), 615 guests, and 132 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 20230217)