ページ内コンテンツ
OpenSim Group 機能 Flotsam Group Function
- グループ機能は外部のXMLRPCモジュール (Flotsam Group Module) を使う
- Flotsam Group Module : http://code.google.com/p/flotsam/wiki/XmlRpcGroups
インストール・設定 (XoopenSimを使用する場合はこの操作は不要)
- svn
svn checkout http://flotsam.googlecode.com/svn/trunk/ flotsam cp -Rpd flotsam/Groups/php XmlRpcGroups
- MySQL
> create database opensim_group; > grant all on opensim_group.* to opensim_gp_user identified by 'opensim_GP_Passwd'; > source XmlRpcGroups/groups.sql
- Configuration File
cp condig.inc.example config.inc vi config.inc
0.7Dev
- OpenSim.iniの [Groups]セクションに XoopenSimの一般設定で指定した「読み込み/書き込みアクセスキー」と xmlgroups.phpのURIを指定する
[Groups] Enabled = true Module = GroupsModule NoticesEnabled = true MessagingModule = GroupsMessagingModule MessagingEnabled = true ServicesConnectorModule = XmlRpcGroupsServicesConnector GroupsServerURI = http://www.opensim.tuis.ac.jp/modules/xoopensim/helper/xmlgroups.php XmlRpcServiceReadKey = 読み込みキー XmlRpcServiceWriteKey = 書き込みキー
- config-include/GridCommon.iniの [Groups]セクションにも GroupsServerURIを設定する(OpenSim.iniより優先される気がする)
[Groups] GroupsServerURI = http://www.opensim.tuis.ac.jp/modules/xoopensim/helper/xmlgroups.php
0.6.9
- OpenSim.iniの [Group]セクションに XoopenSimの一般設定で指定した「読み込み/書き込みアクセスキー」と xmlgroups.phpのURLを指定する
[Groups] Enabled = true Module = GroupsModule NoticesEnabled = true MessagingModule = GroupsMessagingModule MessagingEnabled = true XmlRpcServiceURL = http://www.opensim.tuis.ac.jp/modules/xoopensim/helper/xmlgroups.php XmlRpcServiceReadKey = 読み込みキー XmlRpcServiceWriteKey = 書き込みキー
0.6.8
- OpenSim.iniの [Group]セクション
[Groups] Enabled = true Module = XmlRpcGroups XmlRpcServiceURL = http://www.opensim.tuis.ac.jp/modules/xoopensim/helper/xmlgroups.php XmlRpcServiceReadKey = 読み込みキー XmlRpcServiceWriteKey = 書き込みキー
Group削除
> delete from xxxxxx_xoopensim_group_role where GroupID='4c551a81-3c3c-402f-895e-ce60d2612a60'; > delete from xxxxxx_xoopensim_group_active where ActiveGroupID='4c551a81-3c3c-402f-895e-ce60d2612a60'; > delete from xxxxxx_xoopensim_group_list where GroupID='4c551a81-3c3c-402f-895e-ce60d2612a60'; > delete from xxxxxx_xoopensim_group_invite where GroupID='4c551a81-3c3c-402f-895e-ce60d2612a60'; > delete from xxxxxx_xoopensim_group_notice where GroupID='4c551a81-3c3c-402f-895e-ce60d2612a60'; > delete from xxxxxx_xoopensim_group_membership where GroupID='4c551a81-3c3c-402f-895e-ce60d2612a60'; > delete from xxxxxx_xoopensim_group_rolemembership where GroupID='4c551a81-3c3c-402f-895e-ce60d2612a60';
Hack
- 「グループ理念」 で日本語を出す.
phpxmlrpclib/xmlrpc.inc 231 // by Fumi.Iseki for Japanese 232 //$GLOBALS['xmlrpc_internalencoding']='ISO-8859-1'; 233 $GLOBALS['xmlrpc_internalencoding']='UTF-8';
グループへの招待で xmlgrp.xmlへ渡されXMLるデータ
- 751c1531-03b5-48a9-8f2d-51a0527be7ca から 35a5c2b1-7d9f-48b6-85d7-938a75d30829 へのグループ勧誘
<?xml version="1.0" encoding="utf-8"?> <methodCall> <methodName>groups.addAgentToGroupInvite</methodName> <params><param><value><struct> <member><name>RequestingAgentUserService</name><value><string /></value></member> <member><name>ReadKey</name><value><string>80386</string></value></member> <member><name>AgentID</name><value><string>35a5c2b1-7d9f-48b6-85d7-938a75d30829</string></value></member> <member><name>requestingAgentID</name><value><string>751c1531-03b5-48a9-8f2d-51a0527be7ca</string></value></member> <member><name>RequestingSessionID</name><value><string>00000000-0000-0000-0000-000000000000</string></value></member> <member><name>GroupID</name><value><string>17285894-1d12-4496-9a19-c131f98403f8</string></value></member> <member><name>InviteID</name><value><string>14b71ed6-64db-4b61-9844-bf7e8ad55d60</string></value></member> <member><name>WriteKey</name><value><string>Z8000</string></value></member> <member><name>RoleID</name><value><string>00000000-0000-0000-0000-000000000000</string></value></member> </struct></value></param></params> </methodCall> <?xml version="1.0" encoding="utf-8"?> <methodCall> <methodName>groups.getAgentToGroupInvite</methodName> <params><param><value><struct> <member><name>WriteKey</name><value><string>Z8000</string></value></member> <member><name>RequestingSessionID</name><value><string>00000000-0000-0000-0000-000000000000</string></value></member> <member><name>ReadKey</name><value><string>80386</string></value></member> <member><name>RequestingAgentUserService</name><value><string /></value></member> <member><name>requestingAgentID</name><value><string>751c1531-03b5-48a9-8f2d-51a0527be7ca</string></value></member> <member><name>InviteID</name><value><string>14b71ed6-64db-4b61-9844-bf7e8ad55d60</string></value></member> </struct></value></param></params> </methodCall>
Counter: 3567,
today: 1,
yesterday: 0
最終更新: 2010-04-18 (日) 22:20:09 (JST) (5324d) by admin