Author |
Topic |
redbrad0
Advanced Member
USA
3725 Posts |
|
redbrad0
Advanced Member
USA
3725 Posts |
Posted - 10 July 2004 : 19:15:52
|
I just installed this MOD and either I have something not setup right or maybe the MOD needs a small tweak.
Seniro: Created a bunch of forums with the following settings... 1. Admins Only 2. Admins & Moderators 3. Users 4. Whatever When you are not a registered member you are able to access all of the forums to read them. This is not good if you want to just have a section for your admin & moderators.
Fix: This is not saying this is the best fix, but with some simple test's it seems to work. Create a group called Non Registered Users and set the group options to Hidden from members and hidden from moderators. Now you need to open the database and in table USERGROUP_USERS where you set the USERGROUP_ID to the ID number of the Non Registered Users you created and the MEMBER_ID to -1 with the MEMBER_TYPE to 1. What this does it allow you to select which forums you want Non Registered users to be able to view, or deny them access to. |
Brad Oklahoma City Online Entertainment Guide Oklahoma Event Tickets |
|
|
se99paj
Starting Member
17 Posts |
Posted - 11 July 2004 : 12:54:29
|
redbrad, sorry I didn't get back to you sooner, I've been a little busy so couldn't get to a computer.
I have fixed the problem that I mentioned earlier but I have a new one, and I think its to do with this modification.
I am unable to get the search link to work it only works for the administrator. here is the error message
Microsoft VBScript runtime error '800a000d'
Type mismatch: 'chkForumAccessNew'
/gc2004/forum/search.asp, line 180
I read earlier that there was a similar problem to this but when I did the change it completely killed my forum so I had to change them back, line 180 for search.asp is.
if chkForumAccessNewForum(Forum_PrivateForums,Forum_FPasswordNew,Forum_Subject,Forum_ID,MemberID) = true then |
|
|
redbrad0
Advanced Member
USA
3725 Posts |
Posted - 11 July 2004 : 13:36:29
|
quote: Originally posted by se99paj
if chkForumAccessNewForum(Forum_PrivateForums,Forum_FPasswordNew,Forum_Subject,Forum_ID,MemberID) = true then
chkForumAccessNewForum is not a function (well not of mine. You need to search all your files to make sure that is a valid function or sub of your forum. I know that chkForumAccessNew is a valid function. |
Brad Oklahoma City Online Entertainment Guide Oklahoma Event Tickets |
|
|
se99paj
Starting Member
17 Posts |
Posted - 11 July 2004 : 17:51:00
|
I did not do any changes for the usergroup modification, as it was my first mod I just replaced the existing files with the ones in the zip file.
Could the two functions actually be meant to be just one function and the two are both being used for the same thing.
The thing is this problem does not occur when testing on my laptop only when it has been uploaded onto the server?? |
|
|
redbrad0
Advanced Member
USA
3725 Posts |
|
Nikkol
Forum Moderator
USA
6907 Posts |
Posted - 12 July 2004 : 06:41:12
|
quote: Originally posted by redbrad0
I just installed this MOD and either I have something not setup right or maybe the MOD needs a small tweak.
Seniro: Created a bunch of forums with the following settings... 1. Admins Only 2. Admins & Moderators 3. Users 4. Whatever When you are not a registered member you are able to access all of the forums to read them. This is not good if you want to just have a section for your admin & moderators.
Fix: This is not saying this is the best fix, but with some simple test's it seems to work. Create a group called Non Registered Users and set the group options to Hidden from members and hidden from moderators. Now you need to open the database and in table USERGROUP_USERS where you set the USERGROUP_ID to the ID number of the Non Registered Users you created and the MEMBER_ID to -1 with the MEMBER_TYPE to 1. What this does it allow you to select which forums you want Non Registered users to be able to view, or deny them access to.
Wouldn't it just be easier to make it a private forum? Then no one can read except those you assign to it. |
Nikkol ~ Help Us Help You | ReadMe | 3.4.03 fixes | security fixes ~ |
|
|
redbrad0
Advanced Member
USA
3725 Posts |
|
se99paj
Starting Member
17 Posts |
Posted - 12 July 2004 : 12:35:28
|
I think I must have been going nuts, I have searched through all of the files and cannot find chkForumAccessNewForum I think I typed it wrong.
Sorry!!
At the end of the day though I'm still stuck with the same problem.
I have searched through all of the files and acnnot see any other references to chkForumAccessNew Is this incorrect??? should there only be one reference |
|
|
Machina
New Member
Switzerland
74 Posts |
Posted - 15 July 2004 : 04:40:57
|
quote: Originally posted by Nikkol
quote: Originally posted by redbrad0
Fix: This is not saying this is the best fix, but with some simple test's it seems to work. Create a group called Non Registered Users and set the group options to Hidden from members and hidden from moderators. Now you need to open the database and in table USERGROUP_USERS where you set the USERGROUP_ID to the ID number of the Non Registered Users you created and the MEMBER_ID to -1 with the MEMBER_TYPE to 1. What this does it allow you to select which forums you want Non Registered users to be able to view, or deny them access to.
Wouldn't it just be easier to make it a private forum? Then no one can read except those you assign to it.
Hi :-)
I needed unregistered surfers to read some of the forums, not all.
I tried your solution. It's exactly what I wanted !
THANKS redbrad0! |
Machina ------- http://www.jaboulay.fr -------- Snitz based site: http://www.itu.int/YLinICTs MODS Used : TMPJ's Header Cell Image, Site Integration, Front Page News, News Events Calendar, Nikkol's Usergroups, Simple Slash, Avatar, File Sharing, Links |
Edited by - Machina on 15 July 2004 08:20:03 |
|
|
se99paj
Starting Member
17 Posts |
Posted - 15 July 2004 : 10:11:41
|
I think there is a problem with the usergroup modification, but only if you use the files that have already been modified.
Basically I wanted to install the usergroup mod so I copied and pasted all of the files from the zipped file into the forum diretory, this was my first modification so i thought that wouldn't be a problem.
But the search link does not work when you are not logged in as the administrator.
It is exactly like you guys said the chkForumAccessNew function is not present in the inc_func_secure.asp document. After copying and inserting the function the search link works correctly.
I have no idea if this is the correct way of doing it but it does work?? |
|
|
Hoots
Starting Member
2 Posts |
Posted - 25 July 2004 : 14:47:07
|
is there ne way of displaying the usergroup when you post??? |
|
|
kev0153
Starting Member
14 Posts |
Posted - 27 August 2004 : 10:27:27
|
I would like to use this mod to make a group to exclude one person. However, I have about 1200 memebers and I'm only able to add about 100 members (I get down to the "b's") After that it won't except anymore members. Any ideas? |
|
|
RedRazor
Starting Member
3 Posts |
Posted - 28 October 2004 : 19:51:53
|
Hey, i know this is a old topic but can anyone help me with this? '####### Begin UserGroup MOD ####### if isDeniedMember(fForum_ID, UserNum) = 1 then chkDisplayForum = false exit function end if '####### End UserGroup MOD ####### when every i put it in the snitz 4.4.04 its error out, same thing happens for this one: '####### Begin UserGroup MOD ####### if isDeniedMember(fForum, UserNum) = 1 then chkForumAccess = false if Display then doNotAllowed response.end end if exit function end if '####### End UserGroup MOD #######
Any Ideals? |
|
|
RedRazor
Starting Member
3 Posts |
Posted - 29 October 2004 : 06:21:33
|
it a typematch error for both |
|
|
Topic |
|