Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > DEVELOPMENT > Template design and Front-End Code

Post Reply
 
Thread Tools
  #1  
Old 01-25-2009, 11:24 AM
effraie Offline
forum loafer
 
Join Date: Jan 2008
Posts: 14
Angry 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 ?
Reply With Quote
  #2  
Old 01-25-2009, 11:42 AM
effraie Offline
forum loafer
 
Join Date: Jan 2008
Posts: 14
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 ?
Reply With Quote
  #3  
Old 01-25-2009, 01:12 PM
effraie Offline
forum loafer
 
Join Date: Jan 2008
Posts: 14
update : no, it's not a problem with blank space in name.. the problem is still present...
Reply With Quote
  #4  
Old 01-27-2009, 11:15 PM
effraie Offline
forum loafer
 
Join Date: Jan 2008
Posts: 14
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...
Reply With Quote
  #5  
Old 01-28-2009, 09:31 AM
sentinel's Avatar
sentinel Offline
pixelpost guru
 
Join Date: Sep 2005
Posts: 130
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.
__________________
my pp
good day good light
\martin_d
Reply With Quote
  #6  
Old 01-29-2009, 08:47 AM
effraie Offline
forum loafer
 
Join Date: Jan 2008
Posts: 14
Quote:
Originally Posted by sentinel View Post
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 '
Reply With Quote
  #7  
Old 01-29-2009, 10:28 AM
sentinel's Avatar
sentinel Offline
pixelpost guru
 
Join Date: Sep 2005
Posts: 130
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?
__________________
my pp
good day good light
\martin_d
Reply With Quote
  #8  
Old 01-31-2009, 10:44 AM
effraie Offline
forum loafer
 
Join Date: Jan 2008
Posts: 14
W00t ! your 1° solution work
Reply With Quote
  #9  
Old 03-15-2009, 06:06 AM
pengrus Offline
pp veteran
 
Join Date: Jul 2005
Posts: 56
Thanks for offering a solution here. Is there a perfect fix for this problem?

Many thanks!
__________________
http://www.pengs.net/photo/
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 02:35 PM.

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