PDA

View Full Version : Miscellaneous Hacks - Fix XHTML templates with XMLNS information


PitchouneN64ngc
07-25-2007, 10:00 PM
Description

With this mod, you can fix the error you can see if you trying to verify your forum with the W3C Validator.

It doesn't edit template cache for any official add-ons or modifications you have installed in your forums!

If you using vB Advanced, Project Tools or Blog (even in Beta), it edits all necessary templates :)

This mod will works for all past, present and future versions of vBulletin, this will be fixed for vB 3.7.x branch (see http://www.vbulletin.com/forum/project.php?issueid=22727&filter=all#note46673).

Enjoy ;)

grey
Installation

Time: 1 minute
vB version: 3.6.0 to 3.6.x (it will be fixed in 3.7 branch).

grey
Instructions
Import the product file. This file contains a lot of templates cache edit:

- vBulletin:
- 59 templates

- vB Advanced:
- 1 template

- vBulletin Project Tools
- 17 templates

- vBulletin Blog
- 3 templatesgrey
FAQ

No FAQ for now :p

grey
Copyright

All code present is this mod can't be redistributed or anything else without my consentement.

grey
Changelog

- 1.0.0 : Intial release. (July 26 2007) (64 downloads before update)
- 1.0.1 : Added some functionnalities (July 30 2007) - Added support for vB Advanced (edit the 'adv_portal' template cache).
- Remove automatically the product when vB 3.6.9 or upper is installed.
(32 downloads before update)
- 1.0.2 : Added some modifications (August 15 2007) - Added support for some products (Project Tools & Blog)
- Removed the code for deleting the product if vBulletin 3.6.9 or upper is found (it will be fixed in vB 3.7.x branch)
grey
Screenshots

There is no screenshot, look in your source code for seeing what it does.

grey
If you like it...

-> Mark as Installed (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=153476) <-
and/or
-> Nominate for MOTM (https://vborg.vbsupport.ru/vborg_miscactions.php?do=nominate&threadid=153476&type=1) <-

iogames
07-26-2007, 06:07 PM
Funny! :D 3.6.8

puertoblack2003
07-26-2007, 08:41 PM
nice hack will use when upgrading to .6.8.I can't never figure out how to fix...lol

Endurer
07-27-2007, 02:52 AM
Thanks, will be upgrading tonight.

vip-q.com
07-27-2007, 03:27 AM
thanks man :)

nymyth
07-27-2007, 02:28 PM
w00t...i had just asked about this yesterday vbulletin and i didnt get an answer...NICE WORK

nymyth
07-27-2007, 02:34 PM
installed, by any chance could you update with a fix for vbadvanced too?

Cheers.

PitchouneN64ngc
07-27-2007, 09:19 PM
installed, by any chance could you update with a fix for vbadvanced too?

Cheers.
I'll see that in some hours (must to sleep ^^), I've never used vBAdvanced ;)

nymyth
07-27-2007, 10:47 PM
thanks a lot

pauloo
07-29-2007, 04:15 PM
THanks pitch !

raiderlax
07-30-2007, 03:13 AM
Sorry, but I don't really understand what this does.

I know about the errors from xhtml , but how is this supposed to fix them?

PitchouneN64ngc
07-30-2007, 06:52 AM
Sorry, but I don't really understand what this does.

I know about the errors from xhtml , but how is this supposed to fix them?
It fixes the issue by edit the template cache of 59 vBulletin default templates, replacing <html by <html xmlns="http://www.w3.org/1999/xhtml"

It works for every style you can have/download/buy (the <html tag must to be present, or it's not an HTML page).

nymyth
07-30-2007, 01:09 PM
AWESOME....vbadvanced fix worked great...thankx for this.

pauloo
08-15-2007, 01:31 PM
Thanks for update ;)

PitchouneN64ngc
08-15-2007, 01:32 PM
Updated to version 1.0.2, enjoy ;)

AzzidReign
08-15-2007, 04:37 PM
Thanks for the update! I've recently gotten into validating my sites so thank you :D

CloneVince
08-27-2007, 06:53 PM
I have install your modification, thx a lot :)

but it seems to be in conflict with this hack : https://vborg.vbsupport.ru/showthread.php?t=123162

Can anyone help me ?

thanks

bollie
09-02-2007, 05:22 AM
Work not look http://validator.w3.org/check?uri=http%3A%2F%2Fpctuts.be%2Fforum&charset=%28detect+automatically%29&doctype=Inline&group=0

PitchouneN64ngc
09-02-2007, 07:10 AM
Work not look http://validator.w3.org/check?uri=http%3A%2F%2Fpctuts.be%2Fforum&charset=%28detect+automatically%29&doctype=Inline&group=0
This mod didn't fix all errors you can have in your style but only the first line (starting by <html).

Grunt
09-05-2007, 11:58 AM
This mod didn't fix all errors you can have in your style but only the first line (starting by <html).
:D I can only assume you're hard at work on the version that fixes all the errors :D

Thanks Pitchoune for the mod..saved alot of tedious work

PitchouneN64ngc
09-13-2007, 10:09 AM
I have install your modification, thx a lot :)

but it seems to be in conflict with this mod : https://vborg.vbsupport.ru/showthread.php?t=123162

Can anyone help me ?

thanks
For this, this is due to the use of GENERIC_SHELL template which you have the $HTML var.

Two solutions for me for version 1.0.3:

Remove the edition of the GENERIC_SHELL template
Use an other replacement variable especially for this template (like search for '<html id="' (the html tag in this template has a value like 'moooo' - the dev who have implemented that have some humours :p).

Super Jinni
07-19-2008, 01:49 AM
Hi Yves,

can you please release the 3.7.x version of this mod?

thanks

:)

PitchouneN64ngc
07-19-2008, 03:48 PM
This modification is included in 3.7 ;)