The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

How to edit for swearing and intro messages for AWC?

View previous topic View next topic Go down

In progress How to edit for swearing and intro messages for AWC?

Post by Doktoroktopus on March 7th 2013, 7:21 am

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?


Doktoroktopus
Forumember

Posts : 81
Reputation : 1
Language : English

http://www.club1kjho.com/

Back to top Go down

In progress Re: How to edit for swearing and intro messages for AWC?

Post by LGforum on March 10th 2013, 11:38 am

You put it directly below the AWC installation script - in the same JavaScript.

LGforum
Hyperactive

Male Posts : 2254
Reputation : 254
Language : English
Location : UK

http://www.avacweb.com/

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum