discussion stuff
This commit is contained in:
parent
776b5b02e2
commit
cb55619457
1 changed files with 22 additions and 26 deletions
|
|
@ -4,8 +4,8 @@ insert into international (internationalId,languageId,namespace,message,lastUpda
|
|||
delete from international where languageId=1 and namespace='WebGUI' and internationalId=622;
|
||||
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (622,1,'WebGUI','See <i>Manage Group</i> for a description of grouping functions and the default groups.\r\n<p>\r\n\r\n<b>Group Name</b><br>\r\nA name for the group. It is best if the name is descriptive so you know what it is at a glance.\r\n<p>\r\n\r\n<b>Description</b><br>\r\nA longer description of the group so that other admins and content managers (or you if you forget) will know what the purpose of this group is.\r\n<p>\r\n\r\n<b>Expire Offset</b><br>\r\nThe amount of time that a user will belong to this group before s/he is expired (or removed) from it. This is very useful for membership sites where users have certain privileges for a specific period of time. \r\n<p>\r\n<b>NOTE:</b> This can be overridden on a per-user basis.\r\n<p>\r\n\r\n<b>Notify user about expiration?</b><br>\r\nSet this value to yes if you want WebGUI to contact the user when they are about to be expired from the group.\r\n<p>\r\n\r\n<b>Expire Notification Offset</b><br>\r\nThe difference in the number of days from the expiration to the notification. You may set this to any valid integer. For instance, set this to "0" if you wish the notification to be sent on the same day that the grouping expires. Set it to "-7" if you want the notification to go out 7 days <b>before</b> the grouping expires. Set it to "7" if you wish the notification to be sent 7 days after the expiration.\r\n<p>\r\n\r\n<b>Expire Notification Message</b><br>\r\nType the message you wish to be sent to the user telling them about the expiration.\r\n<p>\r\n\r\n<b>Delete Offset</b><br>\r\nThe difference in the number of days from the expiration to the grouping being deleted from the system. You may set this to any valid integer. For instance, set this to "0" if you wish the grouping to be deleted on the same day that the grouping expires. Set it to "-7" if you want the grouping to be deleted 7 days <b>before</b> the grouping expires. Set it to "7" if you wish the grouping to be deleted 7 days after the expiration.\r\n<p>\r\n\r\n<b>IP Address</b><br>\r\nSpecify an IP address or an IP mask to match. If the user\'s IP address matches, they\'ll automatically be included in this group. An IP mask is simply the IP address minus an octet or two. You may also specify multiple IP masks separated by semicolons.\r\n<p>\r\n<i>IP Mask Example:</i> 10.;192.168.;101.42.200.142\r\n<p>\r\n\r\n<b>Karma Threshold</b><br>\r\nIf you\'ve enabled Karma, then you\'ll be able to set this value. Karma Threshold is the amount of karma a user must have to be considered part of this group.\r\n<p>\r\n\r\n\r\n<b>Users can add themselves?</b><br>\r\nDo you wish to let users add themselves to this group? See the GroupAdd macro for more info.\r\n<p>\r\n\r\n<b>Users can remove themselves?</b><br>\r\nDo you wish to let users remove themselves from this group? See the GroupDelete macro for more info.\r\n<p>\r\n\r\n<i>The following options are recommended only for advanced WebGUI administrators.</i>\r\n<p>\r\n\r\n<b>Database Link</b><br>\r\nIf you\'d like to have this group validate users using an external database, choose the database link to use.\r\n<p>\r\n\r\n<b>SQL Query</b><br>\r\nMany organizations have external databases that map users to groups; for example an HR database might map Employee ID to Health Care Plan. To validate users against an external database, you need to construct a SQL statement that will return 1 if a user is in the group. Make sure to begin your statement with "select 1". You may use macros in this query to access data in a user\'s profile, such as Employee ID. Here is an example that checks a user against a fictional HR database. This assumes you have created an additional profile field called employeeId.<br>\r\n<br>\r\nselect 1 from employees, health_plans, empl_plan_map<br>\r\nwhere employees.employee_id = ^User("employeeId");<br>\r\nand health_plans.plan_name = \'HMO 1\'<br>\r\nand employees.employee_id = empl_plan_map.employee_id<br>\r\nand health_plans.health_plan_id = empl_plan_mp.health_plan_id<br>\r\n<br>\r\nThis group could then be named "Employees in HMO 1", and would allow you to restrict any page or wobject to only those users who are part of this health plan in the external database.\r\n<p>\r\n\r\n<b>Cache external groups for how long?</b><br>\r\nLarge sites using external group data will be making many calls to the external database. To help reduce the load, you may select how long you\'d like to cache the results of the external database query within the WebGUI database. More advanced background caching may be included in a future version of WebGUI.',1053779630);
|
||||
|
||||
create table discuss (
|
||||
discussId int not null primary key,
|
||||
create table forum (
|
||||
forumId int not null primary key,
|
||||
addEditStampToPosts int not null default 1,
|
||||
filterPosts varchar(30) default 'javascript',
|
||||
karmaPerPost int not null default 0,
|
||||
|
|
@ -18,16 +18,16 @@ create table discuss (
|
|||
allowReplacements int not null default 1
|
||||
);
|
||||
|
||||
create table discussReplacement (
|
||||
discussReplacementId int not null primary key,
|
||||
create table forumReplacement (
|
||||
forumReplacementId int not null primary key,
|
||||
pattern varchar(255),
|
||||
replaceWith varchar(255)
|
||||
);
|
||||
|
||||
create table discussPost (
|
||||
postId int not null primary key,
|
||||
create table forumPost (
|
||||
forumPostId int not null primary key,
|
||||
parentId int not null,
|
||||
threadId int not null,
|
||||
forumThreadId int not null,
|
||||
userId int not null,
|
||||
username varchar(30),
|
||||
subject varchar(255),
|
||||
|
|
@ -39,15 +39,15 @@ create table discussPost (
|
|||
contentType varchar(30) not null default 'some html'
|
||||
);
|
||||
|
||||
create table discussPostAttachment (
|
||||
discussPostAttachmentId int not null primary key,
|
||||
create table forumPostAttachment (
|
||||
forumPostAttachmentId int not null primary key,
|
||||
postId int not null,
|
||||
filename varchar(255)
|
||||
);
|
||||
|
||||
create table discussThread (
|
||||
threadId int not null primary key,
|
||||
discussId int not null,
|
||||
create table forumThread (
|
||||
forumThreadId int not null primary key,
|
||||
forumId int not null,
|
||||
rootPostId int not null,
|
||||
views int not null,
|
||||
replies int not null,
|
||||
|
|
@ -56,33 +56,29 @@ create table discussThread (
|
|||
isSticky int not null
|
||||
);
|
||||
|
||||
create table discussRead (
|
||||
create table forumRead (
|
||||
userId int not null,
|
||||
postId int not null,
|
||||
discussId int not null,
|
||||
threadId int not null,
|
||||
forumPostId int not null,
|
||||
lastRead int not null,
|
||||
primary key (userId, postId)
|
||||
);
|
||||
|
||||
create table discussBookmark (
|
||||
create table forumBookmark (
|
||||
userId int not null,
|
||||
postId int not null,
|
||||
threadId int not null,
|
||||
forumPostId int not null,
|
||||
primary key (userId, postId)
|
||||
);
|
||||
|
||||
|
||||
create table discussThreadSubscription (
|
||||
discussThreadId int not null,
|
||||
create table forumThreadSubscription (
|
||||
forumThreadId int not null,
|
||||
userId int not null,
|
||||
primary key (discussThreadId, userId)
|
||||
primary key (forumThreadId, userId)
|
||||
);
|
||||
|
||||
create table discussSubscription (
|
||||
discussId int not null,
|
||||
create table forumSubscription (
|
||||
forumId int not null,
|
||||
userId int not null,
|
||||
primary key (discussId, userId)
|
||||
primary key (forumId, userId)
|
||||
);
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue