View Full Version : Help wanted
Frida
01-04-2009, 08:26 AM
I have been trying to validate my web page but I can't get the indexpage right. http://validator.w3.org/check?uri=http%3A%2F%2Fwww.pixelbloggen.se%2F&charset=%28detect+automatically%29&doctype=Inline&group=0&user-agent=W3C_Validator%2F1.606
If I do the changes that are suggested the comment page only shows the last comments page on every image. Not the comments that are for the image shown. Does anyone have a tip on how to solve this.
//Frida
dhdesign
01-04-2009, 10:05 AM
The validator is complaining about the ampersand (&) in the URL - the rest of the errors are a result of that.
You are using the Switchy template, correct? The error is coming from the javascript in the head section of image_template.html.
The corresponding line of code (line 36) in /switchy/image_template.html is:
window.open("index.php?popup=comment&showimage=<IMAGE_ID>", "Comments", "width=480, height=540, scrollbars=yes, resizable=yes");
The ampersand in the URL is in the code as &, which is incorrect. You need to change that line of code to read:
window.open("index.php?popup=comment&showimage=<IMAGE_ID>", "Comments", "width=480, height=540, scrollbars=yes, resizable=yes");
What file did you edit that caused the comments to disappear?
Frida
01-04-2009, 12:54 PM
I already tested that,
when I did that on every image when i clicked View All i came to the latest images comment, didn't matter if i were on image ID 41.
http://pixelbloggen.se/index.php?popup=comment&showimage=41
http://pixelbloggen.se/index.php?showimage=41
Although on the images page (the link above) it only shows "View All (3)"
And those comments is from the last image.
dhdesign
01-04-2009, 12:58 PM
You'll need to contact the theme author (Kevin Crafts) to see if he can come up with a fix for this.
kevincrafts
01-04-2009, 04:50 PM
I have fixed this issue and you can download it here: http://www.pixelpost.org/extend/?s=switchy&sort=updated&req=Any
It is validating on my install: http://validator.w3.org/check?uri=http%3A%2F%2Fpixelpost.kevincrafts.com%2 F%3Fnewtemplate%3Dswitchy&charset=%28detect+automatically%29&doctype=Inline&group=0&user-agent=W3C_Validator%2F1.606
Frida
01-04-2009, 07:25 PM
Can you please tell me what and where the changes are so I don't have to modify everything once again. I tried to upload only the image_template.html it was validating then but that led the page-by.page archive to stop working.
Frida
01-04-2009, 07:45 PM
I'm going blind here I had forgotten to change the URL to the browse page.
Thank for your help!
vBulletin® v3.7.3, Copyright ©2000-2013, Jelsoft Enterprises Ltd.