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 ForumsForumForumHow to add a moderator in SQLHow to add a moderator in SQL
Previous
 
Next
New Post
5/20/2007 11:12 PM
 

The SQL should work, the ModeratorReturn is a legacy thing, don't worry about it.

 


Chris Paterra

Get direct answers to your questions in the Community Exchange.
 
New Post
5/28/2007 8:42 AM
 

Thanks - I can't seem to get my admins to have the "Move" option when viewing a thread - I think it is something to do with not having been able to specify which forums they can admin, so I inserted records into this table :

Forum_moderators

but it still did not work? What SQL changes do I have to make to get them to be able to move threads?

And also - I can't seem to assign avatars like on this DNN forum for core members - it appears as though I have to upload them somewhere first (I'll do a search for avatars now)

 


Entrepreneur

PokerDIY Tournament Manager - PokerDIY Tournament Manager<
PokerDIY Game Finder - Mobile Apps powered by DNN
PokerDIY - Connecting Poker Players

 
New Post
5/29/2007 7:11 PM
 

You may have to make them a moderator of the specific forum (might be a bug for global mods in that version, i am pretty sure its fixed in 4.4.1).

The avatars require the gallery being installed and configured in that version (this also changes in 4.4.1).

 


Chris Paterra

Get direct answers to your questions in the Community Exchange.
 
New Post
6/4/2007 5:56 AM
 

Hi Chris,

Ok, I still could not get my admins to Delete/Move posts so I spent some time going through the Forum source. It did take me about an hour to understand how it was working and find the "Posts" code where these buttons appear (not an .ascx ;)

Anyway- I think there is a bug that means only if the forum is moderated will Forum Admins see the Move and Delete button. It looks like if they are in the Admin role they will get it (not an option):

                ' CP - Add ability for moderators to see link
                If (user.HasAdminPermissions Or user.IsModerator Or user.IsGlobalModerator) AndAlso (Post.ParentPostID = 0) Then

(this is true - user is a Modetation || GlobalMod)


                    If user.HasAdminPermissions = True Then

(false - not in core Admin role)
                        params = New String(2) {"mid=" & ModuleID.ToString, "forumid=" & ForumId.ToString, "threadid=" & Post.ThreadID.ToString}
                        url = NavigateURL(ForumControl.TabID, "ThreadMove", params)

                        RenderCellBegin(wr, "Forum_ReplyCell", "", "", "", "", "", "")
                        RenderLinkButton(wr, url, ForumControl.LocalizedText("Move"), "Forum_Link")
                        RenderCellEnd(wr)
                    Else
                        ' Check to see if they are moderator of this particular forum
                        ' Run foruminfo object along w/ userid to new function which will  mimic what IsInRole does
                        If Utils.IsInSingleForumModerators(grandParent.SingleForumModerators, user.UserID) Then

(so this is where I think it is going wrong. I inserted this user record against the Forum ID but if you look at this method -SingleForumModerators - it only gets the list of ids IF the forum is moderated. I want all posts to appear instantly so that is not the case, but my admins must be able to move and delete posts)
                            params = New String(2) {"mid=" & ModuleID.ToString, "forumid=" & ForumId.ToString, "threadid=" & Post.ThreadID.ToString}
                            url = NavigateURL(ForumControl.TabID, "ThreadMove", params)

                            RenderCellBegin(wr, "Forum_ReplyCell", "", "", "", "", "", "")
                            RenderLinkButton(wr, url, ForumControl.LocalizedText("Move"), "Forum_Link")....

        Public ReadOnly Property SingleForumModerators() As String
            Get
                If IsActive Then
                    If IsModerated Then

 

I'm no Forum expext -so please correct me if I am wrong. By your comments, I assume that this will be fixed in the next version, but unless there is a similar skin to the one I have now I wont be able to upgrade - so I think I may be up a creek without a paddle...


Entrepreneur

PokerDIY Tournament Manager - PokerDIY Tournament Manager<
PokerDIY Game Finder - Mobile Apps powered by DNN
PokerDIY - Connecting Poker Players

 
New Post
7/18/2007 9:37 AM
 

Man im having the same problem anyone have any solutions?

System.Data.SqlClient.SqlException: The INSERT statement conflicted with the FOREIGN KEY constraint "FK_Forum_Moderators_Forum_Forums". The conflict occurred in database "nuke", table "dbo.Forum_Forums", column 'ForumID'. The statement has been terminated. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) at System.Data.SqlClient.SqlCommand.ExecuteNonQuery() at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(SqlConnection connection, CommandType commandType, String commandText, SqlParameter[] commandParameters) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(String connectionString, CommandType commandType, String commandText, SqlParameter[] commandParameters) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(String connectionString, String spName, Object[] parameterValues) at DotNetNuke.Modules.Forum.SqlDataProvider.ModeratorAdd(Int32 ForumID, Int32 UserID) at DotNetNuke.Modules.Forum.UserSettings.UpdateModeratedForums() at DotNetNuke.Modules.Forum.UserSettings.cmdUpdate_Click(Object sender, EventArgs e)

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForumForumHow to add a moderator in SQLHow to add a moderator in SQL


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