Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: bridging after there are users in forum and in gallery  (Read 5196 times)

0 Members and 1 Guest are viewing this topic.

mindwall

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
bridging after there are users in forum and in gallery
« on: May 13, 2006, 12:51:43 am »

I had to bridge after I already have user accounts in both gallery and forum and of course there are unwanted results as the accounts are not "matched" properly against eachother.
As I understand I can only resolve this by manually editing the database entries.

Is there more information on what to change in the DB entries to "assign" users taken from the forum's list to the proper users/albums that already were created in the gallery?

Coppermine install: http://www.46it.ca/gallery/
Forum install: http://www.46it.ca/forum/
FRAME INTERFACE (buttons on right): http://www.46it.ca
(press the little green BTR-ON button to turn red to avoid listening to radio)
Coppermine version: 1.4.5 (stable)
Forum version: phpBB 2.0.19
Test user account: tester/tester

BridgeManager settings:
Forum URL:  http://www.46it.ca/forum/
Relative path to your BBS's config file:  ../forum/ 
Use post-based groups?:  yes
« Last Edit: May 14, 2006, 11:26:39 pm by Nibbler »
Logged

mindwall

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Re: bridging after there are users in forum and in gallery
« Reply #1 on: May 14, 2006, 08:17:32 pm »

I'm not very good with this, so I apologize if I ask something stupid...

When bridging, does the cpg143_users > user_id get matched to phpbb_users > user_id, or does the users get matched in "sequential order" (no matter the user ID, the sorted users get matched one from the gallery against the one in the forum)? (does the user "-1" from the forum "count" or is it skipped?)

If I change the cpg143_users > user_id number would that screw-up something in the gallery's other data fileds and result in mismatch of user/album or user/comment or something along those lines...?

any help appreciated...
Logged

Nibbler

  • Guest
Re: bridging after there are users in forum and in gallery
« Reply #2 on: May 14, 2006, 08:48:44 pm »

'cpg143_users > user_id' is abandoned completely. Any pictures that were owned by user 123 in Coppermine are now owned by whoever happens to be user 123 in phpbb. The places to change numbers are the user_id type fields in the other coppermine tables, like owner_id in pictures and author_id in comments.
Logged

mindwall

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Re: bridging after there are users in forum and in gallery
« Reply #3 on: May 14, 2006, 09:19:36 pm »

thanx,
so I take that phpMyAdmin will not propagate the update the other table-fileds as necessary when user-ID has been changed manually in the (supposably key-field of the table in cpg143_users) ?

edit:
oh.. I see looks like the tables' fileds are not "connected"

so I'll need to change cpg143_comments>author_id to the user ID of the forum?
but the albums are keyed by cpg143_albums>pos? so to switch to whom the album belongs I have to change the POS? (and probably rename the directory in on the server?)
« Last Edit: May 14, 2006, 09:29:59 pm by mindwall »
Logged

Nibbler

  • Guest
Re: bridging after there are users in forum and in gallery
« Reply #4 on: May 14, 2006, 09:27:13 pm »

No, it won't. The tables are only linked conceptually, there is nothing to tell phpmyadmin that the fields are related.
Logged

mindwall

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Re: bridging after there are users in forum and in gallery
« Reply #5 on: May 14, 2006, 09:32:31 pm »

I just saw that they are not linked...
so what filed in the album table do I need to change to direct ti to specific user_ID from the forum?
Logged

Nibbler

  • Guest
Re: bridging after there are users in forum and in gallery
« Reply #6 on: May 14, 2006, 09:37:19 pm »

User albums have a cat of user_id+10000
Logged

mindwall

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Re: bridging after there are users in forum and in gallery
« Reply #7 on: May 14, 2006, 09:39:20 pm »

thanx, and after I change the database userID I'll have to change the name of the directory of that user too...
ok, I'll give it a try :)

thanx again
« Last Edit: May 14, 2006, 09:44:59 pm by mindwall »
Logged

mindwall

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Re: bridging after there are users in forum and in gallery
« Reply #8 on: May 14, 2006, 11:22:03 pm »

bottom line:

change cpg143_albums>pos IDs to (1000+[phpbb_users>user_id])
//that is change the POS values in the gallery-albums to 1000+phpbb_userID
(DO NOT rename the user folder names)

change cpg143_comments>author_id (values) to the wanted phpbb_userID

and you are done ;)

call it... "solved" :)
Logged

Nibbler

  • Guest
Re: bridging after there are users in forum and in gallery
« Reply #9 on: May 14, 2006, 11:25:29 pm »

Just to clarify, you shouldn't change the pos as this is the album's sort order and is unrelated to ownership. Also the number is 10000, not 1000.
Logged
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 21 queries.