Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: convert mybb to vbulletin and bridge works but  (Read 5413 times)

0 Members and 1 Guest are viewing this topic.

Konstantinos

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 120
convert mybb to vbulletin and bridge works but
« on: May 01, 2006, 01:54:03 pm »

after i converted my mybb forum to vbulletin i applied the bridge and works ok but the problem is that after the convertion the mybb user id's are not the same as vbulleting user id.s which means that the albums in cpg are shown but they show as belonging to a different user. what i want to do is to change the user id in cpg tables in phpmyadmin in order to associate the album to the correct user. i browsed the albums tables but there is no user id only album id. any help ? ohh and i know that i can do it the opposite way meaning that i can change the user id in the forum to match the album but this way i will mess the threads therefore the best way to do it is to change the user id at cpg . how to do that ?
« Last Edit: December 03, 2006, 10:44:51 am by GauGau »
Logged

Nibbler

  • Guest
Re: convert mybb to vbulletin and bridge works but
« Reply #1 on: May 01, 2006, 02:12:10 pm »

Change the owner_id of the pictures and the category of the user albums is 10000+id.
Logged

Konstantinos

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 120
Re: convert mybb to vbulletin and bridge works but
« Reply #2 on: May 01, 2006, 02:23:24 pm »

you mean 100+id right ?
Logged

Nibbler

  • Guest
Re: convert mybb to vbulletin and bridge works but
« Reply #3 on: May 01, 2006, 03:19:01 pm »

ten thousand plus the id of the user. If the user is 12 then the category is 10000+12 = 10012
Logged

Konstantinos

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 120
Re: convert mybb to vbulletin and bridge works but
« Reply #4 on: May 15, 2006, 08:49:21 pm »

which query to run to replace the old id with the id in the pictures table ? for example replacing owner id 14 with 1345 automaticly ?
Logged

Nibbler

  • Guest
Re: convert mybb to vbulletin and bridge works but
« Reply #5 on: May 15, 2006, 08:50:43 pm »

Code: [Select]
UPDATE cpg_pictures SET owner_id = 1345 WHERE owner_id = 14
Logged

Konstantinos

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 120
Re: convert mybb to vbulletin and bridge works but
« Reply #6 on: May 15, 2006, 09:14:37 pm »

awesome thanx, i need to do the same for the comments now, the command is

UPDATE cpg_comments SET author_id = 1345 WHERE author_id = 14

right ?
« Last Edit: May 15, 2006, 09:21:40 pm by Konstantinos »
Logged

Nibbler

  • Guest
Re: convert mybb to vbulletin and bridge works but
« Reply #7 on: May 15, 2006, 09:26:03 pm »

Yes, make backups before you run any queries you are unsure of.
Logged

Konstantinos

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 120
Re: convert mybb to vbulletin and bridge works but
« Reply #8 on: May 16, 2006, 09:53:42 am »

after upgrading to 1.4.5 i get this in bridge manager

Fatal error: Cannot redeclare class core_udb in /home/xxx/public_html/albums/bridge/udb_base.inc.php on line 22  while i tried to disable and rerun the bridge manager in order to set permission per post count however the bridge still works but i cant disable it and re do it
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: convert mybb to vbulletin and bridge works but
« Reply #9 on: May 17, 2006, 12:23:18 am »

hm, be careful with thread drift...
Logged

Konstantinos

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 120
Re: convert mybb to vbulletin and bridge works but
« Reply #10 on: December 02, 2006, 07:19:44 pm »

and if i want to run the same query but for only to change the properties in pics in a specific album ex aid=184

will this work ? UPDATE cpg_pictures SET owner_id = 1345 WHERE owner_id = 14 WHERE aid=148   ???
Logged

Nibbler

  • Guest
Re: convert mybb to vbulletin and bridge works but
« Reply #11 on: December 02, 2006, 09:21:44 pm »

UPDATE cpg_pictures SET owner_id = 1345 WHERE owner_id = 14 AND aid=148
Logged

Konstantinos

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 120
Re: convert mybb to vbulletin and bridge works but
« Reply #12 on: December 03, 2006, 01:51:01 am »

ok it worked but i also trying changing the uploader name by using this it didnt work . whats the problem

UPDATE cpg132_pictures SET owner_name = john WHERE owner_name = nick AND aid=148


#1054 - Unknown column 'john' in 'field list'
Logged

Konstantinos

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 120
Re: convert mybb to vbulletin and bridge works but
« Reply #13 on: December 03, 2006, 01:55:41 am »

of i figured it out thanx man
Logged
Pages: [1]   Go Up
 

Page created in 0.024 seconds with 21 queries.