BBcode in censor replacement

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
User avatar
Flor1s
Registered User
Posts: 12
Joined: Sun Sep 13, 2009 7:47 am
Location: Holland
Contact:

Re: BBcode in censor replacement

Postby Flor1s » Thu Apr 22, 2010 8:50 pm

Thanks again.
By the time I would have found out what to code, you probably would have fixed it already. :)
Do you perhaps have a suggestion how to censors
F. katus into Felix catus?
The katus would be in the table as a single word, but putting F. in the table as a single word is not possible, because there are several possibilities depending on the word after it.
Putting 'F. katus' in it as a single entry, would result in a double censor, with a possibility for double tags.

However, this is just a wish, and not in the original mod request. We could easily correct these misspellings by hand.

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

Re: BBcode in censor replacement

Postby 4_seven » Thu Apr 22, 2010 9:32 pm

F. katus into Felix catus?


ACP Censor
http://www.loaditup.de/files/487602.png

Post:
Flor1s wrote:Fluffy animal.


F. katus


Link:
http://4seven.kilu.de/phpbb3/viewtopic.php?p=1201#p1201
Last edited by 4_seven on Fri Apr 23, 2010 12:35 pm, edited 1 time in total.
Current Mods | Mod Base | php(BB) programming | No help via PM

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

Re: BBcode in censor replacement

Postby 4_seven » Fri Apr 23, 2010 12:35 pm

[Snippet] Instruction updated and tested..
http://4seven.kilu.de/forum/phpbb3/view ... 65&start=0
Current Mods | Mod Base | php(BB) programming | No help via PM

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

Re: BBcode in censor replacement

Postby 4_seven » Fri Apr 23, 2010 11:20 pm

I found a little boob in instruction :geek:

replace in instruction all

Code: Select all

#U',


with

Code: Select all

#is',


Main Instruction is updated
Current Mods | Mod Base | php(BB) programming | No help via PM

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

Re: BBcode in censor replacement

Postby 4_seven » Sun Apr 25, 2010 2:28 pm

New Edits for PM Area

main instruction is updated
Last edited by 4_seven on Tue May 11, 2010 8:30 pm, edited 1 time in total.
Current Mods | Mod Base | php(BB) programming | No help via PM

Mattun
Registered User
Posts: 7
Joined: Sat May 01, 2010 8:47 pm

Re: BBcode in censor replacement

Postby Mattun » Thu May 06, 2010 8:40 am

Hello,

I am looking for something like this, only I would like to use it to automatically provide a mouse-over on abbreviations, by writing these in the word censor system.

As I understand this modification, it only works to make words bold, italic, or underlined, am I right?
Would it be possible to extend it to other BBCode, like the one I use for the mouse-overs:

Code: Select all

BBCode: [abbr={SIMPLETEXT1}]{SIMPLETEXT2}[/abbr]
HTML: <abbr title="{SIMPLETEXT1}">{SIMPLETEXT2}</abbr>
?

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

Re: BBcode in censor replacement

Postby 4_seven » Thu May 06, 2010 9:02 pm

Mattun wrote:As I understand this modification, it only works to make words bold, italic, or underlined, am I right?


no, it works for all html formattings

simple reduce or expand the list.

example

Code: Select all

        array(
        '#\[b\](.*?)\[\/b\]#is',
        '#\[i\](.*?)\[\/i\]#is',
        '#\[abbr\](.*?)\[\/abbr\]#is'
        ),     
       
        array(
        '<span style="font-weight: bold;">$1</span>',
        '<span style="font-style: italic;">$1</span>',
        '<abbr>$1</abbr>'       
 ),


but u can use it only with a one-dimensional bbcode and replacement

[abbr]{SIMPLETEXT}[/abbr]

not with

[abbr={SIMPLETEXT1}]{SIMPLETEXT2}[/abbr]

read further instruction here
http://4seven.kilu.de/forum/phpbb3/view ... 65&start=0
Current Mods | Mod Base | php(BB) programming | No help via PM

Mattun
Registered User
Posts: 7
Joined: Sat May 01, 2010 8:47 pm

Re: BBcode in censor replacement

Postby Mattun » Fri May 07, 2010 11:45 am

So that still means I cannot use it for my purpose. Thanks for your answer anyway :)

User avatar
Forum_espada_clan
Registered User
Posts: 13
Joined: Mon May 16, 2011 8:19 pm
Location: Ukraine
Contact:

Re: BBcode in censor replacement

Postby Forum_espada_clan » Sat Oct 15, 2011 3:32 pm


This link is broken. And I need that solution with bbcode in word sensor very much. Can You post a new link here, please :(
Sorry for my English, it's not my native language. :oops:

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

Re: BBcode in censor replacement

Postby 4_seven » Sat Oct 15, 2011 6:57 pm

read my signature. unfortunely the link is not in google-cache anymore
Current Mods | Mod Base | php(BB) programming | No help via PM

User avatar
Forum_espada_clan
Registered User
Posts: 13
Joined: Mon May 16, 2011 8:19 pm
Location: Ukraine
Contact:

Re: BBcode in censor replacement

Postby Forum_espada_clan » Sun Oct 16, 2011 6:35 pm

4_seven Thanks a lot! But, can You please post an exact link to this mode? I can't fined it on Your websites :oops:
Sorry for my English, it's not my native language. :oops:

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

Re: BBcode in censor replacement

Postby 4_seven » Sun Oct 16, 2011 7:20 pm

I mean, it seems this post is lost
4_seven wrote:unfortunely the link is not in google-cache anymore

edit: found it here
http://webcache.googleusercontent.com/s ... clnk&gl=de
Current Mods | Mod Base | php(BB) programming | No help via PM


Return to “[3.0.x] MOD Requests”

Who is online

Users browsing this forum: corleoner and 16 guests