Direct link to ban people from a post

Discuss features as they are added to the new version. Give us your feedback. Don't post bug reports, feature requests, support questions or suggestions here.
Forum rules
Discuss features as they are added to the new version. Give us your feedback. Don't post bug reports, feature requests, support questions or suggestions here. Feature requests are closed.
agent00shoe

Direct link to ban people from a post

Post by agent00shoe »

I noticed this in mcp_ban.php

Code: Select all

		// As a "service" we will check if any post id is specified and populate the username of the poster id if given
		$post_id = request_var('p', 0);
		$user_id = request_var('u', 0);
		$username = false;

		if ($user_id && $user_id <> ANONYMOUS)
		{
			$sql = 'SELECT username
				FROM ' . USERS_TABLE . '
				WHERE user_id = ' . $user_id;
			$result = $db->sql_query($sql);
			$username = (string) $db->sql_fetchfield('username');
			$db->sql_freeresult($result);
		}
		else if ($post_id)
		{
			$post_info = get_post_data($post_id, 'm_ban');

			if (sizeof($post_info) && !empty($post_info[$post_id]))
			{
				$username = $post_info[$post_id]['username'];
			}
		}
Is there going to be a ban button in profiles and posts? Or was this thrown in to make life easier for modders? :o
User avatar
Highway of Life
Registered User
Posts: 1399
Joined: Tue Feb 08, 2005 10:18 pm
Location: I'd love to change the World, but they won't give me the Source Code
Contact:

Re: Direct link to ban people from a post

Post by Highway of Life »

There is a ban button on all users posts (except your own ;) )
But currently, there is none on the profiles page, but it might be there as an option for template designers.
Image
agent00shoe

Re: Direct link to ban people from a post

Post by agent00shoe »

Highway of Life wrote: There is a ban button on all users posts (except your own ;) )
But currently, there is none on the profiles page, but it might be there as an option for template designers.

Ah, I've been testing the board out with one account so I didn't see that. With banning made so easy, I'm almost looking forward to spammers now. :twisted:
User avatar
iyeru42
Registered User
Posts: 30
Joined: Thu Jan 18, 2007 6:50 pm
Location: Madison, WI
Contact:

Re: Direct link to ban people from a post

Post by iyeru42 »

There should also (eventually) be a feature for topic starters (admin configurable via ACP) to make people not be able to post reply in their topic (Gaia Online has this feature for topic starters apparently, but I don't know how to use it.)
Danopia: wats wrong with windows server?
Iyeru: Everything
Danopia: r u another stereotyper?
Iyeru: No, I'm not a stereotyper.
Iyeru: In fact, I don't think I can type in stereo.
User avatar
Highway of Life
Registered User
Posts: 1399
Joined: Tue Feb 08, 2005 10:18 pm
Location: I'd love to change the World, but they won't give me the Source Code
Contact:

Re: Direct link to ban people from a post

Post by Highway of Life »

That's something completely different.
We are talking about Bans... not preventing people from posting to topics.
Image
Case
Registered User
Posts: 60
Joined: Tue Jun 06, 2006 9:44 am
Contact:

Re: Direct link to ban people from a post

Post by Case »

Where is the ban button in posts? I see Report, Post Details, Warn & Delete.
User avatar
Handyman
Registered User
Posts: 522
Joined: Thu Feb 03, 2005 5:09 am
Location: Where no man has gone before!
Contact:

Re: Direct link to ban people from a post

Post by Handyman »

Case wrote: Where is the ban button in posts? I see Report, Post Details, Warn & Delete.

There is no Ban button there... there are only those 4.
If you warn the user enough times, (to what you have it set in the ACP) it does ban them.
My phpBB3 Mods || My Mod Queue
Search Engine Friendly (SEO) URLs || Profile link on Avatar and/or Username || AJAX Chat
Display Posts Anywhere || CashMod || AJAX Quick Edit || AJAX Quick Reply

Image
Case
Registered User
Posts: 60
Joined: Tue Jun 06, 2006 9:44 am
Contact:

Re: Direct link to ban people from a post

Post by Case »

That's what I thought.
Highway of Life wrote: There is a ban button on all users posts (except your own ;) )


Highway, where is this magical button you speak of? :)
Case
Registered User
Posts: 60
Joined: Tue Jun 06, 2006 9:44 am
Contact:

Re: Direct link to ban people from a post

Post by Case »

Handyman wrote: If you warn the user enough times, (to what you have it set in the ACP) it does ban them.


Hang on, where is that setting?
User avatar
karlsemple
Registered User
Posts: 480
Joined: Mon Jan 23, 2006 8:49 am
Location: Hereford
Contact:

Re: Direct link to ban people from a post

Post by karlsemple »

Case wrote: That's what I thought.
Highway of Life wrote: There is a ban button on all users posts (except your own ;) )


Highway, where is this magical button you speak of? :)




looks as well, did I miss this? 8O
Post Reply