The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
|||
|
|||
Got this:
Quote:
|
#12
|
||||
|
||||
Replace line 37 with this:
PHP Code:
|
#13
|
|||
|
|||
It's Success. But it's look like it doesn't get thanked amount from database1. The thanked amount is from "write" db and being rewrite again with userid+1.
|
#14
|
||||
|
||||
hum, well it should oO
did you re-check the database credentials? |
#15
|
|||
|
|||
Quote:
Edit: never mind, I hadn't looked at the php file linked above where Disasterpiece had already handled the second database. BTW, I think this could be done via query something like: Code:
UPDATE db1.vb_user as old LEFT JOIN db2.vb4_user as new ON (old.userid = new.userid + 1) SET new.thanked = old.thanked (But I haven't tested that exact query). That of course assumes that you've already created a "thanked" column in the new db....and that the dbs are on the same server. |
#16
|
|||
|
|||
Quote:
Quote:
|
#17
|
|||
|
|||
I think this is it:
Code:
UPDATE vb4forum.user as old LEFT JOIN vb3forum.user as new ON (old.userid = new.userid + 1) SET new.post_thanks_thanked_times = old.post_thanks_thanked_times This sets the vb3forum database from the vb4forum database. I think what I posted above assumed that you were going from vb3 to vb4 (at least as far as the table prefixes were concerned). Speaking of which, if you have table prefixes you need to add them. |
#18
|
|||
|
|||
I've down from vb4 to vb3, and there is no table prefix on 2 databases, i have full rights to modify them both.
I've just ran the query and there is an error: Quote:
|
#19
|
|||
|
|||
Hmm...well, both lines together are supposed to be all one query and it looks like you just have the first line there.
|
#20
|
|||
|
|||
yes, i've ran both of them together, but it shows up just 1 line for error.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|