#43598
10/19/2001 10:34 PM
|
Joined: Apr 2001
Posts: 42
Member
|
Member
Joined: Apr 2001
Posts: 42 |
Is there anyway that I can ban members from a particular forum?
See, my forum, Forum Central, is a forum that has many different forums. A user has been harrasing the members of a particular forum that I host, but he's also my friend. So to avoid losing 200 members, and 1 good friend, I would just like to ban him from one message board only, not the other 7 boards.
Is this possible?
|
|
|
#43599
10/20/2001 1:43 AM
|
Joined: May 2001
Posts: 6,708
Member
|
Member
Joined: May 2001
Posts: 6,708 |
No, you have to ban him from the whole forum. Or what you could do is make the forum he is harrasing people prvate and give the people who go in there permission to enter.
|
|
|
#43600
10/20/2001 1:04 PM
|
Joined: Oct 2000
Posts: 290
Member
|
Member
Joined: Oct 2000
Posts: 290 |
I concur with Lord...you are in between a rock and a hard spot. Sad to say, if the friendship cannoy make him tone it down, you have few alternatives. With only 200 members you could easily restrict access to the one forum and then grant access as you wish via the control panel to each user. You'll juat have to remember to grant access for any new users.
|
|
|
#43601
10/20/2001 6:01 PM
|
Joined: Dec 2000
Posts: 730
deutscher moderator / v5 specialist
|
deutscher moderator / v5 specialist
Joined: Dec 2000
Posts: 730 |
one possibility: you create a banlist (usernumber|1,2,8,9,...) and add a new ban-check in postings.cgi... the code is only local tested. [ 10-21-2001: Message edited by: joking-down ]
|
|
|
#43602
10/20/2001 7:23 PM
|
Joined: Oct 2000
Posts: 290
Member
|
Member
Joined: Oct 2000
Posts: 290 |
 Looks very intriguing! Where, may I ask, is userForumBan.cgi that you refer to in the OPEN statement? And where are you inputting the banned user's data? I can picture using something like Jimbo's hack for usernames...and you can store the data in something like that...but I don't see where you are doing that above. I only ask because, though I wouldn't find it useful, I think it is fun to follow the code through...so I am curious! GOOD JOB so far!!
|
|
|
#43603
10/20/2001 8:02 PM
|
Joined: May 2001
Posts: 6,708
Member
|
Member
Joined: May 2001
Posts: 6,708 |
Interesting code Joking-down. But where in the code does it only ban a person from one forum?
|
|
|
#43604
10/20/2001 8:07 PM
|
Joined: Dec 2000
Posts: 730
deutscher moderator / v5 specialist
|
deutscher moderator / v5 specialist
Joined: Dec 2000
Posts: 730 |
*ups* i forgot the administration... ![[Linked Image]](https://ubbdev.com/ubb/icons/icon18.gif) i create the file with an editor for testing... i write the console tomorrow. ideas how to code it are welcome... 
|
|
|
#43605
10/20/2001 8:21 PM
|
Joined: Dec 2000
Posts: 730
deutscher moderator / v5 specialist
|
deutscher moderator / v5 specialist
Joined: Dec 2000
Posts: 730 |
you add the code after the IP-Ban check in every function you want protect (sub ReplyTopic, sub NewTopic, etc.) @lord when the profilenumber match and the the forumnumber is listed, the user is marked for ban. in all other forums the user can post... [ 10-21-2001: Message edited by: joking-down ]
|
|
|
#43606
10/21/2001 12:23 PM
|
Joined: Apr 2001
Posts: 42
Member
|
Member
Joined: Apr 2001
Posts: 42 |
Okay, since I'm a retard, can you guys break it down for me?
What do I do? Add the big code up there? Or this small one above this post? Or.. what do I do? -_-
|
|
|
#43607
10/21/2001 12:32 PM
|
Joined: Oct 2000
Posts: 290
Member
|
Member
Joined: Oct 2000
Posts: 290 |
 Just give jokimg a little time to make things pretty!! It is clear that he has the whole thing figured out in his head...and working(?) on his board...just needs to document it well. Keep up the good work joking!! 
|
|
|
#43608
10/21/2001 2:24 PM
|
Joined: Dec 2000
Posts: 730
deutscher moderator / v5 specialist
|
deutscher moderator / v5 specialist
Joined: Dec 2000
Posts: 730 |
add the code of sub checkUserForumBan in ubb_library.pl. add the other code in sub DoPostTheTopic after to deny this guy posting new topics... the time this check need, I don't know. I'm using a Apache/1.3.20 on Win2k. I have no Time::HiRes @vipermad it's tested local and I see no errors 
|
|
|
#43609
10/21/2001 2:43 PM
|
Joined: Dec 2000
Posts: 730
deutscher moderator / v5 specialist
|
deutscher moderator / v5 specialist
Joined: Dec 2000
Posts: 730 |
the first version of administration for UserForumBan: the administration is tested local and generate no errors... ![[Linked Image]](https://ubbdev.com/ubb/icons/icon19.gif) Thanks Vipermad ![[Linked Image]](https://ubbdev.com/ubb/icons/icon6.gif)
|
|
|
#43610
10/31/2001 12:44 AM
|
Joined: Apr 2001
Posts: 42
Member
|
Member
Joined: Apr 2001
Posts: 42 |
Okay, so can someone e-mail me (or post) finalized, Step by Step instructions? I'm a n00b, and I need steps. lol.
|
|
|
#43611
11/01/2001 5:16 PM
|
Joined: Dec 2000
Posts: 730
deutscher moderator / v5 specialist
|
deutscher moderator / v5 specialist
Joined: Dec 2000
Posts: 730 |
a step by step instruction: - Step:
make a backup of postings.cgi - Step:
find in postings.cgi in sub PostTopic and in sub Post Reply:
- Step:
add after this code:
- Step:
make a backup of ubb_library2.pl - Step:
add at the end of File before 1;
- Setp:
save this Code in the File userForumBan.cgi
- Step:
Save Files and upload them with ASCII and set chmod of userForumBan.cgi to 0755.
|
|
|
#43612
11/02/2001 10:56 PM
|
Joined: Apr 2001
Posts: 42
Member
|
Member
Joined: Apr 2001
Posts: 42 |
I followed your instructions, but when I try to access the userForumBan.cgi file on my server, it gives me an error, which I assume is a 500 error.
The perl path is correct, as well, and I'm sure I uploaded in ASCII format. -_-
|
|
|
#43613
11/02/2001 11:09 PM
|
Joined: Apr 2001
Posts: 42
Member
|
Member
Joined: Apr 2001
Posts: 42 |
That, and I don't know how to add a user to the "ban" list.
|
|
|
#43614
11/03/2001 6:58 AM
|
Joined: Dec 2000
Posts: 730
deutscher moderator / v5 specialist
|
deutscher moderator / v5 specialist
Joined: Dec 2000
Posts: 730 |
change the code to an add after sub LOCK_UN { return (8) };change to In order to add an User clicks on "add New". Give the Usernummer of the Users to be closed in text-field an and selects the forums. In order to store this entry clicks on "add New". In order to change this entry, you must add the User with the changed data again. The entry is entitled automatically. In order to delete one or several entries, you must select the User over the Checkbox, clicks then on "delete selected". translated with web.de
|
|
|
#43615
11/03/2001 7:20 PM
|
Joined: Apr 2001
Posts: 42
Member
|
Member
Joined: Apr 2001
Posts: 42 |
Goodness, thank you! This is a nice little add-on you've written. You should make it an official hack. 
|
|
|
#43616
11/03/2001 7:26 PM
|
Joined: Apr 2001
Posts: 42
Member
|
Member
Joined: Apr 2001
Posts: 42 |
Uh oh.
Well, I added the "to be banned" account (I made a Test Account), and banned him from the first and fourth forum, but I was still able to post and reply.. -_-
What's wrong?
|
|
|
#43617
11/03/2001 8:30 PM
|
Joined: Dec 2000
Posts: 730
deutscher moderator / v5 specialist
|
deutscher moderator / v5 specialist
Joined: Dec 2000
Posts: 730 |
I has in the moment no notion where the mistake could lie. have you inputed the correct Usernummer? add after the following code in order to test, whether this User is banned. Now, you click one new topic for example and supplements the URL with " &Debug=true " and load the URL. now you see whether the UserNumber was recognized right. translated with web.de [ 11-03-2001: Message edited by: joking-down ]
|
|
|
#43618
11/06/2001 12:28 AM
|
Joined: Apr 2001
Posts: 42
Member
|
Member
Joined: Apr 2001
Posts: 42 |
I've gone over the steps about 5 seperate times now. It doesn't seem to perform any action. I created a new account, TestBan. Account number 00000126, and banned it from forum 4. Yet when I click post, and click reply, it allows me to post something each time. I've tried 0126, 126, 00000126, and even the actual number "120" since this account is the 120th account since a few others were deleted. It doesn't seem to notice that it's telling the script not to allow posting. I don't understand why, either. 
|
|
|
#43619
11/06/2001 9:13 AM
|
Joined: Dec 2000
Posts: 730
deutscher moderator / v5 specialist
|
deutscher moderator / v5 specialist
Joined: Dec 2000
Posts: 730 |
is the user banned, when you save the topic? In order to ban the User of the complaint of a new topic/new reply, you must add following code to sub NewTopic and sub NewReply
|
|
|
#43620
01/06/2002 3:09 AM
|
Joined: Oct 2001
Posts: 28
Junior Member
|
Junior Member
Joined: Oct 2001
Posts: 28 |
This is a very nice, interesting little hack for v5, but I was wondering if you could make this for 6.20 beta. Also, making something that can be controlled in the main control panel would be very nice.
So, basically, only minor code modifications would be neccessary, and with the ability to be able to control the banning of users to a single forum in the control panel would be an excellent hack.
|
|
|
#43621
03/21/2002 9:17 PM
|
Joined: Apr 2001
Posts: 42
Member
|
Member
Joined: Apr 2001
Posts: 42 |
I still really need this hack to work.. I wonder what I'm doing wrong. Has anyone else had problems running this?
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 417
Joined: November 2001
|
|
Forums63
Topics37,571
Posts293,923
Members13,848
|
Most Online5,166 Sep 15th, 2019
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|