Offline Messaging
From OpenSimulator
(→Through OpenSim.Wiredux as a module) |
(→Through OpenSim.Wiredux as a module) |
||
Line 13: | Line 13: | ||
Note: For Windows users or those who have not used Subversion before, the [http://www.codinghorror.com/blog/2008/04/setting-up-subversion-on-windows.html instructions to set up the TortoiseSVN client on Windows] may be helpful (scroll down for the client part of the instructions). After you've installed TortoiseSVN, then create a directory in the location of your choosing and then right click - choose "SVN Checkout..." - and enter the URL provided above to download the entire package. When the screen appears to enter the username and password, username: anonymous password: [blank]. | Note: For Windows users or those who have not used Subversion before, the [http://www.codinghorror.com/blog/2008/04/setting-up-subversion-on-windows.html instructions to set up the TortoiseSVN client on Windows] may be helpful (scroll down for the client part of the instructions). After you've installed TortoiseSVN, then create a directory in the location of your choosing and then right click - choose "SVN Checkout..." - and enter the URL provided above to download the entire package. When the screen appears to enter the username and password, username: anonymous password: [blank]. | ||
− | * | + | * Create a directory in your webserver root folder called "offlineIM" and copy the contents of the package "webroot" directory to your "offlineIM" directory. Note: IIS users, your webserver root folder is C:\inetpub\wwwroot. |
+ | |||
+ | * Create the necessary tables using the wi_offline_msg.sql file in the package on your opensim database | ||
+ | |||
+ | In the package, you'll find \branches\jamenai\trunk\install\sql_update\wi_offline_msgs.sql. Run it. | ||
+ | <pre> | ||
+ | mysql> source /(your_path_to_the_package)/branches/jamenai/trunk/install/sql_update/wi_offline_msgs.sql | ||
+ | </pre> | ||
+ | It will create the tables for ofline IMs. Note that the recent version(5.X) of mysql server may fail to create them. If so, change | ||
+ | * ''timestamp(14)'' to ''timestamp'' | ||
+ | * ''TYPE=MyISAM'' to ''ENGINE=MyISAM'' | ||
+ | and try again. | ||
You need to enable the Offline Messaging Module in your Opensim.ini file. | You need to enable the Offline Messaging Module in your Opensim.ini file. |
Revision as of 08:18, 9 November 2011
Offline messaging makes it possible to send IM's to people that are not online and saves the messages directly to a database.
Through OpenSim.Wiredux as a module
In the latest version of OpenSim.Wiredux the offline module is already ready to be used
- Grab the latest version of the Wiredux from http://forge.opensimulator.org/svn/opensimwi
Note: For Windows users or those who have not used Subversion before, the instructions to set up the TortoiseSVN client on Windows may be helpful (scroll down for the client part of the instructions). After you've installed TortoiseSVN, then create a directory in the location of your choosing and then right click - choose "SVN Checkout..." - and enter the URL provided above to download the entire package. When the screen appears to enter the username and password, username: anonymous password: [blank].
- Create a directory in your webserver root folder called "offlineIM" and copy the contents of the package "webroot" directory to your "offlineIM" directory. Note: IIS users, your webserver root folder is C:\inetpub\wwwroot.
- Create the necessary tables using the wi_offline_msg.sql file in the package on your opensim database
In the package, you'll find \branches\jamenai\trunk\install\sql_update\wi_offline_msgs.sql. Run it.
mysql> source /(your_path_to_the_package)/branches/jamenai/trunk/install/sql_update/wi_offline_msgs.sql
It will create the tables for ofline IMs. Note that the recent version(5.X) of mysql server may fail to create them. If so, change
- timestamp(14) to timestamp
- TYPE=MyISAM to ENGINE=MyISAM
and try again.
You need to enable the Offline Messaging Module in your Opensim.ini file.
Changes in the OpenSim.ini file
[Messaging] ; Control which region module is used for instant messaging. ; Default is InstantMessageModule (this is the name of the core IM module as well as the setting) InstantMessageModule = InstantMessageModule ; MessageTransferModule = MessageTransferModule OfflineMessageModule = OfflineMessageModule OfflineMessageURL = http://yourserver/offline.php MuteListModule = MuteListModule MuteListURL = http://yourserver/mute.php
When you did it right, reboot your region and try to send a message to an offline person. Check the database to see that it has written a record.
Next time that person logs in, he will get the message and the database will be updated
P.D: The MuteListModule and URL must be uncommented in order for the offline module to work, even if there is no mute.php file in the web folder.