PDA

View Full Version : Ban A Member from thier post



SouthernTn
Tue 14th Jun '05, 6:06pm
Another Idea.. :D


Lets say You wanted to ban a member directly from the View Thread area if they did something. Could it be an option right beside the IP image where an admin can click Ban User and all of the options to do so pop up, so that we admins don't have to log into the control to do that and etc.

Just a quicker way I believe.

mOdEtWo
Tue 14th Jun '05, 7:08pm
Yes, please. This is usefull for banning spam bots etc.

Daveh
Wed 15th Jun '05, 2:28am
This is something I've had for a few months now after we had loads of spam bots.

It moves the specified user to the banned user group, applies a custom title if specified and moves all threads they started to a specified forum, in out case The Gulag.

http://www.ttlg.com/dave/forums/oneclick.png

http://www.ttlg.com/dave/forums/ocb1.png

http://www.ttlg.com/dave/forums/ocb2.png

StarBuG
Wed 15th Jun '05, 5:27am
Did you release it at vb.org?
If so please provide a link ;)

Zachery
Wed 15th Jun '05, 5:58am
You could create a link that takes you directly to the ban page with their userid passed.


<a href="modcp/banning.php?do=banuser&u=$post[userid]">Ban $post[username]</a>

MGM
Wed 15th Jun '05, 11:18am
You could create a link that takes you directly to the ban page with their userid passed.


<a href="modcp/banning.php?do=banuser&u=$post[userid]">Ban $post[username]</a>
If you aren't logged in to the admin/modcp then wouldnt it ask you to login then take you to the index page?

MGM out

Dan
Wed 15th Jun '05, 11:20am
Nope it would ask you to login then it should take you directly to that page.

mOdEtWo
Wed 15th Jun '05, 1:30pm
But I need my moderators to be able to do this operation.

MGM
Wed 15th Jun '05, 3:50pm
But I need my moderators to be able to do this operation.
They can... through the admincp... with the correct permissions that is.

MGM out

Zachery
Sat 18th Jun '05, 11:01am
But I need my moderators to be able to do this operation.
Administrators ban from the modcp, just like moderators do ;)

doc101
Sat 18th Jun '05, 11:53am
You could create a link that takes you directly to the ban page with their userid passed.


<a href="modcp/banning.php?do=banuser&u=$post[userid]">Ban $post[username]</a>

This might be a dumb question (I'm still a newbie:o ), but where would we insert the above code? Thanks.

Zachery
Sat 18th Jun '05, 11:55am
Depends on where you want it to be and who you want it to showup to :)

Where would you like it? in the drop down? who should be able to see it?

doc101
Sat 18th Jun '05, 11:59am
I'm still amazed at how quickly the vB team replies to messages:eek:

I suppose it should be next to the IP address visible to admins and mods of that particular forum. How do you ensure that only admins/mods can see it? Or does everyone see it, but only admins/mods have access?

Zachery
Sat 18th Jun '05, 12:05pm
well... there are a few differnt ways, for myself, all of my moderators are in the moderator group, so its not abig issue.

You should be able to find $post[ip] and add it near there.

<if condition="in_array($bbuserinfo[usergroupid], array(5,6,7))"><a href="modcp/banning.php?do=banuser&u=$post[userid]">Ban $post[username]</a></if>

doc101
Sat 18th Jun '05, 12:20pm
thanks....i'll give that a try :)

Zachery
Sat 18th Jun '05, 12:36pm
oo, thats going to error, make sure that its



in_array($bbuserinfo[usergroupid], array(5,6,7))


and not



in_array($bbuserinfo[usergroupid], array(5,6,7)


I've edited my above post

mOdEtWo
Sat 18th Jun '05, 2:05pm
Administrators ban from the modcp, just like moderators do ;)
Yes, but it seems only the super mod is able to access the mod cp. Can I get the moderator to access modcp without having the super mod access?

Mike Sullivan
Sat 18th Jun '05, 2:20pm
Yes, but it seems only the super mod is able to access the mod cp. Can I get the moderator to access modcp without having the super mod access?
Yes.

mOdEtWo
Sun 19th Jun '05, 9:42am
Yes.
How?

Zachery
Sun 19th Jun '05, 9:47am
Assign the users as moderators of the forum ;)
AdminCP > Forums & Moderators > Forum MAnager > From the dropdown for a forum > Add Moderator :)

mOdEtWo
Sun 19th Jun '05, 9:51am
Assign the users as moderators of the forum ;)
AdminCP > Forums & Moderators > Forum MAnager > From the dropdown for a forum > Add Moderator :)
I've done that (of course). But the modcp link doesn't show up for a moderator - but it does show up for a super mod.

Strangely enough, the moderator could log in if adding /modcp to the url.

Zachery
Sun 19th Jun '05, 9:57am
Its just a link ;)

It was removed in one of the 3.0.x versions because it ran a query on every page for every non supermod or higher user :)