News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Disable deletion of yourself

Started by Tristan Perry, September 11, 2004, 09:56:11 AM

Previous topic - Next topic

Tristan Perry

Quote from: malinaobenny on August 27, 2005, 01:28:31 PM
so if it's three users, i just add more "or"s?


something like this?
if ($users == 1 or $users == 2 or $users == 36 or @in_array(1, $users) or @in_array(2, $users) or @in_array(3, $users))
That would be correct, yes.

Anakin_holland

Quote from: malinaobenny on August 27, 2005, 01:28:31 PM
so if it's three users, i just add more "or"s?


something like this?
if ($users == 1 or $users == 2 or $users == 36 or @in_array(1, $users) or @in_array(2, $users) or @in_array(3, $users))

Shouldn't that be:

if ($users == 1 or $users == 2 or $users == 36 or @in_array(1, $users) or @in_array(2, $users) or @in_array(36, $users))

?? Don't know myself, just curious?

Greetz!

Tristan Perry

Quote from: Anakin_holland on August 27, 2005, 02:23:07 PM
Shouldn't that be:

if ($users == 1 or $users == 2 or $users == 36 or @in_array(1, $users) or @in_array(2, $users) or @in_array(36, $users))

?? Don't know myself, just curious?

Greetz!
Yeah, I presumed the original "3" was just a typo.

DemonicInfluence

I have a question. Couldn't they just ban you? It would end in the same effect. Could someone make it so they can't ban or demote u?

Anakin_holland

Quote from: Libo on November 08, 2005, 09:58:47 PM
I have a question. Couldn't they just ban you? It would end in the same effect. Could someone make it so they can't ban or demote u?

True, but a ban or demotion is reversable... ;) and the effect isn't exactly the same, because the messages will still be attached to that banned or demoted user?

Greetz!

Elmacik

Support me here: Super admin ;)
Maybe if much people asks for it, they give :P
Pepsi! Ask for more! LOL
Home of Elmacik

DemonicInfluence


SleePy

couldnt you just check if the user is administrator and then disable deletion?
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

alphacaveman

#28
Quote from: [Unknown] on January 25, 2005, 06:45:40 PM
It's a permission.  Simply disallow it.

-[Unknown]

As far as removing the ability of a member to delete their account, I can't find it in the permissions to disallow. Where is it?

azuregenesis

Quote from: leesw on January 02, 2006, 07:38:12 PM
Quote from: [Unknown] on January 25, 2005, 06:45:40 PM
It's a permission.  Simply disallow it.

-[Unknown]

As far as removing the ability of a member to delete their account, I can't find it in the permissions to disallow. Where is it?

using 1.1?
- admin>permissions>modify>uncheck delete account:own account

1.05?
- admin>edit permissions>modify>uncheck delete account:own account

alphacaveman


Dexy


sbarnes

Hi there,
I was about to add this to my site.
Just wanted to ask, is this till valid for version 1.1 RC2? or does that version already have this kind of feature?

I can find the code no problem but just wondered if this was a needed mod to add.
function deleteMembers($users)
{
global $db_prefix, $sourcedir, $modSettings, $ID_MEMBER;

PrizeLive.com

What's the code for version 1.1 RC2?
Get Paid Instantly via PayPal (or other options) at PrizeLive.com!

DemonicInfluence


Skipdawg

Glad this came back up. I had forgotten to had it back after updating to 1.1 RC2  ;D ;)
Skipdawg's Community

Powered by SMF 1.1.3

PrizeLive.com

Quote from: DemonicInfluence on June 18, 2006, 06:49:39 PM
The one for smf 1.1...

So the code for smf 1.1 is compatible if you use 1.1 RC2? Are you sure?
Get Paid Instantly via PayPal (or other options) at PrizeLive.com!

DemonicInfluence


PrizeLive.com

Get Paid Instantly via PayPal (or other options) at PrizeLive.com!

Stuart


Advertisement: