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
 
LinkBack Thread Tools Rate Thread Display Modes
Old November 11th, 2008, 05:10 PM   #1 (permalink)
Ultimate Member
 
Join Date: Jun 2007
Location: Texas
Posts: 1,362
Send a message via Yahoo to skidpics
Long file name keywords

If I have a filename such as: ENDANGERED_PEREGRINE_FALCON_Falco_peregrinus_WITH_PARTRIDGE_PREY_EUROPE

How can I get it to make the keywords without the _ attaching the words, so instead, make the entire filename split the words to:

ENDANGERED PEREGRINE FALCON Falco peregrinus WITH PARTRIDGE PREY EUROPE
skidpics is offline   Reply With Quote
Old November 11th, 2008, 05:20 PM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 68,069
well you would need to actually enter the keywords. We only use a title on showphoto if keywords are empty.
__________________
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 11th, 2008, 05:23 PM   #3 (permalink)
Ultimate Member
 
Join Date: Jun 2007
Location: Texas
Posts: 1,362
Send a message via Yahoo to skidpics
correct, but can we not put a preg_replace or something to get rid of the underscore?

There should be an admin setting for banned characters, which would remove such characters and replace them with a space.

Either way, can that not be done before the keyword based on the filename is generated?
skidpics is offline   Reply With Quote
Old November 11th, 2008, 05:55 PM   #4 (permalink)
Ultimate Member
 
Join Date: Jun 2007
Location: Texas
Posts: 1,362
Send a message via Yahoo to skidpics
After digging around, I found the answer in one of my previous posts concerning something else..however, the syntax express was wrong..

Find in showphoto.php:

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("/[^0-9A-Za-z]/", " ", $title);


this will strip out any symbol (not a number or a letter), and convert it to a space..

Now, how do we get the filename to be added to the keywords one may enter as additional to the keyword listing? I need some sort of function to add the $title to the $keywords to equal the new $keys?
skidpics is offline   Reply With Quote
Old November 11th, 2008, 08:04 PM   #5 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 68,069
On showphoto as posted the title is used if there are no keywords otherwise you need to enter keywords on upload.

You can use something similar on image-inc.php has for keywords to be a filename?

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
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
Need help - long file names screwing up formatting of recent images table jdougher Photopost Pro Bug Reports 1 February 5th, 2008 08:21 PM
How Long??? elisak General Discussion 4 November 30th, 2007 01:03 PM
Keywords get lost on multiple file upload cellarius Photopost Pro Bug Reports 14 February 20th, 2007 08:23 AM
How long imported_Nameless Before You Buy 3 August 12th, 2005 05:03 PM
How long nymyth General Discussion 2 August 3rd, 2005 08:12 AM


All times are GMT -5. The time now is 06:34 AM.

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