Pixelpost Forum

Pixelpost Forum (http://www.pixelpost.org/forum/index.php)
-   Template design and Front-End Code (http://www.pixelpost.org/forum/forumdisplay.php?f=20)
-   -   strange problem with "the world in 35mm" (http://www.pixelpost.org/forum/showthread.php?t=10124)

effraie 01-25-2009 11:24 AM

strange problem with "the world in 35mm"
 
The world in 35mm is a fabulous template, and i want to use it on my website.
http://www.pixelpost.org/extend/temp...world-in-35mm/

i tried it, with correct rewrites rules and so on, and it work well... for a part.
You should look to my website : http://pics.effraie.org/
If you clic on the picture, the previous one will be loaded, as expected, and then the next, and so on.
But when you arrive to http://pics.effraie.org/p/327 ... well, no image will load!
It work with an other template, and i double checked the image (permissions, size...)
I can't figure where is the problem.

can somebody please help me ?

effraie 01-25-2009 11:42 AM

well; i think i found the problem.. there a blank space in the name of the image...
i'll take care for the next pictures, but would somebody have a trick to get that pictures (and probably a couple other too) available back ?

effraie 01-25-2009 01:12 PM

update : no, it's not a problem with blank space in name.. the problem is still present...

effraie 01-27-2009 11:15 PM

i found it... the pictures with an ' (like rue d'Auberbilliers") in title won't load... don't know why, don't no how to fix it, but if somebody has a trick...

sentinel 01-28-2009 09:31 AM

as far as i can see pixelpost complains about a non-existent posting.
this message has nothing todo with the template but with the backend.

hmm one question.. is there _really_ i posting with id=327?
(might sound stupid but please check in your admin panel if there's
a picture with "#327" above the title)

because currently image #328 references to #326 and vice versa.
so by using the prev/next buttons i'll never end up with posting #327.

if you ever posted an image with id=327 and deleted the posting afterwards,
pixelpost will continue with id=328.

effraie 01-29-2009 08:47 AM

Quote:

Originally Posted by sentinel (Post 64438)
as far as i can see pixelpost complains about a non-existent posting.
this message has nothing todo with the template but with the backend.

hmm one question.. is there _really_ i posting with id=327?
(might sound stupid but please check in your admin panel if there's
a picture with "#327" above the title)

Before to found the __'__ problem, i deleted some of the picture wich can't load, for a better navigation experience for the users. so, there is no more 327 picture.
But this was really a template issue : try this : http://pics.effraie.org/p/39
(the 39 post is so deep in archive, it would not make any problem to keep it to show the problem)
the title is : "t'es pas sérieux?", in wich there is a '
That page work with any other template i tried, and work too if i change the title, without '

sentinel 01-29-2009 10:28 AM

yep i see sorry. i just had a look at #327 and was mislead by the error message.

i see two ways to go.

modify the skin
the problem is located in the javascript code where apostrophes
kill the following function in image_template.html
Code:


 19 window.onload = function() {
 20      // update title to include image title
 21      document.title = '<IMAGE_TITLE> | ' + document.title;

replace the apostrophes with quotation marks in line 21
Code:

21      document.title = "<IMAGE_TITLE> | " + document.title;
but this will kill the function again if you ever use quotation marks in your title.

modify the code

and i think this is _not_ the way to go alone to solve the problem.
it's more a general question to the devs

is there reason for the ENT_NOQUOTES option in index.php?
PHP Code:

474  $image_title htmlspecialchars($image_title,ENT_NOQUOTES); 

am i'm missing something? but ENT_QUOTES makes more sense to
me than ENT_NOQUOTES. (as far as i can see, 1.5 used ENT_QUOTES).
especially as $image_title is also used to replace the IMAGE_TITLE tag.

for the images notes you offer IMAGE_NOTES and
IMAGE_NOTES_CLEAN tag (where you could use ENT_QUOTES in line 792 too).

maybe it's possible to offer an according IMAGE_TITLE_CLEAN?

effraie 01-31-2009 10:44 AM

W00t ! your 1° solution work

pengrus 03-15-2009 06:06 AM

Thanks for offering a solution here. Is there a perfect fix for this problem?

Many thanks!


All times are GMT. The time now is 07:31 PM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.