Neuigkeiten:

Join the Facebook Fan Page.

Hauptmenü
Advertisement:

Disable deletion of yourself

Begonnen von Tristan Perry, September 11, 2004, 09:56:11 VORMITTAG

Vorheriges Thema - Nächstes Thema

Tristan Perry

Zitat von: malinaobenny in August 27, 2005, 01:28:31 NACHMITTAGS
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

Zitat von: malinaobenny in August 27, 2005, 01:28:31 NACHMITTAGS
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

Zitat von: Anakin_holland in August 27, 2005, 02:23:07 NACHMITTAGS
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

Zitat von: Libo in November 08, 2005, 09:58:47 NACHMITTAGS
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
Zitat von: [Unknown] in Januar 25, 2005, 06:45:40 NACHMITTAGS
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

Zitat von: leesw in Januar 02, 2006, 07:38:12 NACHMITTAGS
Zitat von: [Unknown] in Januar 25, 2005, 06:45:40 NACHMITTAGS
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

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

Zitat von: DemonicInfluence in Juni 18, 2006, 06:49:39 NACHMITTAGS
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!


PrizeLive.com

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

Stuart


Advertisement: