Kunena
   
Welcome, Guest
Please Login or Register.    Lost Password?
Bookmark and Share

Vbulletin to Kunena, jos_fb_messages
(1 viewing) (1) Guest
Go to bottomPage: 12
TOPIC: Vbulletin to Kunena, jos_fb_messages
#39230
Vbulletin to Kunena, jos_fb_messages 1 Month ago  
Hi

Sorry for my english, i'm french.

I'm migrating VBulletin to Kunena.

In VB, in "post" table, i have this fields
postid threadid parentid


in Kunena

id parent thread catid


What is exactly the correspondance ?

ok postid --> id

threadid --> thread ?

parentid --> ??????

Thanks for your support,

Dany
dany31
Fresh Boarder
Posts: 9
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#39252
Re: Vbulletin to Kunena, jos_fb_messages 1 Month ago  
postid => id
parentid => parent
threadid => thread

catid can be found in another table (threads(?) table, most likely threadid(?))
Matias
Kunena!
Kunena Developer
Posts: 2779
graph
User Online Now Click here to see the profile of this user
matias.griese Location: Turku, Finland Birthday: 02/10
The administrator has disabled public write access.
Reviews on the Joomla Extension Directory are always appreciated.
 
#39324
Re:Vbulletin to Kunena, jos_fb_messages 1 Month ago  
thanks Matias

have you already migrate vbulletin to kunena ?

I have few problem with post migration

I can migrate posts, but next,I think there are a problem with id, thread or parent.. When I click on post (right panel, last post etc..) Kunena do not link to post id but to post thread.

For example, if

post id = 20000
parent = 19850
thread = 8600

Kunena try to search post #8600

But in jos_fb_messages table, id parent and thread are corrects (copied from postid, parentid and threadid from vbulletin)
dany31
Fresh Boarder
Posts: 9
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2010/02/05 14:16 By dany31.Reason: age
The administrator has disabled public write access.
 
#39333
Re:Vbulletin to Kunena, jos_fb_messages 1 Month ago  
I'm not familiar with VB; I haven't even used it much.

And yes, Kunena does just like that. You need to fetch first message of that thread and that will be your threadid in kunena.
Matias
Kunena!
Kunena Developer
Posts: 2779
graph
User Online Now Click here to see the profile of this user
matias.griese Location: Turku, Finland Birthday: 02/10
The administrator has disabled public write access.
Reviews on the Joomla Extension Directory are always appreciated.
 
#39334
Re:Vbulletin to Kunena, jos_fb_messages 1 Month ago  
hmm ok..


and thread = parent in Kunena ?
dany31
Fresh Boarder
Posts: 9
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#39337
Re:Vbulletin to Kunena, jos_fb_messages 1 Month ago  
No. Parent looks the same as in VB. It's the post you answered to (reply/quote).

So to map thread from VB to Kunena, you need to look at the threads table and to find first message. That first message = thread in Kunena.
Matias
Kunena!
Kunena Developer
Posts: 2779
graph
User Online Now Click here to see the profile of this user
matias.griese Location: Turku, Finland Birthday: 02/10
The administrator has disabled public write access.
Reviews on the Joomla Extension Directory are always appreciated.
 
#39338
Re:Vbulletin to Kunena, jos_fb_messages 1 Month ago  
ok Matias, thank you very much

Do you know mysql command to copy record ? for example to populate jos_fb_messages_text with id and text from vb table. For the moment I use export/import in csv but if is possible with mysql, is faster... sorry for my english, I hope you can understand
dany31
Fresh Boarder
Posts: 9
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#39371
Re:Vbulletin to Kunena, jos_fb_messages 1 Month ago  
Hello,

I don't know what you mean by copy record, but for insered something in a table use the sql instruction :

Code:

INSERT INTO my_table (col1,col2) VALUES(15,'texteeazrteaz');

xillibit
Kunena Developer
Posts: 2063
graphgraph
User Online Now Click here to see the profile of this user
Gender: Male AlienTuningPC Location: France Birthday: 03/15
The administrator has disabled public write access.
I don't provide support by MP, because this can be useful for someone else.
 
#39373
Re:Vbulletin to Kunena, jos_fb_messages 1 Month ago  
thanks xillibit, ok with you, but I would want to insert records from other table.

For example :

TABLE_1

'id' 'content'
1 content1
2 content2
3 content3
4 content4


TABLE_2
'id' 'content' 'other field' 'other field'
table is empty


I have tried this
INSERT INTO table_1 (id,content) VALUES (SELECT id,content FROM table_2)

But this not works
dany31
Fresh Boarder
Posts: 9
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#39376
Re:Vbulletin to Kunena, jos_fb_messages 1 Month ago  
In this point, you need a php script to do that, i don't know if you have php skills. You need to do something like that :

Code:

$my_datas = "SELECT id,content FROM table_2";
//if you using the joomla! framework you a $mydatabase->loadObjectList ()
foreach ($my_datas as $row) {
  INSERT INTO table_1 (id,content) VALUES ($row->id,$row->content)
}



This is just an example and it's not complete
xillibit
Kunena Developer
Posts: 2063
graphgraph
User Online Now Click here to see the profile of this user
Gender: Male AlienTuningPC Location: France Birthday: 03/15
The administrator has disabled public write access.
I don't provide support by MP, because this can be useful for someone else.
 
Go to topPage: 12