 | |  | | | Photopost Pro How Do I...? Wondering how to do things in PhotoPost? |
October 7th, 2008, 11:41 AM
|
#1 (permalink)
| | Member Verified Customer
Join Date: Dec 2004
Posts: 172
| Photo / Media naming ( eliminating the dashes in filenames)
I have always wondered why uploaded files get renamed with photopost to include dashes where there are spaces. Is there way I can get eliminate this and at the same time get rid of dashes in my filenames / titles/photo names? This makes searching a breeze because you will always find a file that you are looking for without having to know if you need the dashes or not> For instance i want my lies to be name sin the format of p square-get squared
instead of p_square-_get_squared.
Is there a database script that I can run to fix pre-existing files? How can I get disable this completely in photopost?
|
| |
October 7th, 2008, 07:05 PM
|
#2 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 68,069
|
There is no script for prior files.
You can attempt to change your fixfilenames function in pp-inc.php but the files are named like that to ensure compatibility with all browsers as some browsers dont like filenames with spaces. The code you can see below the lines that do the replacement but modify at your own risk as this is an unsupported action. Code: Content visible to verified customers only.
Last edited by Chuck S; November 16th, 2008 at 01:56 PM.
|
| |
October 7th, 2008, 07:20 PM
|
#3 (permalink)
| | Member Verified Customer
Join Date: Dec 2004
Posts: 172
|
So if I remove that piece of code, I should have the real file names be displayed when uploading? Thanks for your guidance.
|
| |
October 7th, 2008, 07:25 PM
|
#4 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 68,069
|
If you remove those last two lines noted you might but as noted this is not something we support or assist with.
|
| |
October 7th, 2008, 07:32 PM
|
#5 (permalink)
| | Member Verified Customer
Join Date: Dec 2004
Posts: 172
|
I appreciate...thanks!
|
| |
October 14th, 2008, 10:44 AM
|
#6 (permalink)
| | Member Verified Customer
Join Date: Dec 2004
Posts: 172
|
Hey chuck...or anyone for that matter...
there is now way to write a database query that will look at a certain category (cat), then go to the row title row (title) and replace all underscores that exist in it with a space? Im clueless when it come to databases but in my head i really think it possible. Reason why I am really trying to get rid of the underscores in filenames is that even Google would not display a search result of a certain media or photo unless you also include the annoying underscore character!! Your assistance will be highly appreciated!!
|
| |
October 14th, 2008, 06:51 PM
|
#7 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 68,069
|
No sorry no such script exists and you would need to write up some such script to do functionality that does not exist in the script.
|
| |
November 15th, 2008, 01:07 PM
|
#8 (permalink)
| | Member Verified Customer
Join Date: Dec 2004
Posts: 172
|
Chuck..i tried this edit on the file but there is no change. The file names still show up with dashes. Any further direction on this please?
|
| |
November 15th, 2008, 01:21 PM
|
#9 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 68,069
|
If you remove the two replace lines in the function above any future files will not have underscores but a space. Do realize that some browsers have issues with files and spaces which is why we do it in the first place.
|
| |
November 15th, 2008, 01:21 PM
|
#10 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 68,069
|
Also this will not strip out underscores in files people upload.
|
| |
November 15th, 2008, 07:47 PM
|
#11 (permalink)
| | Ultimate Member
Join Date: Jun 2007 Location: Texas
Posts: 1,362
|
Might check a thread I had in discussion also.. Long file name keywords |
| |
November 15th, 2008, 09:34 PM
|
#12 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 68,069
|
yeah all depends on what he is trying to do but its not going to change files already uploaded.
|
| |
November 16th, 2008, 11:08 AM
|
#13 (permalink)
| | Member Verified Customer
Join Date: Dec 2004
Posts: 172
|
Thats exactly what I was trying to do ..just remove the dashes for spaces for any more files that I uploaded but that did not happen when I got rid of the underscores. I have tested it with Firefox, IE and Opera and haven't found an issue with it at all. What browser or versions are incompatible with files without the underscores? Im looking at filenames and not keywords...Thanks
|
| |
November 16th, 2008, 01:58 PM
|
#14 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 68,069
|
My suggestion is not going to get rid of an underscore if its present in a filename. What my suggestion of removing those two lines will do is if you upload a file with spaces our program will not replace the space with an underscore like noted in the default program.
|
| |
November 18th, 2008, 11:12 AM
|
#15 (permalink)
| | Member Verified Customer
Join Date: Dec 2004
Posts: 172
|
chuck that's exactly what I am trying to accomplish. The files that I am uploading do not have the underscores, they have spaces but PP adds the underscores even with the lines of code removed.
|
| |
November 18th, 2008, 11:25 AM
|
#16 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 68,069
|
Well your fixfilenames function should look like this Code: Content visible to verified customers only.
|
| |
November 18th, 2008, 04:30 PM
|
#17 (permalink)
| | Member Verified Customer
Join Date: Dec 2004
Posts: 172
|
That seemed to work. the line that was different that I had to remove ( not initially included in your first instruction ) was as below: Code: Content visible to verified customers only.
.
So i commented it out and it works just fine now on one file that I have uploaded. thanks Chuck
|
| |
November 18th, 2008, 04:59 PM
|
#18 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 68,069
|
have a good evening
|
| |
June 26th, 2011, 09:40 AM
|
#19 (permalink)
| | Member Verified Customer
Join Date: Dec 2004
Posts: 172
|
HI Chuck,
why does removing the dashes where the multimedia file name has spaces break the multimedia thumbnail generation? In other words, if this modification i implemented ( where i have opted to do away with dashes), multimedia thumbnails are not generated.
|
| |
June 26th, 2011, 10:41 AM
|
#20 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 68,069
|
well removing dashes and allowing spaces in filenames will say for instance break images in IE browser which is why our filename renaming works like it does. I suppose ffmpeg has similar constraints in there program but I really can not answer as I did not write ffmpeg and am not part of that programs development team.
I know using our program as it is written unhacked will work.
|
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -5. The time now is 08:04 AM. | |