Changing the spelling of a BBcode

Looking for a MOD? Have a MOD request? Post here for help. (Note: This forum is community supported; phpBB does not have official MOD authors)
Scam Warning
Locked
User avatar
Dragonwolf
Registered User
Posts: 603
Joined: Mon Aug 20, 2007 7:46 pm

Changing the spelling of a BBcode

Post by Dragonwolf » Sat Sep 24, 2011 11:31 am

My forum is aimed primarily at English users and I'd like to make it so that the [color] tag can be spelt both as [color] but also as [colour] and to make it so that the code the forum inserts is always spelt [colour]. Is there any way to do this?
Last edited by Dragonwolf on Sun Sep 25, 2011 6:35 pm, edited 1 time in total.

User avatar
Dragonwolf
Registered User
Posts: 603
Joined: Mon Aug 20, 2007 7:46 pm

Re: BBcode spelling Mod

Post by Dragonwolf » Sun Sep 25, 2011 6:34 pm

Can anyone help? :?

User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: Changing the spelling of a BBcode

Post by 4_seven » Sun Sep 25, 2011 6:39 pm

just add an additional bbcode [colour=#{SIMPLETEXT}]{TEXT}[/colour] with right replacement <span style="color:#{SIMPLETEXT};">{TEXT}</span>, so it works on both bbcode-tags automatically. just set the [colour] bbcode to not shown on post-box under acp > bbcodes, so the users are not confused.
Current Mods | Mod Base | php(BB) programming | No help via PM

User avatar
Dragonwolf
Registered User
Posts: 603
Joined: Mon Aug 20, 2007 7:46 pm

Re: Changing the spelling of a BBcode

Post by Dragonwolf » Thu Oct 13, 2011 5:02 pm

Thanks a lot! It seems to work! I would really rather hide the original one (or alter it), though, as it is a bit of a pest to have the colour-picker use color and the BBcode use colour.

User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: Changing the spelling of a BBcode

Post by 4_seven » Thu Oct 13, 2011 5:05 pm

just remove or comment out the genuine function from template-file.
i thought in prosilver => posting_buttons.html and posting_editor.html.

otherwise i say in my last post
just set the [colour] bbcode to not shown on post-box under acp > bbcodes, so the users are not confused.
so the additional codes are invisible, means in source-code only and 'eating no bread'
Current Mods | Mod Base | php(BB) programming | No help via PM

Locked

Return to “[3.0.x] MOD Requests”