[Convertor] vBulletin 3.x to phpBB3

Converting from other board software? Good decision! Need help? Have a question about a convertor? Wish to offer a convertor package? Post here.
Scam Warning
SilentJC
Registered User
Posts: 6
Joined: Sun May 09, 2010 10:13 pm

Re: [Convertor] vBulletin 3.x to phpBB3

Post by SilentJC »

This is what happens when you have moderators gone crazy...

Thanks again for your help, Dicky. Apart from that silliness the convertor worked exactly as planned/expected. Great work!
smartgig
Registered User
Posts: 6
Joined: Wed May 12, 2010 6:39 pm
Location: Iran
Name: Mostafa Ghadamyari

Re: [Convertor] vBulletin 3.x to phpBB3

Post by smartgig »

Hi everyone,


1-
I have successfully converted my vBulletin forum to great phpBB 3 !
I have just and just one problem which is very bothering !
Some of known phpBB BBCodes (such as color, size, font, align and ... ) are not parsed correctly.
For example please see :
Sample Thread( Download attachment if link does not work )

Thanks everyone!
You do not have the required permissions to view the files attached to this post.
Last edited by smartgig on Fri May 14, 2010 4:50 am, edited 1 time in total.
User avatar
D¡cky
Former Team Member
Posts: 11812
Joined: Tue Jan 25, 2005 8:38 pm
Location: New Hampshire, USA
Name: Richard Foote

Re: [Convertor] vBulletin 3.x to phpBB3

Post by D¡cky »

smartgig,

Your phpBB board is displaying

Code: Select all

[size="3"]
The convertor is expecting

Code: Select all

[size=3]
Is this the same with the other bbcodes that are not working?

What version is your vBulletin? The vBulletin boards that I have seen do not have quotes in the bbcode tag.

Would you look at your vBulletin database in the posts table and see how the bbcodes are stored, with or without the quotes.
Have you hugged someone today?
smartgig
Registered User
Posts: 6
Joined: Wed May 12, 2010 6:39 pm
Location: Iran
Name: Mostafa Ghadamyari

Re: [Convertor] vBulletin 3.x to phpBB3

Post by smartgig »

D¡cky wrote:smartgig,

Your phpBB board is displaying

Code: Select all

[size="3"]
The convertor is expecting

Code: Select all

[size=3]
Is this the same with the other bbcodes that are not working?

What version is your vBulletin? The vBulletin boards that I have seen do not have quotes in the bbcode tag.

Would you look at your vBulletin database in the posts table and see how the bbcodes are stored, with or without the quotes.
Hello,

I have checked the database. some of the bbcodes are stored with " " .
I think this is not only the problem.
Please see this link.
This is the code stored in phpBB database :

Code: Select all

[size=134:1l07ozcm][color=Green:1l07ozcm]سايت تنزيل
تا حالا هيچ سايت قرآن آنلايني به اين خوبي تو اينترنت نديدم[/color:1l07ozcm][/size:1l07ozcm]


[align=center:1l07ozcm][color=Green:1l07ozcm][url=http://tanzil.info/:1l07ozcm][size=134:1l07ozcm]***  سـايت تنزيل[/size:1l07ozcm][/url:1l07ozcm][/color:1l07ozcm] [color=Green:1l07ozcm][url=http://tanzil.info/:1l07ozcm][size=134:1l07ozcm]***[/size:1l07ozcm][/url:1l07ozcm][/color:1l07ozcm][/align:1l07ozcm]
But you see that the "size" bbcode does not have parsed correctly .

This post also show another problem.

The vBulletin is v3.8.7
User avatar
D¡cky
Former Team Member
Posts: 11812
Joined: Tue Jan 25, 2005 8:38 pm
Location: New Hampshire, USA
Name: Richard Foote

Re: [Convertor] vBulletin 3.x to phpBB3

Post by D¡cky »

smartgig wrote:Hello,

I have checked the database. some of the bbcodes are stored with " " .
I think this is not only the problem.
Please see this link.
This is the code stored in phpBB database :

Code: Select all

[size=134:1l07ozcm][color=Green:1l07ozcm]سايت تنزيل
تا حالا هيچ سايت قرآن آنلايني به اين خوبي تو اينترنت نديدم[/color:1l07ozcm][/size:1l07ozcm]


[align=center:1l07ozcm][color=Green:1l07ozcm][url=http://tanzil.info/:1l07ozcm][size=134:1l07ozcm]***  سـايت تنزيل[/size:1l07ozcm][/url:1l07ozcm][/color:1l07ozcm] [color=Green:1l07ozcm][url=http://tanzil.info/:1l07ozcm][size=134:1l07ozcm]***[/size:1l07ozcm][/url:1l07ozcm][/color:1l07ozcm][/align:1l07ozcm]
But you see that the "size" bbcode does not have parsed correctly .

This post also show another problem.

The vBulletin is v3.8.7
Could you please post what is in the vBulletin database for those 2 posts.
Have you hugged someone today?
smartgig
Registered User
Posts: 6
Joined: Wed May 12, 2010 6:39 pm
Location: Iran
Name: Mostafa Ghadamyari

Re: [Convertor] vBulletin 3.x to phpBB3

Post by smartgig »

D¡cky wrote:
smartgig wrote:Hello,

I have checked the database. some of the bbcodes are stored with " " .
I think this is not only the problem.
Please see this link.
This is the code stored in phpBB database :

Code: Select all

[size=134:1l07ozcm][color=Green:1l07ozcm]سايت تنزيل
تا حالا هيچ سايت قرآن آنلايني به اين خوبي تو اينترنت نديدم[/color:1l07ozcm][/size:1l07ozcm]


[align=center:1l07ozcm][color=Green:1l07ozcm][url=http://tanzil.info/:1l07ozcm][size=134:1l07ozcm]***  سـايت تنزيل[/size:1l07ozcm][/url:1l07ozcm][/color:1l07ozcm] [color=Green:1l07ozcm][url=http://tanzil.info/:1l07ozcm][size=134:1l07ozcm]***[/size:1l07ozcm][/url:1l07ozcm][/color:1l07ozcm][/align:1l07ozcm]
But you see that the "size" bbcode does not have parsed correctly .

This post also show another problem.

The vBulletin is v3.8.7
Could you please post what is in the vBulletin database for those 2 posts.
Hi there,

Sample Post #1 in phpBB
Sample Post #1 in MyBB
Sample Post #1 in vBulletin (This is temporarily and will be deleted in next week !)
If the above links do not work, download the attachment.
Also, I have logged in to vbulletin and saved the page to the attachment of this post.


vBulletin Database :

Code: Select all

به نام خدا
سلام

[CENTER][B]شبكه اطلاع رسانی شارح [/B] [URL="http://www.shareh.com/"][B][SIZE="2"]http://www.shareh.com/[/SIZE][/B][/URL]
اين پايگاه در بردارنده اطلاعات دينی بسياری است . بخشی از اين پايگاه به مجلات دفتر اختصاص دارد كه پژوهش های قرآنی يكی از آن هاست. در اين پايگاه شماره های منتشر شده اين مجله با متن كامل در اختيار كاربران قرار گرفته است.


[B]جامعة القرآن الكريم [/B][URL="http://www.jameatulquran.com/"][B][SIZE="2"]http://www.jameatulquran.com/[/SIZE][/B][/URL]
پايگاهی است با موضوع، مراكز آموزشى، حفظ قرآن، قاريان و حافظان به زبانهای عربی، فارسی، انگليسی متعلق به كشور ايران معرفی جامعةالقرآن‌الكريم، ‌معرفی حافظان، ‌اطلاعات و اخبار، آموزش، پايگاه‌های اسلامی، پرسش و پاسخ دينی و قرآنی، انتشارات و آلبوم عكس از بخشهای تشكيل دهنده ی اين پايگاه قرآنی است


[B]پايگاه كاشان تفسير  [/B][URL="http://www.kashantafsir.com/"][B][SIZE="2"]http://www.kashantafsir.com/[/SIZE][/B][/URL]
نام پايگاهی است با موضوع تفسير قرآن كريم .متعلق است به كشور ايران كه به زبان فارسی در اختيار علاقه مندان قرار گرفته است.از بخشهای گوناگون اين پايگاه می توان به خلاصه‌ی مطالب جلسات تفسير، پيام مطهر، مشاوره و قرآن درمانی، مقاله و گزارش، آلبوم تصاوير و پايگاه‌های قرآنی اشاره كرد.[/CENTER]


[COLOR="White"].[/COLOR]



MyBB Database :

Code: Select all

به نام خدا
سلام
[align=center]
[b] شبکه قرآن سیما [/b][url=http://quran.iribtv.ir/][b][SIZE="3"][FONT="Tahoma"]http://quran.iribtv.ir/[/FONT][/SIZE][/b][/url]
این سایت، به شبکه قرآن سیمای جمهوری اسلامی ایران متعلّق است که به فعّالیت‌ها و برنامه‌های قرآنی شبکه قرآن می‌پردازد. از مزایای این سایت می‌توان به آرشیو غنی از تلاوت‌ها، سخنرانی‌ها و برنامه‌هایی که از صدا و سیما پخش می‌شوند، اشاره کرد.


 [b]پایگاه مرکز فرهنگ و معارف قرآن[/b] [url=http://www.maarefquran.com/][b][SIZE="3"][FONT="Tahoma"]http://www.maarefquran.com/[/FONT][/SIZE][/b][/url]
این مرکز، وابسته به دفتر تبلیغات اسلامی حوزه علمیه قم است که در عرصه‌های تفسیر، ترجمه و موضوعات قرآنی فعّالیت می‌کند. بخش قرآن‌پژوهی این سایت، حاوی فرهنگ موضوعی، تفاسیر، کتاب‌خانه و پُرسمان‌های قرآنی است. بخش دیگری از سایت، به اخبار و تازه‌های کتاب و مقالات قرآنی اختصاص دارد. بخش اطلاع‌رسانی سایت، شامل معرّفی کتب، مقالات، پایان‌نامه‌ها، مراکز، پایگاه‌های اینترنتی و نرم‌افزارهای قرآنی، جالب توجّه است.


[b]درس‌هایی از قرآن [/b][url=http://www.qaraati.net/][b][SIZE="3"][FONT="Tahoma"]http://www.qaraati.net/[/FONT][/SIZE][/b][/url]
درس‌هایی از قرآن، نام برنامه‌ای است که بیش از 25 سال، هر هفته از سیمای جمهوری اسلامی ایران پخش می‌شود. نام سایت این برنامه، به نام مُجری آن یعنی حجة الإسلام و المسلمین قرائتی است که زمینه اصلی فعّالیت ایشان قرآن و تفسیر است. «تفسیر نور»، از تألیفات ایشان در این سایت قرار دارد. از بخش‌های دیگر این سایت می‌توان به آرشیو برنامه‌های هفتگی درس‌هایی از قرآن اشاره نمود. همچنین بخش‌های مسابقات هفتگی، پرسش‌ و پاسخ و کتاب خانه، مخاطبان خاص خود را دارد.[/align]

[color=White].[/color]


phpBB Database :

Code: Select all

به نام خدا
سلام

[align=center:20ve3kml][b:20ve3kml]شبكه اطلاع رسانی شارح [/b:20ve3kml] [url=http://www.shareh.com/:20ve3kml][b:20ve3kml][SIZE="2"]http://www.shareh.com/[/SIZE][/b:20ve3kml][/url:20ve3kml]
اين پايگاه در بردارنده اطلاعات دينی بسياری است . بخشی از اين پايگاه به مجلات دفتر اختصاص دارد كه پژوهش های قرآنی يكی از آن هاست. در اين پايگاه شماره های منتشر شده اين مجله با متن كامل در اختيار كاربران قرار گرفته است.


[b:20ve3kml]جامعة القرآن الكريم [/b:20ve3kml][url=http://www.jameatulquran.com/:20ve3kml][b:20ve3kml][SIZE="2"]http://www.jameatulquran.com/[/SIZE][/b:20ve3kml][/url:20ve3kml]
پايگاهی است با موضوع، مراكز آموزشى، حفظ قرآن، قاريان و حافظان به زبانهای عربی، فارسی، انگليسی متعلق به كشور ايران معرفی جامعةالقرآن‌الكريم، ‌معرفی حافظان، ‌اطلاعات و اخبار، آموزش، پايگاه‌های اسلامی، پرسش و پاسخ دينی و قرآنی، انتشارات و آلبوم عكس از بخشهای تشكيل دهنده ی اين پايگاه قرآنی است


[b:20ve3kml]پايگاه كاشان تفسير  [/b:20ve3kml][url=http://www.kashantafsir.com/:20ve3kml][b:20ve3kml][SIZE="2"]http://www.kashantafsir.com/[/SIZE][/b:20ve3kml][/url:20ve3kml]
نام پايگاهی است با موضوع تفسير قرآن كريم .متعلق است به كشور ايران كه به زبان فارسی در اختيار علاقه مندان قرار گرفته است.از بخشهای گوناگون اين پايگاه می توان به خلاصه‌ی مطالب جلسات تفسير، پيام مطهر، مشاوره و قرآن درمانی، مقاله و گزارش، آلبوم تصاوير و پايگاه‌های قرآنی اشاره كرد.[/align:20ve3kml]


[color="White"].[/color]
I have tested it in mybb migration and the same error occurs in mybb.
Hope to be useful !
You do not have the required permissions to view the files attached to this post.
User avatar
D¡cky
Former Team Member
Posts: 11812
Joined: Tue Jan 25, 2005 8:38 pm
Location: New Hampshire, USA
Name: Richard Foote

Re: [Convertor] vBulletin 3.x to phpBB3

Post by D¡cky »

Try this:

OPEN functions_vb30.php
FIND

Code: Select all

	$message = preg_replace('/\[\/right\]/i', '[/align]', $message);
AFTER, ADD

Code: Select all

	$message = preg_replace( '/\[COLOR=\"(.+?)\"]/si', "[color=\\1]", $message );
	$message = preg_replace( '/\[size=\"(.+?)\"]/si', "[size=\\1]", $message );
	$message = preg_replace( '/\[font=\"(.+?)\"]/si', "[font=\\1]", $message );
	$message = str_replace('[/SIZE', '[/size', $message);
That should take care of most everything. I do see some problems with nested bbcodes, such as in dalboy's signature in this post. They might work in vBulletin, but they will not work in phpBB3. You will need to fix problems like this manually by editing the post or editing the signature.
Have you hugged someone today?
smartgig
Registered User
Posts: 6
Joined: Wed May 12, 2010 6:39 pm
Location: Iran
Name: Mostafa Ghadamyari

Re: [Convertor] vBulletin 3.x to phpBB3

Post by smartgig »

Hello again,

Thank you for your workaround Dicky. I will test it and post the result here.

What about the second problem ?
See this signature, just vBulletin show correctly :
(Download attachment if links don't work )
Signature Sample #1 in vBulletin
Signature Sample #1 in MyBB
Signature Sample #1 in phpBB

vBulletin Code of this signature :

Code: Select all

[B][B][SIZE=4]آمده ایم که [COLOR=DeepSkyBlue]قیمتی [COLOR=Black]زندگی کنیم
نه اینکه به هر [COLOR=DeepSkyBlue]قیمتی[/COLOR] زندگی کنیم
[/COLOR][/COLOR][/SIZE][/B][/B][LEFT][B][SIZE=3]
[B][SIZE=2]مرحوم آیت الله العظمی بهجت[/SIZE][/B][/SIZE][/B]
[B][/B][/LEFT]


phpBB Code of this signature :

Code: Select all

[b:2i3nqg5a][B][size=134:2i3nqg5a]آمده ایم که [color=DeepSkyBlue:2i3nqg5a]قیمتی [color=Black]زندگی کنیم
نه اینکه به هر [color=DeepSkyBlue]قیمتی[/color:2i3nqg5a] زندگی کنیم
[/color][/color][/size:2i3nqg5a][/b:2i3nqg5a][/B][align=left:2i3nqg5a][b:2i3nqg5a][size=100:2i3nqg5a]
[B][size=84]مرحوم آیت الله العظمی بهجت[/size:2i3nqg5a][/b:2i3nqg5a][/SIZE][/B][/align:2i3nqg5a]

MyBB Code of this signature :

Code: Select all

[b][b][SIZE=4]آمده ایم که [COLOR=DeepSkyBlue]قیمتی [COLOR=Black]زندگی کنیم
نه اینکه به هر [color=DeepSkyBlue]قیمتی[/color] زندگی کنیم
[/COLOR][/COLOR][/SIZE][/b][/b][align=left][b][SIZE=3]
[b][SIZE=2]مرحوم آیت الله العظمی بهجت[/SIZE][/b][/SIZE][/b]
[b][/b][/align] 
Is it possible to fix it ?
What is the reason ?
You do not have the required permissions to view the files attached to this post.
User avatar
D¡cky
Former Team Member
Posts: 11812
Joined: Tue Jan 25, 2005 8:38 pm
Location: New Hampshire, USA
Name: Richard Foote

Re: [Convertor] vBulletin 3.x to phpBB3

Post by D¡cky »

smartgig wrote:Hello again,

Thank you for your workaround Dicky. I will test it and post the result here.

What about the second problem ? Is it possible to fix it ?
What is the reason ?
As I mentioned before, I cannot fix it. The bbcodes are not nested properly, at least they are not in the format that phpBB expects. You need to close out one tag before you can open another of the same tag. For example, you have

Code: Select all

Some text [color=SkyBlue]blue text is here [color=Black] black text is here[/color] and some more blue text[/color]
It needs to be like

Code: Select all

Some text [color=SkyBlue]blue text is here[/color][color=Black] black text is here[/color] [color=SkyBlue]and some more blue text[/color]
The convertor has no way of knowing how to rearrange the tags. You, or the member, will have to fix the signature manually by editing it.
Have you hugged someone today?
Gavos
Registered User
Posts: 2
Joined: Sat May 29, 2010 1:03 am

Re: [Convertor] vBulletin 3.x to phpBB3

Post by Gavos »

Hi everyone,

I am currently in the process of testing the conversion of my forum from vBulletin 3.6.5 to phpBB3 current. I found out that this converter does a good job by default, it is especially nice to have the passwords managed properly. I encountered a few problems though, and I want to fix them before migrating my real forum:
  • Avatar migration does not work
    Some non-custom avatars are not displayed. For instance I have a user Foo whose avatar a.gif is not displayed. If on my account I try to use the same avatar it works. When checking in the database I have somecategory/a.gif in my user_avatar field and Foo only has a.gif, and indeed a.gif is under ./images/avatars/gallery/somecategory. The thing is, we have dispatched our preloaded avatars in different categories, using one folder by category. Is it possible to keep the same structure in phpBB or should I just move all those avatars under gallery?
  • Character encoding does not always work
    My vBulletin was in ISO-8859-1, I have read that phpBB3 is in UTF-8, and I have seen that the convertor handles that. Still the topic titles have character encoding problems when displaying the content of forum or a topic:

    Image

    Notice that the second title displays fine (but maybe is it a different data in the database?). Is this problem due to the conversion or is it a bug in phpBB? Also notice that I have not installed any french language package on the forum, but I cannot see how it could help.
I might come back with a few more questions but I would appreciate any help with those two issues. Thanks in advance!
smartgig
Registered User
Posts: 6
Joined: Wed May 12, 2010 6:39 pm
Location: Iran
Name: Mostafa Ghadamyari

Re: [Convertor] vBulletin 3.x to phpBB3

Post by smartgig »

Gavos wrote: [*]Character encoding does not always work
My vBulletin was in ISO-8859-1, I have read that phpBB3 is in UTF-8, and I have seen that the convertor handles that. Still the topic titles have character encoding problems when displaying the content of forum or a topic:

Image
To fix topic title issue, try this workaround :
Open /install/convertors/convert_vb30.php
Line #390,Find :

Code: Select all

				array('topic_title',			'thread.title',				array('function1' => 'utf8_encode', 'function2' => 'phpbb_set_encoding')), //'utf8_htmlspecialchars'
Replace with :

Code: Select all

				array('topic_title',			'thread.title',				'phpbb_set_encoding'),
This should work correctly.
Gavos
Registered User
Posts: 2
Joined: Sat May 29, 2010 1:03 am

Re: [Convertor] vBulletin 3.x to phpBB3

Post by Gavos »

Thanks Smartgig, that did the trick! This was the most blocking bug, I'm a quite relieved to see it fixed :)

I'm having a look at this avatars thing, putting every avatar at the gallery root seems to prevent users to select them but it works for the users who had it selected already. So it just swaps the problem, I'll try to find another way ^^

EDIT: I eventually modified the relevant user_avatar fields by adding the relevant folder in front of each. I also updated the user_avatar_width and user_avatar_height with the proper values by reusing the outputs of some identify -format "%f %w %h\n" somecategory/* commands.
CarcaB0t
Registered User
Posts: 3
Joined: Thu Jun 10, 2010 9:23 am

Re: [Convertor] vBulletin 3.x to phpBB3

Post by CarcaB0t »

Hello guys,

I have one big problem when importing from vb 4.x to phpbb3, everything look to be ok but when converter finishes i see only a few threads and posts, i must have over 2 mil. threads and posts. When i importing them, are showed correctly but when finishes just a few.

Users are imported corectly, i think it must be a bug in converter.. Who had same problems ?

What can i do ?

thank you.
smartgig
Registered User
Posts: 6
Joined: Wed May 12, 2010 6:39 pm
Location: Iran
Name: Mostafa Ghadamyari

Re: [Convertor] vBulletin 3.x to phpBB3

Post by smartgig »

CarcaB0t wrote:Hello guys,

I have one big problem when importing from vb 4.x to phpbb3, everything look to be ok but when converter finishes i see only a few threads and posts, i must have over 2 mil. threads and posts. When i importing them, are showed correctly but when finishes just a few.

Users are imported corectly, i think it must be a bug in converter.. Who had same problems ?

What can i do ?

thank you.
This is a vB 3.x converter.
vB 4.x has a lot of new changes in behalf of itself!
CarcaB0t
Registered User
Posts: 3
Joined: Thu Jun 10, 2010 9:23 am

Re: [Convertor] vBulletin 3.x to phpBB3

Post by CarcaB0t »

yes i know, but in other thread in same forum i saw someone named Dicky (don't know if i'm wrong) who modified it , worked everything without posts .

Return to “[3.0.x] Convertors”