Donations

Help support Pro_News and become a member of our Sponsors Group
The tip jar is at PayPal, but does not require a PayPal account
macavity
$ 20.00
heliown
$ 20.00
rosbif
$ 18.68
rosbif
$ 26.40
Aforo, losViajeros
$ 40.00
User Info
Selamat Datang Anonymous
(Daftar)
Keanggotaan:
Terakhir: macuserau
Yang baru hari ini: 0
Yang baru kemarin: 0
Semuanya: 146
Orang yang Online:
Member: 0
Pengunjung: 6
Bots: 3
Total: 9
Who Is Where:
Pengunjung:My Account
Support Forums
Pro News Articles
Pro News Articles
Pro News Articles
Downloads
Bots:Google > Support Forums
Voila > Home
Baidu > Support Forums
Staff Online:
No staff members are online!
Kembali Ke Atas
Skip to menu
Skip to content
WeatherHarvest and W3C validation
WeatherHarvest and W3C validation
Dikirim: Thu May 03, 2007 6:47 pm
Want to validate your site against the W3C validator but get the No document type declaration; will parse without validation error?
Well if you are using WeatherHarvest, it is because it is putting its javascript declaration right at the very top of the page, even before the !DOCTYPE declaration. Not good.
Fortunately the fix is fairly easy. In /modules/WeatherHarvest/wh_ini.php find around line 35:
and change it to:
i.e. comment it out so it is ignored.
Now in /modules/WeatherHarvest/index.php find a blank line around line 18 and insert the line:
Notice that this is not exactly the same line as you removed, you are replacing the echo with $modheader .= so that Dragonfly can output the script declaration at the appropriate time with the rest of the scripts, rather than immediately as before.
layingback's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
2.6.32 / 1.3.39 - 2.2.12 / 4.4.7 - 5.1.37 / 5.3.0 / 9.2.1
Well if you are using WeatherHarvest, it is because it is putting its javascript declaration right at the very top of the page, even before the !DOCTYPE declaration. Not good.
Fortunately the fix is fairly easy. In /modules/WeatherHarvest/wh_ini.php find around line 35:
PHP:
echo "<script type=\"text/javascript\" src=\"modules/WeatherHarvest/utils/animateImages.js\"></script>";
and change it to:
PHP:
// echo "<script type=\"text/javascript\" src=\"modules/WeatherHarvest/utils/animateImages.js\"></script>";i.e. comment it out so it is ignored.
Now in /modules/WeatherHarvest/index.php find a blank line around line 18 and insert the line:
PHP:
$modheader .= "<script type=\"text/javascript\" src=\"modules/WeatherHarvest/utils/animateImages.js\"></script>";
Notice that this is not exactly the same line as you removed, you are replacing the echo with $modheader .= so that Dragonfly can output the script declaration at the appropriate time with the rest of the scripts, rather than immediately as before.
layingback's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
2.6.32 / 1.3.39 - 2.2.12 / 4.4.7 - 5.1.37 / 5.3.0 / 9.2.1

layingback- Site Admin

- Post: 1119
- Sejak: Mar 18, 2006
Anda tidak dapat mengirim topik
Anda tidak dapat menjawab topik
Anda tidak dapat mengubah pesan Anda
Anda tidak dapat menghapus pesan Anda
Anda tidak dapat mengikuti polling
You cannot attach files in this forum
You can download files in this forum
Anda tidak dapat menjawab topik
Anda tidak dapat mengubah pesan Anda
Anda tidak dapat menghapus pesan Anda
Anda tidak dapat mengikuti polling
You cannot attach files in this forum
You can download files in this forum
Zona waktu menurut GMT











