View Full Version : theworldin35mm| XML parsing error in Firefox
Kristian
05-24-2009, 11:51 AM
Hello
This is how it looks in Firefox 3.0.10
http://kindanatural.com/ScreenShot006.png
Furthermore I'm having problems with the template using pictures that are 900px wide. The whole page skews?
robackja
05-25-2009, 03:44 PM
First, the template is designed around maximum width of 720px. If you want to support larger images edit the CSS file. Look for 720px (i think it is in there twice, and increase it)
Second, you are serving XHTML, so "<?xml version="1.0" encoding="UTF-8"?>\n" is not valid. it should be "<?xml version="1.0" encoding="UTF-8"?>" with a newline after it. If you are trying to do the XHTML hack on index.php, just remove it, its not 100% necessary, you need to have a better understanding of XHTML/PHP to do that hack.
Kristian
05-25-2009, 06:07 PM
You're right. I need a better understanding of all of this. I'm not trying to do the XHTML hack on index.php - I don't know what it is. Perhaps it's this?
// Fix proposed by tomyeah on the forum
if (!isset($_GET['x']) || $_GET['x'] != 'save_comment') {
header('Vary: Accept');
if (stristr($_SERVER['HTTP_ACCEPT'], 'application/xhtml+xml') === FALSE) {
header('Content-Type: text/html; charset=utf-8');
} else {
header('Content-Type: application/xhtml+xml; charset=utf-8');
echo('<?xml version="1.0" encoding="UTF-8"?>'."\\n");
}
}
It was there already from when I installed the current version of PP?
I got hold on the CSS stuff - thank you very much, and thanks for the most clean cool theme available!
robackja
05-25-2009, 06:15 PM
You're right. I need a better understanding of all of this. I'm not trying to do the XHTML hack on index.php - I don't know what it is. Perhaps it's this?
// Fix proposed by tomyeah on the forum
if (!isset($_GET['x']) || $_GET['x'] != 'save_comment') {
header('Vary: Accept');
if (stristr($_SERVER['HTTP_ACCEPT'], 'application/xhtml+xml') === FALSE) {
header('Content-Type: text/html; charset=utf-8');
} else {
header('Content-Type: application/xhtml+xml; charset=utf-8');
echo('<?xml version="1.0" encoding="UTF-8"?>'."\\n");
}
}
That is it. You can either remove it, replace it with the pixelpost default
// Fix proposed by tomyeah on the forum
header('Content-Type: text/html; charset=utf-8');
or use what I use (which is for strict XHTML1.1 standards)
if (empty($_GET['x']) || ($_GET['x'] != "save_comment" && $_GET['x'] != "rss" && $_GET['x'] != "atom")) {
header('Vary: Accept');
if (stristr($_SERVER['HTTP_ACCEPT'], 'application/xhtml+xml') === false)
{
header('Content-Type: text/html; charset=utf-8');
}
else {
header('Content-Type: application/xhtml+xml; charset=utf-8');
echo('<?xml version="1.0" encoding="UTF-8"?>'."\n");
}
}
The safest is to use the Pixelpost default, as the XHTML stuff might break other templates.
Kristian
05-25-2009, 06:22 PM
Ahh sweet. I think I'm starting to understand how the index.php is a "merged" file combining pp and the theme. :)
Thank you very much! Now I can concentrate on doing the CSS stuff.
Your theme combined with the export from Lightroom plugin makes photoblogging much easier. Thumbs up...
robackja
05-25-2009, 06:24 PM
Your welcome. Have fun modding the CSS to your liking. I look forward to seeing the changes you make to the default theme.
Kristian
05-26-2009, 08:42 AM
Your welcome. Have fun modding the CSS to your liking. I look forward to seeing the changes you make to the default theme.
Thanks - Now it's up and running. I only need to edit the about page. I plan to do som modifications (even though it's hard, cause your theme is just the way i want to present my photographs). :)
Things i plan on change stylingwise:
The pictureframes - a bit more simple and with more bottom padding to make it look like a paspartou or a traditional pictureframe.
Simplify the comment box. Perhaps ditch the technichal stuff - does anyone use it anyway?
I would like to modify the menu too, but I don't know how yet.
vBulletin® v3.7.3, Copyright ©2000-2013, Jelsoft Enterprises Ltd.