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 Installation & Upgrades

Photopost Pro Installation & Upgrades If you're having install or upgrade problems

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old February 25th, 2006, 03:31 PM   #1 (permalink)
Junior Member
Verified Customer
 
Join Date: Jan 2005
Posts: 25
BULK change owners of photos

Due to a previous error I made whilst upgrading vbulletin (its a long story) all my photos are owned by the wrong users.

Eg all the photos owned by userid 1 should be owned by userid 2 all those owned by userid 50 shoudl be owned by userid 51

Now I am not very technical but I am assuming that in the table pp_photos if I had some sql code which added 1 to the value of userid this might fix the problem...

But how would I then get the correct username displayed?

Could some one help me out with the following

1 - the correct sql to add 1 to evry userid

2 - the way i can make photopost pro put the correct name in to user now userid has changed...

Many thanks in advance.

Stuart
schford is offline   Reply With Quote
Old February 25th, 2006, 03:59 PM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,699
Well are all the photos owned by the wrong userid is the real question or some?

You could do a query like this

UPDATE pp_photos SET userid=userid+1

You can then use the admin scan database tool to resync usernames.
__________________
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 February 25th, 2006, 04:46 PM   #3 (permalink)
Junior Member
Verified Customer
 
Join Date: Jan 2005
Posts: 25
I think its aprox the first 1500 photos that are wrong......what would be the syntax to just run it on those.

thanks

Stuart
schford is offline   Reply With Quote
Old February 25th, 2006, 04:52 PM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,699
well not an exact science here on that ha

UPDATE pp_photos SET userid=userid+1 WHERE id < 1501
__________________
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 February 25th, 2006, 06:29 PM   #5 (permalink)
Junior Member
Verified Customer
 
Join Date: Jan 2005
Posts: 25
Quote:
Originally Posted by Chuck S
well not an exact science here on that ha

UPDATE pp_photos SET userid=userid+1 WHERE id < 1501
Thanks :-) actually I know the date when I updated VB so can work out what the last member was to join before that date so can then do the code *grins*
schford is offline   Reply With Quote
Old February 25th, 2006, 07:10 PM   #6 (permalink)
Junior Member
Verified Customer
 
Join Date: Jan 2005
Posts: 25
Chuck - you are the man *bows*
schford 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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Bulk upload of photos *AND* product description thompson00 ReviewPost Installation & Upgrades 10 December 22nd, 2007 03:52 PM
Option to allow only owners and admins to view original unwatermarked file SomeName vBGallery Suggestions 1 April 16th, 2007 02:03 PM
error bulk uploading photos Ginger2 ReviewPost Bug Reports 0 March 20th, 2005 03:04 PM
bulk moving photos that aren't in a gallery scrapster2 Photopost Pro How Do I...? 2 March 10th, 2005 11:42 AM


All times are GMT -5. The time now is 01:37 PM.

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