Automatic colour names or words in post

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
Mike3396
Registered User
Posts: 3
Joined: Tue Jun 05, 2012 4:04 am

Automatic colour names or words in post

Post by Mike3396 »

Hey, I'm after a mod that will allow me to change specific words in a post to colour them.

Basically just like a censor so if someone types "Banana", for instance, I can make is so the word "Banana" will always appear yellow in a post.

I tried doing this with the censor setting by adding the same word but with colour tags, but it doesn't work, the colour tags just appear in plain text.

Basically, I want this to highlight user's names in posts, since we all have a different colour for our name it will be useful for any mentions of our name to appear in the same colour. If it makes a difference, some of us have nicknames that I would also like add, so I need something that isn't hard-coded to a users name. Something I can customise, like censors.

I hope I explained myself adequately. :s

Thanks for any help in advance :)

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

Re: Automatic colour names or words in post

Post by 4_seven »

Current Mods | Mod Base | php(BB) programming | No help via PM

Mike3396
Registered User
Posts: 3
Joined: Tue Jun 05, 2012 4:04 am

Re: Automatic colour names or words in post

Post by Mike3396 »


Thanks, man. Works PERFECTLY. I appreciate it!

Mike3396
Registered User
Posts: 3
Joined: Tue Jun 05, 2012 4:04 am

Re: Automatic colour names or words in post

Post by Mike3396 »

Ohhhh, now I have to be a pain again.

It does work perfectly, but if anyone quotes a post with any of the censor words in it, they have to manually delete the HTML code or else it will appear surrounding the censored word in plain text in the quotedd post.

Is there any way I can stop this?

I'm sorry for being so hopeless :(

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

Re: Automatic colour names or words in post

Post by 4_seven »

i take a look the next time..
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: Automatic colour names or words in post

Post by 4_seven »

New version out. Same link. Tested and works..
Current Mods | Mod Base | php(BB) programming | No help via PM

User avatar
trigger_error
I've Been Banned!
Posts: 200
Joined: Mon Feb 21, 2011 1:27 pm

Re: Automatic colour names or words in post

Post by trigger_error »

Works perfect. Big thanks :D

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

Re: Automatic colour names or words in post

Post by 4_seven »

Thanx or laudation and feedback..
Current Mods | Mod Base | php(BB) programming | No help via PM

jonas69
Registered User
Posts: 18
Joined: Sun Apr 10, 2011 11:16 am

Re: Automatic colour names or words in post

Post by jonas69 »

Hi, quite not bad, but still I see couple problems:
* meta title shows html code if there is keyword in a topic title
* if there is url in content it crashes all html.. example:
bla bla <a href="http://www.xx.com/keyword">keyword</a> - it tryes to replace url keyword first and there are html mess in that post later..

Best way would be replace just content (not include topics, meta titles).
Is that possible someday in a future? :)

User avatar
ViolaF
Registered User
Posts: 1471
Joined: Tue Aug 14, 2012 11:52 pm

Re: Automatic colour names or words in post

Post by ViolaF »

Ask @ the source of the code. The link is some posts up.

HeinzPSX
Registered User
Posts: 1
Joined: Tue Feb 10, 2015 8:56 pm

Re: Automatic colour names or words in post

Post by HeinzPSX »

Hi there,

I have 2 questions:

1. Is it possible to replace more than 1 word at the time?

2. Sometimes I get the failure message that my link is to long. Is it possible to avoid this message?


My Idea is to use the modded word replacement to convert 1 or more words to an affiliate link.

Regards,
HeinzPSX

marian0810
Former Team Member
Posts: 3011
Joined: Mon May 21, 2007 9:17 pm
Location: The Netherlands
Name: Marian
Contact:

Re: Automatic colour names or words in post

Post by marian0810 »

Since the author of that mod is currently banned here, the best place to ask would be his own forum - just follow the link a few posts above yours :)

Closing this because there's no point in leaving it open anymore.
You and me, time and space. You watch us run!

Locked

Return to “[3.0.x] MOD Requests”