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 June 27th, 2011, 05:32 PM   #21 (permalink)
Member
Verified Customer
 
Join Date: Dec 2004
Posts: 172
Ok Chuck. Since the spaces wouldn't work anymore with FFMPEG, is there a database command that I can run in myphpadmin to restore the dashes so that i can rebuild the thumbnails?
kisii is offline   Reply With Quote
Old June 27th, 2011, 06:27 PM   #22 (permalink)
Member
Verified Customer
 
Join Date: Dec 2004
Posts: 172
would something like this work:

UPDATE pp_photos SET bigimage = REPLACE(bigimage, ' ','_') WHERE cat=502
(where category is 502)??
kisii is offline   Reply With Quote
Old June 27th, 2011, 10:04 PM   #23 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 68,069
kisli no you can not do that because remember the files also do not have dashes your kinda stuck with your old files since you hacked the code. This is why no company supports code hacking and code is developed a certain way most times.

You would have to write some specific custom script that goes through all your files and makes sure it properly renames the files and updates the database.
__________________
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 28th, 2011, 10:53 AM   #24 (permalink)
Member
Verified Customer
 
Join Date: Dec 2004
Posts: 172
Well, actually went ahead and tried it on a category and it worked just fine.
kisii is offline   Reply With Quote
Old June 28th, 2011, 11:25 AM   #25 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 68,069
Only if you changed the actual filename also LOL

The fixfilenames function take a file like this

image test.jpg

and makes it

image_test.php

I do not see how it would work fine simply because if your file on disk is image test.jpg just changing the name in the photos table to image_test.jpg would break the image and when you rebuild thumbs etc it will delete the image.

See what I am saying. fixfilenames alters file itself to whatever name and that name is stored in the bigimage field in the photos table. You can not change a name in the database without actually changing the physical file on disk.
__________________
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 28th, 2011, 12:05 PM   #26 (permalink)
Member
Verified Customer
 
Join Date: Dec 2004
Posts: 172
The one that I actually ran on the database is
UPDATE gallery_photos SET title = REPLACE(title, ' ','_') WHERE cat=XXX ( where XXX is the number of the category). This i believe does not change the filename at all but rather adds the underscores where there's a space. I am not sure how the correct filename is referenced back to the new filename but so far, i haven't found any broken link to disk storage. when i hover a mouse over the thumbnails, it shows the correct filename (the unaltered one)
Now i know not to touch your code Chuck!! wink wink.
kisii is offline   Reply With Quote
Old June 28th, 2011, 12:39 PM   #27 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 68,069
hey it it works for you fine I was merely explaining how things work code wise.
__________________
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