My local config file contains
<?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
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
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
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
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
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
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
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
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
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
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
@nomi: as said flop25 in your topic, this kind of tool is NOT reliable
Offline
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