Welcome to the E-Blah Community!
We would like to welcome you to our community and invite you to register an account or login.
Being a registered member is important, as it gives you several advantages over the normal Guest status. After registering you will be able to download files and images, post messages, and access member-only portions of the forum - just to name a few. Registration is quick and simple, and only takes about a minute of your time.

E-Blah Community    E-Blah SQL Technical Support    General E-Blah SQL  ›  Migrating from PhpBB2
Users Browsing Forum
No Members and 1 Guests

Migrating from PhpBB2  This thread currently has 645 views. Print
1 Pages 1 Recommend Thread
panet
August 19, 2008, 2:17am Report to Moderator Report to Moderator

E-Blah Member
Posts: 4
Gender: Male
Posts Per Day: 0.04
Reputation: 100.00%
Reputation Score: +1 / -0
Time Online: 1 hours 42 minutes
Location: Rome, Italy
I wrote a perl procedure to migrate my PhpBB2 forum to E-Blah SQL beta4, it's attached to the message.

The procedure requires both the boards on the same machine, and will migrate:
  • Members, including passwords, signatures, administrative flag and avatars (both uploaded and URL)
  • Categories
  • Boards
  • Topics
  • Posts

While migrating several text fields will be converted from ISO-8859-1 to UTF-8, and their BBCode cleaned up:
  • Members "sn" and signatures
  • Category name and description
  • Board name and description
  • Topics title and originating poster
  • Posts body

Before using it copy the attached script onto your linux server, edit it in its very first variable (%O, options), and launch it by using as the only argument the database password.
Requires perl modules DBI and Encode.

It's supposed to be used on an E-Blah fresh install, and will migrate all users from PhpBB2 with user_id greater than 1.



This post contains attachments; to download them you must login.

Logged Offline
Site Site Private Message Private message
Martin
August 19, 2008, 6:16am Report to Moderator Report to Moderator

I love E-Blah
10 Series Support Team
Posts: 4,558
Gender: Male
Posts Per Day: 3.13
Reputation: 98.60%
Reputation Score: +211 / -3
Time Online: 35 days 19 hours 26 minutes
Location: UK
Age: 50
Now that is excellent, thank you.



Martin's Reputation: Increase
Logged Offline
Site Site Private Message Private message Reply: 1 - 5
panet
August 20, 2008, 11:37am Report to Moderator Report to Moderator

E-Blah Member
Posts: 4
Gender: Male
Posts Per Day: 0.04
Reputation: 100.00%
Reputation Score: +1 / -0
Time Online: 1 hours 42 minutes
Location: Rome, Italy
Quoted from Martin
Now that is excellent, thank you.

You're welcome.... I like E-Blah, and I'm happy if I can give back something to the community using it.

By the way about the script: be aware, the migration will delete all users, categories, boards and posts (except user with id 1)!
As I wrote, it's supposed to be used on a fresh E-Blah install.

The version I posted was migrating a wrong setting for user (a minor one, a confusion between "owns an avatar" and "show avatars"), and was always converting to UTF.

Here it's a fixed version.



This post contains attachments; to download them you must login.

Logged Offline
Site Site Private Message Private message Reply: 2 - 5
Martin
August 21, 2008, 2:16am Report to Moderator Report to Moderator

I love E-Blah
10 Series Support Team
Posts: 4,558
Gender: Male
Posts Per Day: 3.13
Reputation: 98.60%
Reputation Score: +211 / -3
Time Online: 35 days 19 hours 26 minutes
Location: UK
Age: 50
Thank's again.

We do have a converter here: http://www.eblah.com/forum/m-1192743106/s-1/highlight-converter/#num3

With your knowledge, maybe you can take a look and update it if necessary.



Martin's Reputation: Increase
Logged Offline
Site Site Private Message Private message Reply: 3 - 5
panet
August 23, 2008, 1:39am Report to Moderator Report to Moderator

E-Blah Member
Posts: 4
Gender: Male
Posts Per Day: 0.04
Reputation: 100.00%
Reputation Score: +1 / -0
Time Online: 1 hours 42 minutes
Location: Rome, Italy
Quoted from Martin

I had a look to it, in fact I read it before deciding I wanted to write a new one... It's only designed for the non-SQL version of blah, while the most part of the work performed by my version is a SQL-to-SQL using simple queries.

By having a look at E-Blah code I found also that it could be useful to change the way it handles the HTML behaviour, first of all removing all hardcoded padding/spacing and introducing a lot of classes and ID attributes in order to make the CSS more effective.
In addition, the use of something like HTML::Template (saving in cache interpreted templates, through Storable) instead of hard-coding HTML could enhance the role of templates.

Unfortunately I'm currently working on the SQL version of E-Blah, and it sounds like a branch, a variation from the "main" release, then it wouldn't make very sense to operate such changes on this secondary branch...

Revision History (1 edits)
panet  -  August 23, 2008, 2:58am
Logged Offline
Site Site Private Message Private message Reply: 4 - 5
Justin
August 23, 2008, 11:38am Report to Moderator Report to Moderator

The E-Blah Developer
E-Blah Programmer
Posts: 15,075
Gender: Male
Posts Per Day: 6.52
Reputation: 93.40%
Reputation Score: +297 / -21
Time Online: 36 days 23 hours 27 minutes
Location: Tallassee, AL
Age: 22
Thanks, this is great.  

Could you package it up with a help file and allow me to add it to the downloads page?

And yes, it was branched in Feb/Mar 2007, I believe.  There's a lot that could be done with it, but I've just not had any time to spend working on either version lately.  


I do installs for $25 and upgrades for $20.
Technical support is always free.

  Donate to E-Blah!  

My Websites: Revolution Reality (My Blog)  |  MinistryTalk.com  |  Portfolio

"But you, O Lord, are a compassionate and gracious God, slow to anger, abounding in love and faithfulness." — Psalm 86:15 NIV

Logged Offline
Site Site Private Message Private message Reply: 5 - 5
1 Pages 1 Recommend Thread
Print

E-Blah Community    E-Blah SQL Technical Support    General E-Blah SQL  ›  Migrating from PhpBB2

Thread Tags