Migrating an old bbcode

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

Migrating an old bbcode

Post by Tomba » Sun Sep 17, 2017 7:26 pm

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: 47786
Joined: Thu Nov 02, 2006 12:21 am
Location: The U.P.
Name: Steve
Contact:

Re: Migrating an old bbcode

Post by stevemaury » Sun Sep 17, 2017 8:00 pm

Is xxxx any text?
For REALLY good and VERY inexpensive hosting CLICK HERE

All unsolicited PMs will be ignored.

Tomba
Registered User
Posts: 128
Joined: Tue Jun 18, 2002 7:52 am
Location: Belgium
Name: Steven De Groote
Contact:

Re: Migrating an old bbcode

Post by Tomba » Mon Sep 18, 2017 6:26 pm

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: 582
Joined: Wed May 09, 2007 12:18 am
Location: Shreveport, Louisiana
Name: Ed Humphrey
Contact:

Re: Migrating an old bbcode

Post by Sniper_E » Tue Sep 19, 2017 4:52 am

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”

Who is online

Users browsing this forum: No registered users and 5 guests

cron