UBB.Dev
Posted By: Watchdog User ban 6.1 - 01/09/2003 12:36 AM
I am using ubbt 6.1 and have a question about bans. When I ban someone they can not post or send private messages but they still have access to view hidden forums.

How can I prevent any access same as with unregistered users?

Posted By: JoshPet Re: User ban 6.1 - 01/09/2003 1:46 AM
Right, banned users just can post or send PM's.

They can't see "hidden" forums unless you've given the user access to see "hidden" forums in the first place.

If you dont' want unregistered users to see forums, adjust the group access to the forums.

Under Admin, choose "edit or delete a forum" and adjust the read/write privledges at the bottom based on user groups.
Posted By: Watchdog Re: User ban 6.1 - 01/09/2003 2:10 AM
The user group Banned has no access to any of my forums but If I become A BANNED user I see everything.

If I send the banned user a PM it goes through to their in box and they are able to read all PM's sent to them.

I don't understand why they even have access to my home when banned. They use this access to jerk around with their profile.

I have installed a few hacks, maybe I messed something up along the way.

By the way even though they are banned no names show up in my banned user group?
Posted By: JoshPet Re: User ban 6.1 - 01/09/2003 2:16 AM
No that's the way it works. Other people have suggested more restrictions.

Banned users have all access that they normally have.... except they can't read posts or send PMs.

Taking a look at the code, I think you could easily restrict banned users from sending PMs and more.....

If you are interested in that, let me know and I'll see if I can write something up. I think it'll be a simple tweak.
Posted By: Watchdog Re: User ban 6.1 - 01/09/2003 2:22 AM
More restrictions would be great. I can imagine your busy but if at your convience you have time to code something up
I would appreciate it.
Posted By: JoshPet Re: User ban 6.1 - 01/09/2003 4:07 AM
Instructions posted here

Note - I wrote it for 6.2.... but I think it'll work fine in 6.1.

My instructions have you add a few bits of code in places. The places you are looking for might not be exactly the same in 6.1, but I expect you'll be able to find the right place (basically after the authenticate function).

Josh
Posted By: Watchdog Re: User ban 6.1 - 01/09/2003 6:16 AM
Hey Thank You Josh

Since you wrote it for 6.2 everywhere it says U_Number needs to be change to U_Name correct?
Posted By: JoshPet Re: User ban 6.1 - 01/09/2003 6:57 AM
Oh good catch..... It'll need to be U_Username.

Oh yea, in 6.1 it'll look like this:

// ------------------
// Check for any bans
$html = new html;
$userob -> check_ban($user['U_Username'],$Cat);
Posted By: Watchdog Re: User ban 6.1 - 01/09/2003 7:22 AM
I have installed the hack you coded for 6.2 and blocked everything except my home.

I used the code in you last post and like majic no more "My Home" for banned members.

Thanks alot for the help.

Posted By: JoshPet Re: User ban 6.1 - 01/09/2003 7:45 AM
You are welcome.
© UBB.Developers