Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

Repository files navigation

This is just a tool I used in order to strip some bbcodes from a phpbb mysql dump. The main idea is to take advantage of ActiveRecord database connector to speed up processing.

  1. Update the file config/database.yml if needed (point you development database to the phpbb mysql database)

  2. In terminal, run ‘rails console’

  3. Execute ‘User.sanitize_bb’

  4. Execute ‘Post.sanitize_bb’

Note : Execute steps 3 and 4 several times (until you get the following message in the terminal ‘updated O users/posts’). Reason : bbcodes that are wrongly closed (e.g “[b][u] x [/b][/u]” instead of “[b][u] x [/u][/b]”)

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages