Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > SUPPORT / INFORMATION > Pixelpost Help

Post Reply
 
Thread Tools
  #1  
Old 05-24-2009, 11:51 AM
Kristian Offline
forum loafer
 
Join Date: May 2009
Posts: 10
theworldin35mm| XML parsing error in Firefox

Hello

This is how it looks in Firefox 3.0.10



Furthermore I'm having problems with the template using pictures that are 900px wide. The whole page skews?
Reply With Quote
  #2  
Old 05-25-2009, 03:44 PM
robackja's Avatar
robackja Offline
pp veteran
 
Join Date: Sep 2008
Location: Tucson, Arizona
Posts: 50
  1. 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)
  2. Second, you are serving XHTML, so "&lt;?xml version="1.0" encoding="UTF-8"?&gt;\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.
__________________
The World in 35mm | joeroback.com | roback.cc
Reply With Quote
  #3  
Old 05-25-2009, 06:07 PM
Kristian Offline
forum loafer
 
Join Date: May 2009
Posts: 10
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('&lt;?xml version="1.0" encoding="UTF-8"?&gt;'."\\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!
Reply With Quote
  #4  
Old 05-25-2009, 06:15 PM
robackja's Avatar
robackja Offline
pp veteran
 
Join Date: Sep 2008
Location: Tucson, Arizona
Posts: 50
Quote:
Originally Posted by Kristian View Post
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('&lt;?xml version="1.0" encoding="UTF-8"?&gt;'."\\n");
}
}
That is it. You can either remove it, replace it with the pixelpost default
PHP Code:
// 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)

PHP Code:
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.
__________________
The World in 35mm | joeroback.com | roback.cc
Reply With Quote
  #5  
Old 05-25-2009, 06:22 PM
Kristian Offline
forum loafer
 
Join Date: May 2009
Posts: 10
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...
Reply With Quote
  #6  
Old 05-25-2009, 06:24 PM
robackja's Avatar
robackja Offline
pp veteran
 
Join Date: Sep 2008
Location: Tucson, Arizona
Posts: 50
Your welcome. Have fun modding the CSS to your liking. I look forward to seeing the changes you make to the default theme.
__________________
The World in 35mm | joeroback.com | roback.cc
Reply With Quote
  #7  
Old 05-26-2009, 08:42 AM
Kristian Offline
forum loafer
 
Join Date: May 2009
Posts: 10
Quote:
Originally Posted by robackja View Post
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.
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 03:13 AM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. | Style Design: d3 designs