Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/Code)
 UserGroups v1.0 BETA
 New Topic  Topic Locked
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 15

Nikkol
Forum Moderator

USA
6907 Posts

Posted - 21 June 2003 :  23:04:34  Show Profile
Updated Version!!! see here

<gulp>

The long awaited release of the UserGroups MOD v1.0 BETA is here!

Be forwarned ... there has only been limited testing and I may have missed some important coding for certain permissions. So, by downloading the MOD package, you are agreeing to the following:
  • Not to beat-up the author if sensitive "Allowed Member List" forum information suddenly becomes viewable by non-allowed members
  • To help beta test this MOD to ensure it works in all environments


Downloads:

If you have suggestions, comments, or you are sure you have found a bug, reply to this topic. If you are simply having trouble installing or using the MOD, please post a new topic in the MOD Implementation forum.

Short Description:
The UserGroups MOD v1.0 allows grouping of forum members that greatly improves member management and offers a few added features to the basic functionality of the Snitz base code. A summary of the features are listed below. Read the readme.htm file included in the download for more details.
  • Forum administrators can assign members to UserGroups and the use the UserGroups to restrict access to "Allowed Member List" forums based on three permission settings: Deny, Read-Only, and Allow.
  • Forums that are not an "Allowed Member List" forum can have Deny and Read-Only permissions for each UserGroup.
  • UserGroup visibility by members and moderators is configurable by forum administrators.
  • Individual UserGroups can be set as Hidden.
  • Auto-Join UserGroups on member registration.

Nikkol ~ Help Us Help You | ReadMe | 3.4.03 fixes | security fixes ~

Edited by - Nikkol on 05 November 2003 18:34:28

Nikkol
Forum Moderator

USA
6907 Posts

Posted - 21 June 2003 :  23:47:32  Show Profile
Just a note ... the full MOD package is not ready for MS SQL and MySql yet. Trying to figure out how to set up the tables for those DB types.

Nikkol ~ Help Us Help You | ReadMe | 3.4.03 fixes | security fixes ~
Go to Top of Page

Etymon
Advanced Member

United States
2385 Posts

Posted - 22 June 2003 :  02:33:52  Show Profile  Visit Etymon's Homepage

Thank you Nikkol for creating this MOD!!!

I can't wait to put it to good use!



Etymon
Go to Top of Page

homeacademy
Junior Member

USA
163 Posts

Posted - 22 June 2003 :  07:16:12  Show Profile


I'll implement on my test forum momentarily.

Thanks SO much for the mod!!!!
Go to Top of Page

homeacademy
Junior Member

USA
163 Posts

Posted - 22 June 2003 :  20:13:07  Show Profile
Okay, I'm getting an error. Using the FULL MOD package, I'm getting this on post.asp when trying to post a new forum:

Microsoft JET Database Engine error '80040e14'

Syntax error (missing operator) in query expression 'FORUM_ID = AND USERGROUP_ID = 1'.

/ugtest/post.asp, line 1334


This is on an access 2000 db. The error occurs where the usergroup permissions should be displayed. I do have one usergroup created. Ideas?
Go to Top of Page

Nikkol
Forum Moderator

USA
6907 Posts

Posted - 22 June 2003 :  20:17:01  Show Profile
I'll look at it and get back to you in a bit ...

Let's try this:
lines 1332-8 look like this:
			strSql = "SELECT PERMS FROM " & strTablePrefix & "ALLOWED_USERGROUPS " &_
				"WHERE FORUM_ID = " & strRqForumID & " AND USERGROUP_ID = " & arUGs(0,UGCnt)
			set rsPerms = my_Conn.execute(strSql)
			strPerms = Null
			if not rsPerms.bof and not rsPerms.eof then strPerms = rsPerms("PERMS")
			rsPerms.close
			set rsPerms = Nothing

Let's make them look like this:
			strPerms = Null
			if strRqMethod = "EditURL" or strRqMethod = "EditForum" then
				strSql = "SELECT PERMS FROM " & strTablePrefix & "ALLOWED_USERGROUPS " &_
					"WHERE FORUM_ID = " & strRqForumID & " AND USERGROUP_ID = " & arUGs(0,UGCnt)
				set rsPerms = my_Conn.execute(strSql)
				if not rsPerms.bof and not rsPerms.eof then strPerms = rsPerms("PERMS")
				rsPerms.close
				set rsPerms = Nothing
			end if

Nikkol ~ Help Us Help You | ReadMe | 3.4.03 fixes | security fixes ~

Edited by - Nikkol on 22 June 2003 20:30:49
Go to Top of Page

homeacademy
Junior Member

USA
163 Posts

Posted - 22 June 2003 :  21:02:07  Show Profile
Perfect! That code works like a charm. Thanks!
Go to Top of Page

waynemr
Starting Member

USA
19 Posts

Posted - 22 June 2003 :  23:57:14  Show Profile
Awesome work!!!! I have it functional on a test forum running MS SQL2000, but I had to hand enter the tables. Here is the SQL code for making the tables:


CREATE TABLE [FORUM_USERGROUPS] (
	[USERGROUP_ID] [int] IDENTITY (1, 1) NOT NULL ,
	[USERGROUP_NAME] [varchar] (100) NOT NULL ,
	[USERGROUP_DESC] [ntext] NOT NULL ,
	[USERGROUP_TYPE] [int] NOT NULL DEFAULT (0),
	[AUTOJOIN] [int] NOT NULL DEFAULT (0),
	[MEM_HIDE] [int] NOT NULL DEFAULT (0),
	[MOD_HIDE] [int] NOT NULL DEFAULT (0),
	CONSTRAINT [PK_FORUM_USERGROUPS] PRIMARY KEY  CLUSTERED 
	(
		[USERGROUP_ID]
	)  ON [PRIMARY] 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO


CREATE TABLE [FORUM_USERGROUP_MEMBERS] (
	[USERGROUP_ID] [int] NOT NULL ,
	[MEMBER_ID] [int] NOT NULL ,
	[MEMBER_TYPE] [int] NOT NULL DEFAULT (1)
) ON [PRIMARY]
GO


CREATE TABLE [FORUM_ALLOWED_USERGROUPS] (
	[USERGROUP_ID] [int] NOT NULL ,
	[FORUM_ID] [int] NOT NULL ,
	[PERMS] [int] NOT NULL DEFAULT (0)
) ON [PRIMARY]
GO

==============================
Snitz n00b but not for long!
==============================
Go to Top of Page

Nikkol
Forum Moderator

USA
6907 Posts

Posted - 23 June 2003 :  06:23:24  Show Profile
Were you doing this on an existing forum or a brand new one? If the former, did you try pasting the code into the Alternate MOD Setup as described in the readme? If the latter, I have updated the full download package to setup the tables in MSSQL (thanks to Rui!)

Nikkol ~ Help Us Help You | ReadMe | 3.4.03 fixes | security fixes ~
Go to Top of Page

homeacademy
Junior Member

USA
163 Posts

Posted - 23 June 2003 :  08:58:44  Show Profile
I may just be doing something wrong, or this may be normal, but:
Again using the full mod package, I created a normal, non-private, forum with deny usergroup permissions. I then logged in as my test member, and the new forum (with deny permissions) did not even show up in the forum list. I would expect this for Private (Hidden) forums, but for normal non-private forums? If I log out completely, and view the forum as a guest, I see the deny forum, but get the 'You Don't Have Access' message when clicking it. This is what I would expect to happen when logged in as well? Is this behaviour by design? TIA
Go to Top of Page

waynemr
Starting Member

USA
19 Posts

Posted - 23 June 2003 :  09:58:51  Show Profile
In response to Nikkol:

It was done on an existing forum, so I did not use the full install of the MOD. I used the alternate MOD setup, which failed to create the needed tables. So, I added the tables in by hand.

BTW, the test forum I put this on has been significantly modded, and the usergroup mod still appears to function. I will run it through a number of tests tonight to make sure, and I will list all of the mods I have running so you can get some feedback on how this mod interacts with other mods.

==============================
Snitz n00b but not for long!
==============================
Go to Top of Page

Nikkol
Forum Moderator

USA
6907 Posts

Posted - 23 June 2003 :  10:55:35  Show Profile
quote:
Originally posted by homeacademy

I may just be doing something wrong, or this may be normal, but:
Again using the full mod package, I created a normal, non-private, forum with deny usergroup permissions. I then logged in as my test member, and the new forum (with deny permissions) did not even show up in the forum list. I would expect this for Private (Hidden) forums, but for normal non-private forums? If I log out completely, and view the forum as a guest, I see the deny forum, but get the 'You Don't Have Access' message when clicking it. This is what I would expect to happen when logged in as well? Is this behaviour by design? TIA

I debated whether having the forum show or not. I ended up deciding to hide the forum if there are deny permissions. For the time being, you can edit inc_func_secure.asp so that it works as you expect it to. In the chkDisplayForum function just comment out these lines of code:
'#######    Begin UserGroup MOD     #######
		if isDeniedMember(fForum_ID, UserNum) = 1 then
			chkDisplayForum = false
			exit function
		end if
'#######     End UserGroup MOD      #######
However, beware that topic titles will then show on search.asp and maybe on active.asp as well.

Nikkol ~ Help Us Help You | ReadMe | 3.4.03 fixes | security fixes ~
Go to Top of Page

Nikkol
Forum Moderator

USA
6907 Posts

Posted - 23 June 2003 :  10:57:27  Show Profile
quote:
Originally posted by waynemr

In response to Nikkol:

It was done on an existing forum, so I did not use the full install of the MOD. I used the alternate MOD setup, which failed to create the needed tables. So, I added the tables in by hand.

BTW, the test forum I put this on has been significantly modded, and the usergroup mod still appears to function. I will run it through a number of tests tonight to make sure, and I will list all of the mods I have running so you can get some feedback on how this mod interacts with other mods.

Wonderful waynemr! I'm not very familiar with MSSQL, so I'd be curious to see if others using MSSQL have the same problem.

Nikkol ~ Help Us Help You | ReadMe | 3.4.03 fixes | security fixes ~
Go to Top of Page

vmplanet
Junior Member

112 Posts

Posted - 23 June 2003 :  11:37:19  Show Profile
I get is error on my MYSQL Database. Everything went well and the forum runs normal. But when i try to create a usergroup i get this:

Microsoft OLE DB Provider for ODBC Drivers error '80040e21'

Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done.

/forum/admin_usergroups.asp, line 119
Go to Top of Page

vmplanet
Junior Member

112 Posts

Posted - 23 June 2003 :  11:48:44  Show Profile
Line 119:

rsGroup("USERGROUP_NAME") = Request.Form("GroupName")
Go to Top of Page

Ryan
Average Member

USA
858 Posts

Posted - 23 June 2003 :  12:22:19  Show Profile  Visit Ryan's Homepage
Thanks for this MOD! Will install when and if I get the chance!

The Poultry Link - "Serving the best of the fancy with the best of the web"
Forum Setup Help
Go to Top of Page
Page: of 15 Previous Topic Topic Next Topic  
Next Page
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.2 seconds. Powered By: Snitz Forums 2000 Version 3.4.07