top



I was reading threads and tutorials, how to change this and that's...
it happened that i learned the replace with function of jquery...

but I am wondering if this is possible:

1. do you know the word censoring functionality of forumotion, well my intentions are..to have the same functionality..
but no character limit...
i got an idea of replacing all "units"(name of units) to a specific bbcodes and description..
e.g. incase you don't get what i mean...

i posted a battle report of the game, which contains the names of the units...
now, when i submit it, the name of the unit will be censored or replace with

Code:
[wow]custom:unitname,,description and stuffs, pictures or what so ever,/t[/wow]

what do you think? was it possible to have a word censoring and replace my desired words to another...
btw, if you will tell me to use word censoring, it will not work, because there is a character limit

Using javascript for this would be easy. By the way, Moved to the premium forums.
What is your board version?

im on phpbb2, why moved? do you think this a thing that's cool..hahaha

Not really, but, there's so many "rippers" around at FM.

Code:
<script>
$(function() {
  x = $('div').get();

  for (i = 0; i < x.length; i++) {
    x[i].innerHTML=x[i].innerHTML.replace('Foo', 'Saxaca').replace('Shoo', 'WD');
  };
});
</script>

i will create a html page out of this and link it using script src on over-all header..do you think it will work?

Code:
<script>
$(function() {
  x = $('div').get();

  for (i = 0; i < x.length; i++) {
    x[i].innerHTML=x[i].innerHTML.replace('Spixy', 'Cool').replace('[wow]custom:spixy is very cool,/t[/wow], 'WD');
  };
});
</script>
do you think that will work?

Then remove the script tags.

i will test it now....thanks...btw, does wow tag can contain pictures?

[locked]