Migrating an old bbcode

Get help developing custom BBCodes or request one.
Post Reply
User avatar
Tomba
Registered User
Posts: 143
Joined: Tue Jun 18, 2002 7:52 am
Location: Belgium
Name: Steven De Groote
Contact:

Migrating an old bbcode

Post by Tomba »

Hi,

I'm looking into migrating a few old bbcodes to the media bbcode, which covers several of my cases.

As I want to avoid that posts from the past no longer parse correctly, I'd like to know if there is some procedure on what to do to replace these bbcodes in posts.

Basically, I need to replace [xxxx]123[/xxxx] to [media]123[/media]

Any help would be appreciated!
User avatar
stevemaury
Support Team Member
Support Team Member
Posts: 52768
Joined: Thu Nov 02, 2006 12:21 am
Location: The U.P.
Name: Steve
Contact:

Re: Migrating an old bbcode

Post by stevemaury »

Is xxxx any text?
I can stop all your spam. I can upgrade or update your Board. PM or email me. (Paid support)
User avatar
Tomba
Registered User
Posts: 143
Joined: Tue Jun 18, 2002 7:52 am
Location: Belgium
Name: Steven De Groote
Contact:

Re: Migrating an old bbcode

Post by Tomba »

Yes, it's just the name of an old bbcode that I want replaced.

Meanwhile I found also that I need to resubmit these posts, so I'm looking into a procedure that replaces this in the posts, and programatically resubmits each affected post.

I was hoping somebody had already done something similar.
User avatar
Sniper_E
Registered User
Posts: 1144
Joined: Wed May 09, 2007 12:18 am
Location: Shreveport, Louisiana
Name: Ed Humphrey
Contact:

Re: Migrating an old bbcode

Post by Sniper_E »

As far as I know if you replace [xxxx]123[/xxxx] with [media]123[/media] then you would have to go into every post and change the [xxxx]123[/xxxx] to [media]123[/media] or all of those posts will be broken.

Of course you could leave the [xxxx]123[/xxxx] bbcode in place and leave the Display on posting page box blank. And create your [media]123[/media] bbcode and check the Display on posting page box for that one to show. Then all new [media] bbcodes will be used in the future and the old posts will still be good.
Image . -.. / .... ..- -- .--. .... .-. . -.--
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!

:!: Sniper_E Styles | phpbbmodders :!:
Post Reply

Return to “Custom BBCode Development and Requests”