MyBB Community Forums

Full Version: vBulletin 3.8 to MyBB - BBCode parsing problem
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi there,

I have successfully converted my vBulletin forum to great MyBB 1.4.8 !
I have just and just one problem which is very bothering !
Some of known MyBB bbCodes (such as color, size, font, align and ... ) are not parsed correctly.I have converted my vBulletin board to phpBB and the same error occurs .

For example, please compare a post in 3 different forum scripts. MyBB and phpBB are not parsing all BBCodes correctly :
Sample Post #1 in MyBB
Sample Post #1 in vBulletin (This is temporarily and will be deleted in next week !)
Sample Post #1 in phpBB

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 :

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

[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 :
به نام خدا
سلام
[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 :
به نام خدا
سلام

[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]

Please help me !

Best Regards
As I asked in your PMs thread... how did you convert?
vb->phpbb->mybb?
Or
vb->mybb?

MyBB cannot be held responsible for flaws in the converter from vB to phpBB leaving bad BB Code that the phpBB to MyBB BB Code parser doesn't understand. So if you used the first method we can't help you.
(2010-05-13, 07:33 PM)ralgith Wrote: [ -> ]As I asked in your PMs thread... how did you convert?
vb->phpbb->mybb?
Or
vb->mybb?

MyBB cannot be held responsible for flaws in the converter from vB to phpBB leaving bad BB Code that the phpBB to MyBB BB Code parser doesn't understand. So if you used the first method we can't help you.
They are 2 separate conversions :
vb -> MyBB
vb -> phpBB

I wanted to see this problem occurs in other forums or not.
And because of both of phpBB and MyBB are good, I want this problem be solved on both of them !


Actually, there are 2 problems.
1- First one is that MyBB except for :
[color=COLOR]
BBCode, but sometimes it is in this form :
[color="COLOR"]
Dicky has given me a workaround for phpBB regarding this issue.
Can it be developed to MyBB ?

2- The second one is unknown for me.
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 :
[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]


MyBB Code of this signature :
[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] 

phpBB Code of this signature :
[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]

Is it possible to fix it ?
I have fixed this problem.
Current bbcode_parser.php file of MyBB merge system has not written correctly.
Just use the attached file and it will work perfectly.

In migration from vBulletin to phpBB or MyBB, all bbcodes do not pars correctly. Because :
Some bbcodes are not nested properly, at least they are not in the format that phpBB or MyBB expects. You need to close out one tag before you can open another of the same tag. For example, you have

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
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.

Thanks,
Mostafa
http://gigfa.com/
Yes, MyBB has a known issue with nesting of some BB Codes, however I didn't think color codes were one of them. Obviously I was wrong Smile