|
#1
|
|||
|
|||
|
Validate please!
I am very glad that so many new templates or modified templates are created and presented here, it shows the appreciation that is given to PixelPost
but I have one great whish: before posting a new template, validate it please!!! I often described here already how to do this. If you have no validator-software installed, use an online validator: 1) validate html: http://validator.w3.org/ 2) validate css: http://jigsaw.w3.org/css-validator/validator-uri.html or use Firefox, install the web-developer-extension, and validate using via TOOLS / validate HTML or TOOLS / validate CSS and a third plea: please comment what you are doing in the template so users can identify what's going on.. please do it! It will reduce the problems with displaying the page in different browsers absolutely, it will be of great value, your site will get better ranking, will load faster and and and please, at least: do it for me! I spend a lot of time for PixelPost, trying to help here in the forum, suggesting solutions etc., but I want to be more productive :cry: not repeating the same everytime :cry: |
|
#2
|
||||
|
||||
|
i'm going to make this a sticky. if only to make more users aware of validation - i don't think it's something we should concern ourselves with too much as developers as long as we churn out valid templates.
__________________
Affordable Website Design in North Wales |
|
#3
|
|||
|
|||
|
Ah, but some errors are caused by the developers. See my website: http://photoblog.distantwisdom.net
Currently newlines in the text of an entry is converted to <br>, not <br /> which breaks xhtml. Also I found this in the code: Code:
$tpl = str_replace("<EXIF_ISO>",$iso,$tpl);
if($iso != "") {
$iso = "$lang_iso $iso";
$tpl = str_replace("<LANG_ISO>",$iso,$tpl);
}
These would appear to be all the problems with my page validating, and they are all produced by the code, not the template. EDIT: I'm running Pixelpost 1.4.1. |
|
#4
|
|||
|
|||
|
Riken,
please do not mix apples with pears! And do not start to change <PIXELPOST TAGS> to <PIXELPOST TAGS/>!!!!! these Tags are changed by the real content, you did not understand the functionality of the template tags template tags will never appear in a Pixelpost HTML-site, as they sit in the the template and will be replaced to real content! try to understand the meaning and then you will know the first argument, that we change something to <br> is not right as well, as this is a PHP function to convert newlines to breaks and if you have a better PHP-function for us you are gladly wellcome! :wink: |
|
#5
|
|||
|
|||
|
Quote:
The <LANG_ISO> tag is not replaced by the real content if the real content is an empty string (""). That's what the if statement is doing in the code snippet above. I'm assuming this is a bug in pixelpost 1.4.1. I'm an applications programmer so I know my way around source code. PHP isn't that complex. ![]() If you don't believe me, check out my photoblog. Check the source of the main page. The <LANG_ISO> tag is still on the page because pixelpost didn't replace it. As for the <br> thing, are you using nl2br? According to http://www.php.net/nl2br nl2br has been xhtml compliant since PHP 4.0.3. I found the line in pixelpost: Code:
$message = clean(nl2br($_POST['message'])); Code:
$message = nl2br(clean($_POST['message'])); Riken PS. I don't know how many of these problems have been fixed in the next version.
|
|
#6
|
|||
|
|||
|
Check the empty EXIF-data at http://www.bildgier.de/cvs141/index.php, please!
It will be in the next release Thanks for the hints, I will have a look for the <br>-feature today as well Connie |
|
#7
|
|||
|
|||
|
Quote:
Quote:
ops: My mistake. Sorry. |
|
#8
|
|||
|
|||
|
Riken,
I am just controlling this in the moment and I was disappointed, because I could not find any <br> in the comment output, only <br /> :cry: Quote:
by the way, your hint for empty EXIF was very helpful. as we run into the same situation with <SITE_CALENDAR> if the admin chooses the option "no calendar at all" for the image-template.html this is fixed and it is good! thanks again, Connie |
| Post Reply |
| Thread Tools | |
|
|