PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > PhotoPost Pro Support Forums > Photopost Pro How Do I...?

Photopost Pro How Do I...? Wondering how to do things in PhotoPost?

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old 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?
kisii is offline   Reply With Quote
Old October 7th, 2008, 07:05 PM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
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.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.

Last edited by Chuck S; November 16th, 2008 at 01:56 PM.
Chuck S is offline   Reply With Quote
Old 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.
kisii is offline   Reply With Quote
Old October 7th, 2008, 07:25 PM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
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.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old October 7th, 2008, 07:32 PM   #5 (permalink)
Member
Verified Customer
 
Join Date: Dec 2004
Posts: 172
I appreciate...thanks!
kisii is offline   Reply With Quote
Old 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!!
kisii is offline   Reply With Quote
Old October 14th, 2008, 06:51 PM   #7 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
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.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old 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?
kisii is offline   Reply With Quote
Old November 15th, 2008, 01:21 PM   #9 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
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.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old November 15th, 2008, 01:21 PM   #10 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 68,069
Also this will not strip out underscores in files people upload.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old November 15th, 2008, 07:47 PM   #11 (permalink)
Ultimate Member
 
Join Date: Jun 2007
Location: Texas
Posts: 1,362
Send a message via Yahoo to skidpics
Might check a thread I had in discussion also..

Long file name keywords
skidpics is offline   Reply With Quote
Old November 15th, 2008, 09:34 PM   #12 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
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.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old 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
kisii is offline   Reply With Quote
Old November 16th, 2008, 01:58 PM   #14 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
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.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old 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.
kisii is offline   Reply With Quote
Old November 18th, 2008, 11:25 AM   #16 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
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.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old 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
kisii is offline   Reply With Quote
Old November 18th, 2008, 04:59 PM   #18 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 68,069
have a good evening
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old 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.
kisii is offline   Reply With Quote
Old June 26th, 2011, 10:41 AM   #20 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
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.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
File naming... kevnj vBGallery Suggestions 0 August 29th, 2006 08:42 PM
problem with folder naming tugbrian Classifieds How do I...? 1 August 18th, 2006 11:59 AM
[PP] Upload media: How to change media file? mtha Photopost Pro How Do I...? 6 November 22nd, 2005 08:21 PM
Eliminating gaps on index page Fortissimo Photopost Pro How Do I...? 2 October 14th, 2005 02:52 PM


All times are GMT -5. The time now is 08:04 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0