Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForumForum4.4.3 Upgrade User Rights Issues4.4.3 Upgrade User Rights Issues
Previous
 
Next
New Post
4/29/2008 8:52 AM
 

Hi, I have upgraded my development server to 4.4.3 and noticed that all registered users automatically are moderators and worse still can administer the forum.  The forums were unmoderated before.  The admin was able to delete or edit offending posts.

I have tried to change role access through the forum admin panel but even though it does not give errors when I go back to the forum rights it has reverted back to the original setup mentioned above.

I really want to upgrade my production server soon to meet my users expectations but need to sort this out first.

Help...

Brian

 
New Post
4/29/2008 10:13 AM
 

You will need to go to Host -> SQL and select "Run as script" and make sure there are several extra spaces at the end.

DECLARE @ModuleDefID int
SELECT @ModuleDefID = ModuleDefID FROM {databaseOwner}{objectQualifier}ModuleDefinitions WHERE FriendlyName = 'Forum'

IF @ModuleDefID > 0
BEGIN
DELETE FROM {databaseOwner}{objectQualifier}Lists WHERE DefinitionID = @ModuleDefId
END

DELETE FROM {databaseOwner}{objectQualifier}Lists WHERE DefinitionID = 0 AND ListName = 'ThreadStatus'

DELETE FROM {databaseOwner}{objectQualifier}Lists WHERE DefinitionID = 0 AND ListName = 'EmailFormat'

DELETE FROM {databaseOwner}{objectQualifier}Lists WHERE DefinitionID = 0 AND ListName = 'GroupView'

DELETE FROM {databaseOwner}{objectQualifier}Lists WHERE DefinitionID = 0 AND ListName = 'ForumMemberName'

DELETE FROM {databaseOwner}{objectQualifier}Lists WHERE DefinitionID = 0 AND ListName = 'ForumThreadRate'

DELETE FROM {databaseOwner}{objectQualifier}Lists WHERE DefinitionID = 0 AND ListName = 'TrackingDuration'

DELETE FROM {databaseOwner}{objectQualifier}Lists WHERE DefinitionID = 0 AND ListName = 'DisplayPosterLocation'

DELETE FROM {databaseOwner}{objectQualifier}Lists WHERE DefinitionID = 0 AND ListName = 'ForumType'


INSERT INTO {databaseOwner}{objectQualifier}Lists
(ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID)
VALUES
('ThreadStatus', '0', 'NoneSpecified', 0, 0, 1, @ModuleDefId)

INSERT INTO {databaseOwner}{objectQualifier}Lists
(ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID)
VALUES
('ThreadStatus', '1', 'Unanswered', 0, 0, 2, @ModuleDefId)

INSERT INTO {databaseOwner}{objectQualifier}Lists
(ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID)
VALUES
('ThreadStatus', '2', 'Answered', 0, 0, 3, @ModuleDefId)

INSERT INTO {databaseOwner}{objectQualifier}Lists
(ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID)
VALUES
('ThreadStatus', '3', 'Informative', 0, 0, 4, @ModuleDefId)

INSERT INTO {databaseOwner}{objectQualifier}Lists
(ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID)
VALUES
('EmailFormat', '0', 'Text', 0, 0, 2, @ModuleDefId)

INSERT INTO {databaseOwner}{objectQualifier}Lists
(ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID)
VALUES
('EmailFormat', '1', 'HTML', 0, 0, 1, @ModuleDefId)

INSERT INTO {databaseOwner}{objectQualifier}Lists
(ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID)
VALUES
('GroupView', '0', 'AllExpanded', 0, 0, 1, @ModuleDefId)

INSERT INTO {databaseOwner}{objectQualifier}Lists
(ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID)
VALUES
('GroupView', '-1', 'AllCollapsed', 0, 0, 2, @ModuleDefId)

INSERT INTO {databaseOwner}{objectQualifier}Lists
(ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID)
VALUES
('GroupView', '1', 'AsLastViewed', 0, 0, 3, @ModuleDefId)

INSERT INTO {databaseOwner}{objectQualifier}Lists
(ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID)
VALUES
('ForumMemberName', '0', 'Username', 0, 0, 1, @ModuleDefId)

INSERT INTO {databaseOwner}{objectQualifier}Lists
(ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID)
VALUES
('ForumMemberName', '1', 'DisplayName', 0, 0, 2, @ModuleDefId)

INSERT INTO {databaseOwner}{objectQualifier}Lists
(ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID)
VALUES
('ForumThreadRate', '0', 'Rate0', 0, 0, 1, @ModuleDefId)

INSERT INTO {databaseOwner}{objectQualifier}Lists
(ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID)
VALUES
('ForumThreadRate', '1', 'Rate1', 0, 0, 2, @ModuleDefId)

INSERT INTO {databaseOwner}{objectQualifier}Lists
(ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID)
VALUES
('ForumThreadRate', '2', 'Rate2', 0, 0, 3, @ModuleDefId)

INSERT INTO {databaseOwner}{objectQualifier}Lists
(ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID)
VALUES
('ForumThreadRate', '3', 'Rate3', 0, 0, 4, @ModuleDefId)

INSERT INTO {databaseOwner}{objectQualifier}Lists
(ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID)
VALUES
('ForumThreadRate', '4', 'Rate4', 0, 0, 5, @ModuleDefId)

INSERT INTO {databaseOwner}{objectQualifier}Lists
(ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID)
VALUES
('ForumThreadRate', '5', 'Rate5', 0, 0, 6, @ModuleDefId)

INSERT INTO {databaseOwner}{objectQualifier}Lists
(ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID)
VALUES
('ForumThreadRate', '6', 'Rate6', 0, 0, 7, @ModuleDefId)

INSERT INTO {databaseOwner}{objectQualifier}Lists
(ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID)
VALUES
('ForumThreadRate', '7', 'Rate7', 0, 0, 8, @ModuleDefId)

INSERT INTO {databaseOwner}{objectQualifier}Lists
(ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID)
VALUES
('ForumThreadRate', '8', 'Rate8', 0, 0, 9, @ModuleDefId)

INSERT INTO {databaseOwner}{objectQualifier}Lists
(ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID)
VALUES
('ForumThreadRate', '9', 'Rate9', 0, 0, 10, @ModuleDefId)

INSERT INTO {databaseOwner}{objectQualifier}Lists
(ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID)
VALUES
('ForumThreadRate', '10', 'Rate10', 0, 0, 11, @ModuleDefId)

INSERT INTO {databaseOwner}{objectQualifier}Lists
(ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID)
VALUES
('TrackingDuration', '0', 'Today', 0, 0, 1, @ModuleDefId)

INSERT INTO {databaseOwner}{objectQualifier}Lists
(ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID)
VALUES
('TrackingDuration', '3', 'PastThreeDays', 0, 0, 2, @ModuleDefId)

INSERT INTO {databaseOwner}{objectQualifier}Lists
(ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID)
VALUES
('TrackingDuration', '7', 'PastWeek', 0, 0, 3, @ModuleDefId)

INSERT INTO {databaseOwner}{objectQualifier}Lists
(ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID)
VALUES
('TrackingDuration', '14', 'PastTwoWeek', 0, 0, 4, @ModuleDefId)

INSERT INTO {databaseOwner}{objectQualifier}Lists
(ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID)
VALUES
('TrackingDuration', '30', 'PastMonth', 0, 0, 5, @ModuleDefId)

INSERT INTO {databaseOwner}{objectQualifier}Lists
(ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID)
VALUES
('TrackingDuration', '92', 'PastThreeMonth', 0, 0, 6, @ModuleDefId)

INSERT INTO {databaseOwner}{objectQualifier}Lists
(ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID)
VALUES
('TrackingDuration', '365', 'PastYear', 0, 0, 7, @ModuleDefId)

INSERT INTO {databaseOwner}{objectQualifier}Lists
(ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID)
VALUES
('TrackingDuration', '-1', 'LastVisit', 0, 0, 8, @ModuleDefId)

INSERT INTO {databaseOwner}{objectQualifier}Lists
(ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID)
VALUES
('TrackingDuration', '3650', 'AllDays', 0, 0, 9, @ModuleDefId)

INSERT INTO {databaseOwner}{objectQualifier}Lists
(ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID)
VALUES
('DisplayPosterLocation', '0', 'None', 0, 0, 0, @ModuleDefId)

INSERT INTO {databaseOwner}{objectQualifier}Lists
(ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID)
VALUES
('DisplayPosterLocation', '1', 'ToAdmin', 0, 0, 1, @ModuleDefId)

INSERT INTO {databaseOwner}{objectQualifier}Lists
(ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID)
VALUES
('DisplayPosterLocation', '2', 'ToAll', 0, 0, 2, @ModuleDefId)

INSERT INTO {databaseOwner}{objectQualifier}Lists
(ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID)
VALUES
('ForumType', '2', 'Normal', 0, 0, 1, @ModuleDefId)

INSERT INTO {databaseOwner}{objectQualifier}Lists
(ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID)
VALUES
('ForumType', '2', 'Notification', 0, 0, 2, @ModuleDefId)

INSERT INTO {databaseOwner}{objectQualifier}Lists
(ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID)
VALUES
('ForumType', '2', 'Link', 0, 0, 3, @ModuleDefId)

GO

DECLARE @ModuleDefID int
SELECT @ModuleDefID = ModuleDefID FROM {databaseOwner}{objectQualifier}ModuleDefinitions WHERE FriendlyName = 'Forum'

INSERT INTO {databaseOwner}{objectQualifier}Permission(PermissionCode, ModuleDefID, PermissionKey, PermissionName)
VALUES('FORUM_MODULE',@ModuleDefID,'FORUMADMIN','Forum Administrator')

INSERT INTO {databaseOwner}{objectQualifier}Permission(PermissionCode, ModuleDefID, PermissionKey, PermissionName)
VALUES('FORUM_MODULE',@ModuleDefID,'FORUMGLBMOD','Global Moderator')

GO

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForumForum4.4.3 Upgrade User Rights Issues4.4.3 Upgrade User Rights Issues


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out