How to edit for swearing and intro messages for AWC?
2 posters
Page 1 of 1
How to edit for swearing and intro messages for AWC?
Hello!
I'd like to add the following message to my AWC chat as a prompt when someone logs in to the chat:
"Welcome to Club 1kJho's Chat Centre! You can check out a list of the chatbox commands by typing /cmd into the message box. Any excessive profanity or derogatory terms will cause you to be banned. Feel free to ask for hunting partners!"
1) Does anyone know the coding for this?
I'd also like to censor bad words. I know the AWC says this:
" avacweb_chat_config.message_hook.push(function(row, username, user_id, user, msg) {
msg.innerHTML = msg.innerHTML.replace(/\b(stupid|idiot)\b/gi, '[CENSORED]');
});"
2) But I'm not sure where to put it in the AWC javascript. Any suggestions?
I'd like to add the following message to my AWC chat as a prompt when someone logs in to the chat:
"Welcome to Club 1kJho's Chat Centre! You can check out a list of the chatbox commands by typing /cmd into the message box. Any excessive profanity or derogatory terms will cause you to be banned. Feel free to ask for hunting partners!"
1) Does anyone know the coding for this?
I'd also like to censor bad words. I know the AWC says this:
" avacweb_chat_config.message_hook.push(function(row, username, user_id, user, msg) {
msg.innerHTML = msg.innerHTML.replace(/\b(stupid|idiot)\b/gi, '[CENSORED]');
});"
2) But I'm not sure where to put it in the AWC javascript. Any suggestions?
Re: How to edit for swearing and intro messages for AWC?
You put it directly below the AWC installation script - in the same JavaScript.
LGforum- Hyperactive
- Posts : 2265
Reputation : 264
Language : English
Location : UK
Similar topics
» Further edit problems re members cannot edit their messages
» [HELP] - Can't edit the image for "Messages"
» edit and delete messages ?
» Can't edit private messages section of nav bar.
» Edit and Change the text of menu buttons/and all messages on forum
» [HELP] - Can't edit the image for "Messages"
» edit and delete messages ?
» Can't edit private messages section of nav bar.
» Edit and Change the text of menu buttons/and all messages on forum
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum