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 > General Forums > General Discussion

General Discussion General use discussion forum for PhotoPost products.

Reply
 
Thread Tools Rate Thread Display Modes
Old March 9th, 2008, 06:29 PM   #1
skidpics
Ultimate Member
 
Join Date: Jun 2007
Posts: 1,340
Characters forbidden in filenames function?

What can be done to replace characters such as $/\\:*?"'<>|` &-

to spaces when the file gets uploaded? A file called Bean_Millennium_Park_Chicago_Illinois uploaded would turn to "Bean Millennium Park Chicago Illinois" and would work well for keywords also..

Perhaps adding an admin function called:

Characters forbidden in filenames: and a default set of characters can be entered here?
skidpics is offline   Reply With Quote
Old March 9th, 2008, 06:36 PM   #2
Chuck S
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 74,494
actually spaces are converted to _ so the file links work in all browsers as some browsers have problems with spaces in filenames and alot of irregular characters are prevented and replaced
__________________
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 March 9th, 2008, 10:15 PM   #3
skidpics
Ultimate Member
 
Join Date: Jun 2007
Posts: 1,340
How about the display file name, not the actual link name then?

So that the display name of Bean_Millennium_Park_Chicago_Illinois will not have the underscore and the keyword will not be a complete term of Bean_Millennium_Park_Chicago_Illinois?

perhaps this is a keyword issue instead - how about the keyword script to remove the characters for better keywording instead of a long term based on the filename alone. Bean Millennium Park Chicago Illinois searches way better than Bean_Millennium_Park_Chicago_Illinois
skidpics is offline   Reply With Quote
Old March 9th, 2008, 10:31 PM   #4
Chuck S
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 74,494
well users can enter keywords for a photo when they upload. Your free to modify your code to suit your needs.
__________________
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 March 10th, 2008, 06:19 AM   #5
skidpics
Ultimate Member
 
Join Date: Jun 2007
Posts: 1,340
which file containts the keyword function?
skidpics is offline   Reply With Quote
Old March 10th, 2008, 07:48 AM   #6
Chuck S
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 74,494
What do you mean by keyword function there is n keyword function

You enter keywords on upload in uploadphoto.
__________________
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 March 10th, 2008, 01:21 PM   #7
skidpics
Ultimate Member
 
Join Date: Jun 2007
Posts: 1,340
Sorry, I should have been clearer. Which file takes the filename and converts it to a keyword if no keywords are entered?
skidpics is offline   Reply With Quote
Old March 10th, 2008, 01:41 PM   #8
Chuck S
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 74,494
showphoto.php
__________________
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 March 11th, 2008, 09:00 AM   #9
skidpics
Ultimate Member
 
Join Date: Jun 2007
Posts: 1,340
by the looks of it, the keywords in the db are actually NOT the title of the images, rather, it is using the title of the image IF there are no keywords.. correct?

Find:

if ( empty($keywords) )



Add above:
// preg_replace below strip out any punctuation and spaces from title, replacing such characters with spaces for better keywords
$title = preg_replace("/[^a-zA-Z0-9s.]/", " ", $title);


this will replace the 'forbidden' characters in the title and keywords (if title used) to spaces for better keyword searching.
skidpics is offline   Reply With Quote
Old March 11th, 2008, 09:23 AM   #10
Chuck S
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 74,494
yes we use the title there are no keywords and we dont check anything to do with a title as anyone can type what they want as the title
__________________
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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Filenames and polish language LoRdGd Before You Buy 1 January 14th, 2008 01:25 PM


All times are GMT -5. The time now is 12:16 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.