#1 2012-07-27 12:55:02

geoffschultz
Member
Marlborough, MA, USA
2012-07-01
159

File name not displaying in URL in some albums

My local config file contains

Code:

<?php
$conf['question_mark_in_urls'] = false;
$conf['php_extension_in_urls'] = false;
$conf['category_url_style'] = 'id-name';
$conf['picture_url_style'] = 'file';
?>

and for the majority of my albums/photos, the filename appears in the URL when viewing photos.  However, I just noted that for a series of albums I'm getting the file ID.  I can't figure out why.  I just upgraded to 2.4.3, which may not have anything to do with this.  Here's a sample URL.

http://www.geoffschultz.org/photos/inde … /favorites

Note that if you go to "Home" and then "Cruising" that all of the picture URLs contain filenames.  All of my filenames are unique.

-- Geoff

Last edited by geoffschultz (2012-07-27 13:37:28)

Offline

 

#2 2012-07-27 13:23:30

rvelices
Former Piwigo Team
2005-12-29
1960

Re: File name not displaying in URL in some albums

probably filenames are numbers or they start with a number followed by '-'.
because the picture page can always be acessed by id, we would not know if the url is an id or a filename ... as a consequence those pages will always have an 'id' url style

Offline

 

#3 2012-07-27 13:37:04

geoffschultz
Member
Marlborough, MA, USA
2012-07-01
159

Re: File name not displaying in URL in some albums

rvelices wrote:

probably filenames are numbers or they start with a number followed by '-'.
because the picture page can always be acessed by id, we would not know if the url is an id or a filename ... as a consequence those pages will always have an 'id' url style

All of my filenames are numbers (date-time actually).  This doesn't occur in the "Cruising" albums.

-- Geoff

[edit]  Just realized that my diving images are of the format date-time and my cruising images are date_time.  Arghhh!

Last edited by geoffschultz (2012-07-27 13:42:04)

Offline

 

#4 2012-07-27 13:55:01

geoffschultz
Member
Marlborough, MA, USA
2012-07-01
159

Re: File name not displaying in URL in some albums

I really wish that you would respect the picture_url_style in the config file instead of altering it based upon a guess. 

Filenames are important.  I need to modify my 404 handler to point to the new gallery.  I have many thumbnails in blogs  (and from external web sites) which are linked to images in galleries and I need/want to keep them consistent.  I'm not quite sure how I'll handle this.

-- Geoff

Offline

 

#5 2012-07-27 14:10:31

mistic100
Former Piwigo Team
Lyon (FR)
2008-09-27
3277

Re: File name not displaying in URL in some albums

as said ddtddt it's impossible
take this picture http://www.geoffschultz.org/photos/pict … /favorites
how could piwigo know that 20050223 is not the picture id ?

the choice of '-' as delimiter was made years ago, and, well, if we had choosen '_' instead or any other symbol, the problem would be the same

ps: very nice photos !!

Offline

 

#6 2012-07-27 14:14:44

mistic100
Former Piwigo Team
Lyon (FR)
2008-09-27
3277

Re: File name not displaying in URL in some albums

perhaps some modifications in the url parsing function can handle that
but if so it will not be available until Piwigo 2.5, it's a critical part

Offline

 

#7 2012-07-27 15:10:09

geoffschultz
Member
Marlborough, MA, USA
2012-07-01
159

Re: File name not displaying in URL in some albums

My response would be that if $conf['picture_url_style'] = 'file', then you should assume that the URL contains a filename. 

I "solved" my issue by renaming all of my diving photos to yyyymmdd_hhmmss and my 404 handler will replace "-" with "_".

-- Geoff

Offline

 

#8 2012-07-28 23:30:01

nomi00001
Member
2012-03-17
150

Re: File name not displaying in URL in some albums

hello geoffschultz,
you put this code in your local file editer after this did you check you links all your links are broken please see this or check your site in any broken links checker www.brokenlinkcheck.com and please find a solution for it thanks

<?php
$conf['question_mark_in_urls'] = false;
$conf['php_extension_in_urls'] = false;
$conf['category_url_style'] = 'id-name';
$conf['picture_url_style'] = 'file';
?>

Offline

 

#9 2012-07-28 23:58:37

geoffschultz
Member
Marlborough, MA, USA
2012-07-01
159

Re: File name not displaying in URL in some albums

I ran a full scan of my gallery, which consists of ~5500 images in 360 albums, and there were no (zero) errors.  All of my images have unique names.

-- Geoff

Offline

 

#10 2012-07-29 00:03:08

nomi00001
Member
2012-03-17
150

Re: File name not displaying in URL in some albums

but i scan you site in this link and found more than 400 broken links please check it again and also help me

nomi00001 wrote:

hello geoffschultz,
you put this code in your local file editer after this did you check you links all your links are broken please see this or check your site in any broken links checker www.brokenlinkcheck.com and please find a solution for it thanks

<?php
$conf['question_mark_in_urls'] = false;
$conf['php_extension_in_urls'] = false;
$conf['category_url_style'] = 'id-name';
$conf['picture_url_style'] = 'file';
?>

Offline

 

#11 2012-07-29 00:04:15

geoffschultz
Member
Marlborough, MA, USA
2012-07-01
159

Re: File name not displaying in URL in some albums

Note that I just tried www.brokenlinkcheck.com and it reported 338 errors in 11 pages.  However, I looked at the pages that it claimed were in error and I was able to paste them into my browser and go to the pages without any issues.  I think that brokenlinkcheck is broken.

I use a program called "deep trawl", which runs from your PC, and it does a great job of finding *real* errors.

-- Geoff

Last edited by geoffschultz (2012-07-29 00:05:49)

Offline

 

#12 2012-07-29 00:11:53

mistic100
Former Piwigo Team
Lyon (FR)
2008-09-27
3277

Re: File name not displaying in URL in some albums

@nomi: as said flop25 in your topic, this kind of tool is NOT reliable

Offline

 

#13 2012-07-29 00:47:31

nomi00001
Member
2012-03-17
150

Re: File name not displaying in URL in some albums

hello mistic100 did u agree with geoffschultz that the link i give is not working because when i put this code in local editer i get broken links and as geoffschultz said that when you go to that link its working fine i also check it its working fine but just go to google and search for broken links checker and put Your site in it and than see it dont get me wrong just try to solve the problem

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact