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 BETA2
 New Topic  Topic Locked
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 10

Nikkol
Forum Moderator

USA
6907 Posts

Posted - 05 November 2003 :  18:32:14  Show Profile
Thanks to everyone who caught bugs in the first beta, especially Reinsnitz and altisdesign... BETA2 is here

Why BETA2? Well, this is simply a packaged version of the first beta with the bugs and fixes discussed in the original topic and an important change in a table name. Once we are sure the wrinkles are ironed out, this version will become the official first release.

(Note to the current users of this MOD: in order to use the files in this version, you will need to manually change the name of the USERGEROUP_MEMBERS table to USERGROUP_USERS.)

The zip file contains setup instructions, the usergroups.asp and admin_usergroups.asp files, and pre-modified forum files (use only if you have not installed other MODs on your forum). Currently there is not a full forum version available with this MOD.
Download here



[future space for an explanation of code changes over the first beta]

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

Edited by - Nikkol on 05 November 2003 18:58:33

StephenD
Senior Member

Australia
1044 Posts

Posted - 06 November 2003 :  05:42:15  Show Profile  Send StephenD a Yahoo! Message
I get this error on Access when adding new user group:
Microsoft JET Database Engine error '80040e14' 

Syntax error in ORDER BY clause. 

/admin_usergroups.asp, line 117 
Go to Top of Page

Nikkol
Forum Moderator

USA
6907 Posts

Posted - 06 November 2003 :  06:56:38  Show Profile
I'm going to defer to altisdesign since that is a part of the code he rewrote. However, taking out the LIMIT 0,1 at the end of the sql statement fixed it for another person.

Reference: http://forum.snitz.com/forum/topic.asp?TOPIC_ID=46077

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

altisdesign
Junior Member

United Kingdom
357 Posts

Posted - 06 November 2003 :  11:50:39  Show Profile
Nikkol,

Do you know if that LIMIT 0,1 is compatible with access? I havnt tested it, I only used it on myswl and its working fine with that code.. my users love it . It could be removed all together, I only put it in to improve performance, as only the first id is needed. I suppose we could test the strdbtype and use SELECT TOP 1 if its access.

Altis Design offers all manner of web design services to a variety of commercial and personal clients
Go to Top of Page

Reinsnitz
Snitz Forums Admin

USA
3545 Posts

Posted - 06 November 2003 :  14:10:36  Show Profile  Visit Reinsnitz's Homepage  Send Reinsnitz an AOL message  Send Reinsnitz an ICQ Message  Send Reinsnitz a Yahoo! Message
Nikkol is out of town for a week or so

Reinsnitz (Mike)
Go to Top of Page

Reinsnitz
Snitz Forums Admin

USA
3545 Posts

Posted - 06 November 2003 :  14:23:40  Show Profile  Visit Reinsnitz's Homepage  Send Reinsnitz an AOL message  Send Reinsnitz an ICQ Message  Send Reinsnitz a Yahoo! Message
Go ahead and give it a test run... if it works we'll get everyone to update their message as part of the install (I can put it in the original post for you)

Reinsnitz (Mike)
Go to Top of Page

altisdesign
Junior Member

United Kingdom
357 Posts

Posted - 06 November 2003 :  14:30:33  Show Profile
OK Cool I will do that later on today or possibly tommorow and post back, thanks mike

Altis Design offers all manner of web design services to a variety of commercial and personal clients
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 06 November 2003 :  16:56:48  Show Profile  Send ruirib a Yahoo! Message
quote:
Originally posted by altisdesign

Nikkol,

Do you know if that LIMIT 0,1 is compatible with access? I havnt tested it, I only used it on myswl and its working fine with that code.. my users love it . It could be removed all together, I only put it in to improve performance, as only the first id is needed. I suppose we could test the strdbtype and use SELECT TOP 1 if its access.


LIMIT only works with MySQL. For access you use TOP immediately after the SELECT keyword.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

altisdesign
Junior Member

United Kingdom
357 Posts

Posted - 06 November 2003 :  17:06:03  Show Profile
OK I will make a change using strdbtype to determine whether to use LIMIT or TOP. Which is the prefered method of limiting records on SQL Server?

Altis Design offers all manner of web design services to a variety of commercial and personal clients
Go to Top of Page

StephenD
Senior Member

Australia
1044 Posts

Posted - 06 November 2003 :  21:07:11  Show Profile  Send StephenD a Yahoo! Message
I also get this error when editing an existing forum:
Microsoft JET Database Engine error '80040e10' 
No value given for one or more required parameters. 

/post.asp, line 1489


The block of code (Allowed User - listbox Code) surrounding this error looks like this:
if strRqMethod = "EditForum" or strRqMethod = "EditURL" then
			strSql = "SELECT MEMBER_ID "
			strSql = strSql & " FROM " & strTablePrefix & "ALLOWED_MEMBERS "
			strSql = strSql & " WHERE FORUM_ID = " & strRqForumID
			strSql = strSql & " ORDER BY M_NAME "

			set rsAllowedMember = Server.CreateObject("ADODB.Recordset")
			rsAllowedMember.open strSql, my_Conn, adOpenForwardOnly, adLockReadOnly, adCmdText

			if rsAllowedMember.EOF then
				recAllowedMemberCount = ""
			else
				allAllowedMemberData = rsAllowedMember.GetRows(adGetRowsRest)
				recAllowedMemberCount = UBound(allAllowedMemberData,2)
				amMEMBER_ID = 0
			end if
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 07 November 2003 :  05:01:11  Show Profile  Send ruirib a Yahoo! Message
quote:
Originally posted by altisdesign

OK I will make a change using strdbtype to determine whether to use LIMIT or TOP. Which is the prefered method of limiting records on SQL Server?


Snitz has a TopSQL function (inc_func_commom) that shows how to achieve that for each of the supported DBs. Although SQL 7 and 2K support TOP, previous versions support only ROWCOUNT and that is what is used in the function. Have a look.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

Klingstedt
Starting Member

Sweden
31 Posts

Posted - 07 November 2003 :  17:11:18  Show Profile  Send Klingstedt an ICQ Message
I have set deny as a permission for my only membergroup (which new user autojoin), but guests can see the whole forum. And if they click on the "New Topic"-link they can post a new topic in the forum. They can fill in a userīs usernamne and password (in my only membergroup) and post a new topic in that members name. That member donīt even have access to that forum.
Go to Top of Page

Klingstedt
Starting Member

Sweden
31 Posts

Posted - 07 November 2003 :  17:27:17  Show Profile  Send Klingstedt an ICQ Message
When I add a group the Group Options dosenīt puts into the DB.. but when I edit a group it does.

Sorry if Iīm maybe writing about old bugs, but I just installed this mod and I havīnt read any other topic about this mod.
Go to Top of Page

altisdesign
Junior Member

United Kingdom
357 Posts

Posted - 07 November 2003 :  17:48:22  Show Profile
quote:
Originally posted by Klingstedt

I have set deny as a permission for my only membergroup (which new user autojoin), but guests can see the whole forum. And if they click on the "New Topic"-link they can post a new topic in the forum. They can fill in a userīs usernamne and password (in my only membergroup) and post a new topic in that members name. That member donīt even have access to that forum.



Is the forum set to Allowed Member List / Allowed Member List (Hidden). Then you set explicit allow permissions for the members who are allowed in. The usergroups mod does not handle users who are not signed up AFAIK, you would need to set the Auth Type for that forum.

Altis Design offers all manner of web design services to a variety of commercial and personal clients
Go to Top of Page

Klingstedt
Starting Member

Sweden
31 Posts

Posted - 07 November 2003 :  17:54:39  Show Profile  Send Klingstedt an ICQ Message
quote:
Originally posted by altisdesign

quote:
Originally posted by Klingstedt

I have set deny as a permission for my only membergroup (which new user autojoin), but guests can see the whole forum. And if they click on the "New Topic"-link they can post a new topic in the forum. They can fill in a userīs usernamne and password (in my only membergroup) and post a new topic in that members name. That member donīt even have access to that forum.



Is the forum set to Allowed Member List / Allowed Member List (Hidden). Then you set explicit allow permissions for the members who are allowed in. The usergroups mod does not handle users who are not signed up AFAIK, you would need to set the Auth Type for that forum.



Yes, but a user can post in a forum even if the user donīt have the permission to do it. I guess that the mod donīt check in post_info.asp if the user is in a group which can post in the forum.

And maybe I want to set troublesome member in a usergroup to restrict them to post in a public forum. But, then this user can post. Just log out, go to the forum and click on New Topic. There can he just fill in his username and password. Write the topic and click on submit. I have done it, and it works :(
Go to Top of Page

altisdesign
Junior Member

United Kingdom
357 Posts

Posted - 07 November 2003 :  17:57:27  Show Profile
OK I'm going to bed now (long day ), but either Nikkol (if shes back - see reinsnitz's post above), another board member or if not I will install and test it for you tommorow and look into a possible fix, tho we may have to wait until nikkol is back for that .

Altis Design offers all manner of web design services to a variety of commercial and personal clients
Go to Top of Page
Page: of 10 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.23 seconds. Powered By: Snitz Forums 2000 Version 3.4.07