Community Central
Community Central

This is a guide on how to use my chat logger script. For the script to work correctly, please import Monchoman45's Chat Hacks script too, as that will make the script load. So, to start, add this to your wikia.js file:

importScriptPage('User:Monchoman45/ChatHacks.js', 'c'); 
 
importScriptPage('User:Joeytje50/ChatLogger.js', 'runescape');

Then please make sure that the browser the chat logger is in is another browser than your regular browser where you are logged in with your main account. Make sure your cache is emptied, and join the chat using the button in the sidebar on any wiki page. If you get a message that chat hacks is loaded, the chat logger is also loaded. Then hover over the "Ping phrases" in the top row of your screen. Replace the contents (should be the logger account's username) of the textarea that appears then with a random string (make it a long one which nobody will ever say in the chat) and hover away from the box. Now make sure that the bot stays in the chat all the time (so make sure your computer doesn't automatically go into stand-by or something, that will make it disconnect) and that you do not log out from the logger's account. Then go to the "<wikiname>:Chat/Logs" (so in community central's case, "Community Central:Chat/Logs") and create it with the following:

<table class="forumlist" width="100%">
  <tr>
    <th colspan="3" style="background-color:#CCCCE8; color:#000;">Chat logs</th>
  </tr>
<forum>
  namespace=Project
  category=Wikia Chat logs
  shownamespace=false
  omit=Chat/Logs/
  addlasteditor=false
  cache=false
</forum>
</table>
<table class="forumlist" width="100%">
  <tr>
    <th colspan="3" style="background-color:#CCCCE8; color:#000;">All [[:Category:Wikia Chat logs|Chat logs]]</th>
  </tr>
</table>

You can add anything before that as introduction. For an example, please see the RuneScape Wiki's index page.

To set an interval of submitting logs, put var logInterval = (amount of milliseconds); above the import. The default is 1 hour. For example to change it to 2 hours, use the following:

importScriptPage('User:Monchoman45/ChatHacks.js', 'c'); 

var logInterval = 1800000;

importScriptPage('User:Joeytje50/ChatLogger.js', 'runescape');

If you find any errors or bugs, or need help with this script, feel free to ask me on my talk page on the RuneScape Wiki (I don't like the message wall, so I prefer my talk page there).