[phpBB3] Editing or Removing <BASE HREF>
[phpBB3] Editing or Removing <BASE HREF>
Re: [phpBB3] Editing or Removing <BASE HREF>
This tag is XHTML compatible. You can check this forum which is also enhanced by Magic SEO URLs and you will get Valid XHTML as a result.
Re: [phpBB3] Editing or Removing <BASE HREF>
This tag is XHTML compatible. You can check this forum which is also enhanced by Magic SEO URLs and you will get Valid XHTML as a result.
Absolutely. The problem, however, is that my templates have the HTML 4.01 doctype, not XHTML 1.0, so the formatting of the BASE tag is invalid. I understand why it is XHTML by default (i.e. <base href="" /> instead of <base href="">), since the default phpBB templates carry that doctype, but I was wondering if there was some way to override or remove it so that I can customize it to validate with my HTML 4.01 doctype.
Re: [phpBB3] Editing or Removing <BASE HREF>
redburn wrote:Absolutely. The problem, however, is that my templates have the HTML 4.01 doctype, not XHTML 1.0, so the formatting of the BASE tag is invalid. I understand why it is XHTML by default (i.e. <base href="" /> instead of <base href="">).
<base href="" /> (with / before > ) is valid for both HTML and XHTML doctypes.
Re: [phpBB3] Editing or Removing <BASE HREF>
The sequence <FOO /> can be interpreted in at least two different ways, depending on the DOCTYPE of the document. For HTML 4.01 Strict, the '/' terminates the tag <FOO (with an implied '>'). However, since many browsers don't interpret it this way, even in the presence of an HTML 4.01 Strict DOCTYPE, it is best to avoid it completely in pure HTML documents and reserve its use solely for those written in XHTML.
You have used character data somewhere it is not permitted to appear. Mistakes that can cause this error include: using XHTML-style self-closing tags (such as <meta ... />) in HTML 4.01 or earlier. To fix, remove the extra slash ('/') character.
To get back to the question, however: since the script files are encoded, is there any way to alter the coding of the BASE tag?
Re: [phpBB3] Editing or Removing <BASE HREF>
Please post here your forum URL.
Re: [phpBB3] Editing or Removing <BASE HREF>
Re: [phpBB3] Editing or Removing <BASE HREF>
Can you please post here at least your HTML source code of main forum page?
Re: [phpBB3] Editing or Removing <BASE HREF>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title></title>
<base href="http://www.example.com/" /><!--[if IE]></base><![endif]-->
Because your PHP files are encoded, I cannot figure out what the variable is called; it might be $basehref or or $base_href or $basetag, or whatever, I cannot tell from the source. If you can tell me what it is, I might be able to reset its contents so that the BASE tag is not added to all of my pages, and then I can add it to my templates myself and make it validate as HTML 4.01.
So, really the only thing I'm looking for is the name of the variable that outputs the BASE tag and inserts it into the page head after the TITLE tag.