Skip to content

dlupu/bb_coder_stripper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome

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.

How to use :

  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] x [/b]” instead of “[b] x [/u]”)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages