Why vbulletin 4 importer exclude the firstpost?


#1

Why the importer in vbulletin exclude the firstpost from the total_count?


(RĂ©gis Hanol) #2

Most likely because the first post is used to create the topic.


#3

But then if I have ten topic/thread with attachment just in the first post, the total_count will be zero, even though I have ten attachments. right?


(RĂ©gis Hanol) #4

Hmm, I didn’t look closely enough. Looks like you’re right :wink:

PRs are welcome :smile:


#5

Ok.

While we at it, this line cause errors:

I had to modified it just like the vb5 importer:


(RĂ©gis Hanol) #6

What was the error? Did it try creating an already existing index?


#7

Yes I did. I get the error after the second run.

ref:


(RĂ©gis Hanol) #8

Probably want to handle that better rather than just catching the exception :wink: