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 August 12th, 2007, 10:19 AM   #1 (permalink)
Member
Verified Customer
 
Join Date: Mar 2006
Posts: 78
Need to confirm how underscores work

Chuck,

On occasion, there will be a photo title name that represents a set of words and underscores put together. It becomes an issue when it's respective thumbnail is displayed elsewhere, because it forces columns to be unusually wide. When I see it happen, I manually edit the title and take out the underscores.

After reviewing some other threads on the issue, I wanted to confirm some things before I started messing with this:

function fixfilenames( $realname )
  • Is $realname the same thing as the photo title?
  • Does changing $realname affect the actual filename on the server?
  • I prefer to keep underscores in the actual filenames on the server, but not in the title displayed in PhotoPost, will this be an issue?
  • There were some older posts related to searches, what is the best way to remove underscores without making searches less effective?

My thought was to add the code in bold:
Code:
Content visible to verified customers only.
My apologies, just realized I put this in the wrong forum.

Last edited by motowebmaster; August 12th, 2007 at 10:36 AM.
motowebmaster is offline   Reply With Quote
Old August 12th, 2007, 12:10 PM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 68,069
You can not change the $realname variable that is the file

If your trying to change title your in the wrong place. You need to look in image-inc.php as thats where we insert the photo to the database and you would come up with whatever code hack you want to do whatever you wish to the title

GOOD LUCK WITH YOUR CODE HACKING
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old August 12th, 2007, 01:02 PM   #3 (permalink)
Member
Verified Customer
 
Join Date: Mar 2006
Posts: 78
Thanks for the feedback Chuck, it did look like I was in the wrong place.

I found the place in image-inc.php that created the title if the user didn't enter it, and added an additional line:

Code:
Content visible to verified customers only.
Which in turn makes me wonder if it would be better to require a title to be entered by the user; but maybe not.

Thanks Again.
motowebmaster is offline   Reply With Quote
Old August 12th, 2007, 02:16 PM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 68,069
Yeah you could also add code in there to shorten the title also
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old July 3rd, 2008, 05:49 PM   #5 (permalink)
Member
Verified Customer
 
Join Date: Mar 2006
Posts: 78
Chuck,

This is an old issue, but would it be possible to incorporate this into future versions of PhotoPost permanently?

The problem with allowing underscores to copy over (when used in a filename) is that it creates unusually long titles and less-useful keywords. Replacing the underscore with a space results in a multi-word photo title that has a greater chance of being useful.

I'm having to manually re-edit this particular file with each upgrade. It's simple to do, but I didn't remember this time around after the recent upgrade and have had to do some manual photo edits.

Thanks,
motowebmaster is offline   Reply With Quote
Old July 3rd, 2008, 10:42 PM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 68,069
You can place suggestions in the suggestions forum for Michael. I dont know how many people would like underscores in their title which is why this has never been added.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old July 4th, 2008, 05:06 PM   #7 (permalink)
Member
Verified Customer
 
Join Date: Mar 2006
Posts: 78
My apologies if I mis-stated, but the intent is to remove underscores and replace them with spaces.
motowebmaster is offline   Reply With Quote
Old July 4th, 2008, 09:59 PM   #8 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 68,069
Code:
Content visible to verified customers only.
That is what I show you want right
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old July 5th, 2008, 10:40 AM   #9 (permalink)
Member
Verified Customer
 
Join Date: Mar 2006
Posts: 78
Yes, that is exactly what I manually edit into the code/file.

Thanks,
motowebmaster is offline   Reply With Quote
Old July 5th, 2008, 10:51 AM   #10 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 68,069
yeah figured so
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old July 5th, 2008, 08:58 PM   #11 (permalink)
Ultimate Member
 
Join Date: Jun 2007
Location: Texas
Posts: 1,362
Send a message via Yahoo to skidpics
I suppose a suggestion could be published with this issue.

Coppermine has an admin function: "Characters forbidden in filenames" then you enter the characters not wanting in the filenames. By default, this is: $/\\:*?"'<>|` &

and my understanding is that is takes those out upon upload, or upon display - but either way, you can refuse anything you want with it..
skidpics is offline   Reply With Quote
Old April 4th, 2010, 06:07 PM   #12 (permalink)
Member
Verified Customer
 
Join Date: Mar 2006
Posts: 78
Chuck,

My apologies for reviving an old thread, but had to manually apply this fix to the latest version of PP-Pro when a user mentioned that their uploaded filenames were retaining the underscores.

Is there a way to make this permanent?
motowebmaster is offline   Reply With Quote
Old April 4th, 2010, 06:39 PM   #13 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 68,069
Our files are encoded the way they are suppose to be. This thread is really a user want or code mod and is not something that would be employeed in the product.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   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
NOREPLY Confirm Registration email rsctokyo Photopost Pro How Do I...? 4 January 4th, 2007 09:26 PM
Turn spaces into underscores Xil Ze How Do I? - vBulletin 3.5.X 4 June 25th, 2006 06:29 PM
adm-confirm missing(FIXED) iloco Photopost Pro Bug Reports 2 October 26th, 2005 09:06 PM


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

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