Certain Text Change
2 posters
Page 1 of 1
Certain Text Change
Can anyone tell me how to make a word (or words) with a certain string in them to be changed to another string and have a color added to them?
For example, FM has the "You have 1 new message" but with a yellowish color. My forum does not do this. Another thing is that I want to change any word with "Plazma Burst 2" to "Plazma Burst 2"
CSS and JavaScript are preferred.
Thanks.
For example, FM has the "You have 1 new message" but with a yellowish color. My forum does not do this. Another thing is that I want to change any word with "Plazma Burst 2" to "Plazma Burst 2"
CSS and JavaScript are preferred.
Thanks.
Re: Certain Text Change
Hello,
is your forum version #phpBB3 ?
and for
Have a nice day!
is your forum version #phpBB3 ?
and for
did you try the censor function of forumotion?Another thing is that I want to change any word with "Plazma Burst 2" to "Plazma Burst 2"
Have a nice day!
Re: Certain Text Change
@Niko phpbb3.
And Ik about the censor function I was talking about changing the text and the color of the word.
And Ik about the censor function I was talking about changing the text and the color of the word.
Re: Certain Text Change
Maybe you could try setting the "replacing-world" as:
or
I think one of this two solution could work well
- Code:
[color=red]text[/color]
or
- Code:
<font color="red">text</font>
I think one of this two solution could work well
Re: Certain Text Change
XD @Niko I meant that any word on the forum with a certain string automatically turns to another color or string.
Example: I type "Hey Forumotion".
Result: "Hey ForuMotion"
CSS and JavaScript are preferred.
Example: I type "Hey Forumotion".
Result: "Hey ForuMotion"
CSS and JavaScript are preferred.
Re: Certain Text Change
@Ace 1 did you try with the censor function before?
anyway, if you prefer #javascript this code should work:
for example this code replace the word twitter with twitter
the only limitation is that the first element (here: twitter) must be replace with the exact word or sentence you want to replace. This way, twitter will be replace, but not Twitter
anyway, if you prefer #javascript this code should work:
- Code:
$(document).ready(function() {
var c = document.getElementsByClassName('content clearfix');
for (i=0; i<c.length; i++) {
c[i].innerHTML = c[i].innerHTML.replace(/twitter/g,'<b><font color="#00a5cd">twitter</font></b>'); }});
for example this code replace the word twitter with twitter
the only limitation is that the first element (here: twitter) must be replace with the exact word or sentence you want to replace. This way, twitter will be replace, but not Twitter
Similar topics
» Chat box text color change/shadow change
» text change.
» Text change.
» Can someone please change this text for me please
» Change the text!
» text change.
» Text change.
» Can someone please change this text for me please
» Change the text!
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum