Quote:
Originally Posted by paulmjno
What I've done is pre-created the native thread prefixes matching the ones I currently use.
|
If only it were that easy (it doesn't work!!).
For each old forum that had prefixes, you need a new prefixset.
Table: prefixset
prefixsetid, varchar(25), for example if we are reading forumid 14, import14
displayorder, int(10)
The prefixset title needs to be inserted into the phrase table:
Table: phrase
languageid: 0
fieldname: prefix
product= vbulletin
text = prefix set title (eg "imported from forum 14, Off topic")
varname: prefixset_xx_title
where xx = prefixsetid eg prefixset_import14_title
This prefixsetid has to be assigned to the forum number:
Table: forumprefixset
forumid, int(10), eg 14
prefixsetid, varchar(25)
In each prefixset, the individual prefix ids are inserted:
Table: prefix
prefixid, varchar(25), no spaces! so maybe forumid like 14_001 then 14_002 etc. If you had 10 prefixes in forum 14, then we need 10 prefixids.
prefixsetid, varchar(25), from above
displayorder, int(10)
Each prefixid needs the prefix text read from the original thread prefix list for the forum inserted into 2 fields (title plain text and rich text). These are stored in the phrase table:
languageid: 0
fieldname: global
product= vbulletin
text = the old thread prefix text
varname: prefix_xx_yy
where
xx = prefixid
yy = title_rich or title_plain
eg prefix_import14_title_plain
Then each thread in the forum with a prefix from the old system has the corresponding new prefixid inserted into it:
Table: thread
prefixid, varchar(25)
The only bit I'm not sure about is:
Table: forum
lastprefixid, varchar(25)
Repeat for all forums.
Optionally transfer forum settings from old to new (mandatory thread prefix etc, but this can easily be done manually).
Finally, you have to rebuild languages.
Right, there's the challenge!