Previous Thread
Next Thread
Print Thread
Rate Thread
#43598 10/19/2001 10:34 PM
Joined: Apr 2001
Posts: 42
Member
Member
Offline
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?

Sponsored Links
#43599 10/20/2001 1:43 AM
Joined: May 2001
Posts: 6,708
Member
Member
Offline
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
Offline
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
Offline
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...

Code
code:
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
Offline
Joined: Oct 2000
Posts: 290
smile 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! smile

GOOD JOB so far!!

Sponsored Links
#43603 10/20/2001 8:02 PM
Joined: May 2001
Posts: 6,708
Member
Member
Offline
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
Offline
Joined: Dec 2000
Posts: 730
*ups* i forgot the administration... [Linked Image] i create the file with an editor for testing...

i write the console tomorrow. ideas how to code it are welcome... laugh

#43605 10/20/2001 8:21 PM
Joined: Dec 2000
Posts: 730
deutscher moderator / v5 specialist
deutscher moderator / v5 specialist
Offline
Joined: Dec 2000
Posts: 730
you add the code
Code
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
Offline
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
Offline
Joined: Oct 2000
Posts: 290
smile 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!! smile

Sponsored Links
#43608 10/21/2001 2:24 PM
Joined: Dec 2000
Posts: 730
deutscher moderator / v5 specialist
deutscher moderator / v5 specialist
Offline
Joined: Dec 2000
Posts: 730
add the code of sub checkUserForumBan in ubb_library.pl.

add the other code in sub DoPostTheTopic after
Code
code:
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 frown

@vipermad
it's tested local and I see no errors laugh

#43609 10/21/2001 2:43 PM
Joined: Dec 2000
Posts: 730
deutscher moderator / v5 specialist
deutscher moderator / v5 specialist
Offline
Joined: Dec 2000
Posts: 730
the first version of administration for UserForumBan:
Code
code:

the administration is tested local and generate no errors... [Linked Image]

Thanks Vipermad [Linked Image]

#43610 10/31/2001 12:44 AM
Joined: Apr 2001
Posts: 42
Member
Member
Offline
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
Offline
Joined: Dec 2000
Posts: 730
a step by step instruction:

  1. Step:
    make a backup of postings.cgi
  2. Step:
    find in postings.cgi in sub PostTopic and in sub Post Reply:
    Code
    code:
  3. Step:
    add after this code:
    Code
    code:
  4. Step:
    make a backup of ubb_library2.pl
  5. Step:
    add at the end of File before 1;
    Code
    code:
  6. Setp:
    save this Code in the File userForumBan.cgi
    Code
    code:
  7. 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
Offline
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
Offline
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
Offline
Joined: Dec 2000
Posts: 730
change the code
Code
code:
to
Code
code:
an add after sub LOCK_UN { return (8) };
Code
code:
change
Code
code:
to
Code
code:

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
Offline
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. smile

#43616 11/03/2001 7:26 PM
Joined: Apr 2001
Posts: 42
Member
Member
Offline
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
Offline
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
Code
code:
the following code
Code
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
Offline
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.

frown

#43619 11/06/2001 9:13 AM
Joined: Dec 2000
Posts: 730
deutscher moderator / v5 specialist
deutscher moderator / v5 specialist
Offline
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
Code
code:

#43620 01/06/2002 3:09 AM
Joined: Oct 2001
Posts: 28
Junior Member
Junior Member
Offline
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
Offline
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?


Link Copied to Clipboard
Donate Today!
Donate via PayPal

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.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)