added Members and Unjoin functionality, setting of public/private/invitation-
only for communities
This commit is contained in:
@@ -534,7 +534,8 @@ INSERT INTO namespaces (nsid, namespace) VALUES
|
||||
(16, 'http://www.silverwrist.com/NS/venice/2003/05/30/community.globals' ),
|
||||
(17, 'http://www.silverwrist.com/NS/venice/2003/05/31/sidebox.context.ids' ),
|
||||
(18, 'http://www.silverwrist.com/NS/venice/2003/05/31/test.sideboxes' ),
|
||||
(19, 'http://www.silverwrist.com/NS/venice/2003/06/03/standard.sideboxes' );
|
||||
(19, 'http://www.silverwrist.com/NS/venice/2003/06/03/standard.sideboxes' ),
|
||||
(20, 'http://www.silverwrist.com/NS/venice/2003/06/18/community.security' );
|
||||
|
||||
# Initial global properties setup
|
||||
INSERT INTO globalprop (nsid, prop_name, prop_value) VALUES
|
||||
@@ -672,6 +673,20 @@ Report abuses to: <abuse@example.com>'),
|
||||
#stacktrace( $except )
|
||||
-->
|
||||
#end'),
|
||||
(6, 'confirm.box',
|
||||
'<p><table align="center" width="70%" border="1" cellpadding="2" cellspacing="1">
|
||||
<tr valign="middle"><td class="confirmhead">
|
||||
#encodeHTML( $title )
|
||||
</td></tr>
|
||||
<tr valign="middle"><td class="confirmbody">
|
||||
<p>#encodeHTML( $message )</p>
|
||||
<p>
|
||||
<a href="#formatURL( $yes_type $yes_url )">#button( "IMAGE" "yes" )</a>
|
||||
|
||||
<a href="#formatURL( $no_type $no_url )">#button( "IMAGE" "no" )</a>
|
||||
</p>
|
||||
</td></tr>
|
||||
</table></p>'),
|
||||
(6, 'user.agreement',
|
||||
'Text of this agreement is to be determined.'),
|
||||
(12, 'confirm.message',
|
||||
@@ -1323,7 +1338,8 @@ INSERT INTO commprops (cid, nsid, prop_name, prop_value) VALUES
|
||||
(1, 15, 'region', '!XX' ),
|
||||
(1, 15, 'postal.code', '!00000' ),
|
||||
(1, 15, 'country', '_CTRY:US' ),
|
||||
(1, 15, 'url.homepage', '!http://venice.sourceforge.net' );
|
||||
(1, 15, 'url.homepage', '!http://venice.sourceforge.net' ),
|
||||
(1, 20, 'type.hint', 'I0' );
|
||||
|
||||
# Create the "global" menu. (ID #1)
|
||||
INSERT INTO menus (menuid, menu_nsid, menu_name, title, subtitle)
|
||||
@@ -1380,14 +1396,16 @@ INSERT INTO menuvars (menuid, var_name, default_val) VALUES
|
||||
(5, 'name', NULL);
|
||||
INSERT INTO menuitems (menuid, sequence, itemtype, text, linktype, link) VALUES
|
||||
(5, 0, 'TEXT', 'Home Page', 'SERVLET', 'community/${alias}' ),
|
||||
(5, 60000, 'TEXT', 'Members', 'SERVLET', 'TODO' ),
|
||||
(5, 60100, 'TEXT', 'Profile', 'SERVLET', 'comm/profile.js.vs?cc=${cid}' ),
|
||||
(5, 60200, 'TEXT', 'Administration', 'SERVLET', 'comm/admin/main.js.vs?cc=${cid}'),
|
||||
(5, 60300, 'SEPARATOR', NULL, NULL, NULL ),
|
||||
(5, 60400, 'TEXT', 'Unjoin', 'SERVLET', 'TODO' );
|
||||
UPDATE menuitems SET perm_nsid = 16, perm_name = 'administration' WHERE menuid = 5 AND sequence = 60200;
|
||||
UPDATE menuitems SET perm_nsid = 14, perm_name = 'unjoin' WHERE menuid = 5 AND sequence = 60300;
|
||||
(5, 100, 'MARKER', 'begin-services', NULL, NULL ),
|
||||
(5, 60000, 'MARKER', 'end-services', NULL, NULL ),
|
||||
(5, 60100, 'TEXT', 'Members', 'SERVLET', 'comm/members.js.vs?cc=${cid}' ),
|
||||
(5, 60200, 'TEXT', 'Profile', 'SERVLET', 'comm/profile.js.vs?cc=${cid}' ),
|
||||
(5, 60300, 'TEXT', 'Administration', 'SERVLET', 'comm/admin/main.js.vs?cc=${cid}'),
|
||||
(5, 60400, 'SEPARATOR', NULL, NULL, NULL ),
|
||||
(5, 60500, 'TEXT', 'Unjoin', 'SERVLET', 'comm/unjoin.js.vs?cc=${cid}' );
|
||||
UPDATE menuitems SET perm_nsid = 16, perm_name = 'administration' WHERE menuid = 5 AND sequence = 60300;
|
||||
UPDATE menuitems SET perm_nsid = 14, perm_name = 'unjoin' WHERE menuid = 5 AND sequence = 60400;
|
||||
UPDATE menuitems SET perm_nsid = 14, perm_name = 'unjoin' WHERE menuid = 5 AND sequence = 60500;
|
||||
|
||||
# Create the "top" menu (non-community). (ID #6)
|
||||
INSERT INTO menus (menuid, menu_nsid, menu_name, title, subtitle)
|
||||
|
||||
Reference in New Issue
Block a user