PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |
Old February 23rd, 2005, 03:09 PM   #1 (permalink)
Member
Verified Customer
 
Join Date: Jun 2004
Posts: 30
Question about userid

I did a complete switchover of my site. My previous site was phpBB2 + PhotoPost and I have switched to vB3 + vBaGallery.

After I imported phpBB into vB and PP into vBaGallery I have one problem. My userid in phpBB was "2". My new userid in vB is obviously "1". I did the "associate user" thing on my forum import.

My userid for imported images is still "2" in the gallery. I am pretty sure that I can just edit the "userid" field in the "adv_gallery_images" database table and change it from "2" to "1" since the username field and everything else is correct.

Now my question/request. Could somone please write me the small query that will change the "userid" field in the "adv_gallery_images" table so that if it is "2" it will change it to "1"? I am pretty sure it would just be a simple query but I am quite clueless to this. If I have to I can manually edit each image entry and change it but I was hoping someone here could help me out and save me 100+ individual changes for all my images.

Thanks!
-Chef- is offline   Reply With Quote
Old February 23rd, 2005, 03:21 PM   #2 (permalink)
Ultimate Member
Verified Customer
 
ConqSoft's Avatar
 
Join Date: Nov 2003
Location: Raleigh, NC
Posts: 1,417
Re: Question about userid

UPDATE adv_gallery_images SET userid = 1 WHERE userid = 2

Something like that.
ConqSoft is offline   Reply With Quote
Old February 23rd, 2005, 05:39 PM   #3 (permalink)
rbl
Senior Member
Verified Customer
 
Join Date: Aug 2003
Location: Portugal
Posts: 492
Send a message via AIM to rbl Send a message via MSN to rbl
Re: Question about userid

Chef, were you the only user?
rbl is offline   Reply With Quote
Old February 23rd, 2005, 06:39 PM   #4 (permalink)
Brian
Guest
 
Posts: n/a
Re: Question about userid

Not quite that easy as you would have to move all of the images since they are placed in a folder associated with your userid.
  Reply With Quote
Old February 24th, 2005, 01:01 AM   #5 (permalink)
Member
Verified Customer
 
Join Date: Jun 2004
Posts: 30
Re: Question about userid

Quote:
Originally Posted by Brian
Not quite that easy as you would have to move all of the images since they are placed in a folder associated with your userid.
That is not really a problem because I can just copy/paste all the images in my FTP proggy from one folder to the other.

I am the only user that had this issue. It is only because of the fact that I had imported from phpBB2 where userid-1 is Anonamous and installing admin is default userid-2. So, all my imported images are under userid-2 in my PP imported gallery.
It's not a huge deal as this only disrupts me and not any of my users. I may just do a manual FTP upload of my own images....needed to clean up anyway.
-Chef- is offline   Reply With Quote
Old February 24th, 2005, 09:37 AM   #6 (permalink)
Brian
Guest
 
Posts: n/a
Re: Question about userid

Shouldn't be too hard to do then if you just run the query mentioned above and then move all of the images in the 2 folder to the 1 folder.
  Reply With Quote
Old February 28th, 2005, 01:18 AM   #7 (permalink)
Member
Verified Customer
 
Join Date: Jun 2004
Posts: 30
Re: Question about userid

Worked like a charm. Ran that query then moved all the images in "files/2" over to "files/1" and all is right in the world.

Thanks ConqSoft for the query and thanks Brian for the advice.
-Chef- 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
Member's userid folder name structure. imported_BRC2 How Do I? - vBulletin 3.0.X 2 October 3rd, 2005 01:37 PM
&userid= appended? ADoomedMarine Installs and Upgrade - vBulletin 3.0.X 5 June 22nd, 2005 11:52 PM
How do I get rid of &userid= Xil Ze How Do I? - vBulletin 3.0.X 3 May 14th, 2005 05:10 PM
Where is the uploads/ userid directory creatingpages Photopost Pro How Do I...? 1 April 27th, 2005 09:20 PM


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

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