#author("2024-01-07T01:46:53+00:00","default:iseki","iseki") #author("2024-01-07T01:47:07+00:00","default:iseki","iseki") * OpenSim Group 機能 Flotsam Group Function[#z5b4f8d9] - グループ機能は外部のXMLRPCモジュール (''Flotsam Group Module'') を使う - ''Flotsam Group Module'' : http://code.google.com/p/flotsam/wiki/XmlRpcGroups ** インストール・設定 ([[Modlos]] を使用する場合はこの操作は不要)[#h0883852] *** インストール - 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 *** 設定ファイル [#oe312da2] **** 0.7Dev [#f2602d9b] - [[OpenSim.ini>/OpenSim/Config/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>/OpenSim/Config/GridCommon.ini]]の ''[Groups]セクション''にも ''GroupsServerURI''を設定する(OpenSim.iniより優先される気がする) [Groups] GroupsServerURI = http://www.opensim.tuis.ac.jp/modules/xoopensim/helper/xmlgroups.php **** 0.6.9 [#j7cb6512] - [[OpenSim.ini>/OpenSim/Config/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 [#he146d52] - OpenSim.iniの [Group]セクション [Groups] Enabled = true Module = XmlRpcGroups XmlRpcServiceURL = http://www.opensim.tuis.ac.jp/modules/xoopensim/helper/xmlgroups.php XmlRpcServiceReadKey = 読み込みキー XmlRpcServiceWriteKey = 書き込みキー *** Group削除 [#ad3c96fd] > 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'; ** Devel [#f3d9fc9f] *** Data - [[DB>./DB]] - [[Request>./Request]] - [[Response>./Response]] - [[Group Notice>./Group Notice]] *** 「グループ理念」 で日本語を出す. - phpxmlrpclib/xmlrpc.inc // by Fumi.Iseki for Japanese //$GLOBALS['xmlrpc_internalencoding']='ISO-8859-1'; $GLOBALS['xmlrpc_internalencoding']='UTF-8'; *** グループへの招待で xmlgrp.xmlへ渡されXMLるデータ [#ibaed9a7] - 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> #br