Advertisement:

Author Topic: Disable deletion of yourself  (Read 83875 times)

Offline Tristan Perry

  • Beta Tester
  • SMF Hero
  • *
  • Posts: 2,498
  • Gender: Male
    • Tristan Perry
Re: Disable deletion of yourself
« Reply #20 on: August 27, 2005, 01:40:07 PM »
so if it's three users, i just add more "or"s?


something like this?
Code: [Select]
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.

Offline Anakin_holland

  • Jr. Member
  • **
  • Posts: 237
  • Gender: Male
  • universe malfunction, restart reality.sys ?
Re: Disable deletion of yourself
« Reply #21 on: August 27, 2005, 02:23:07 PM »
so if it's three users, i just add more "or"s?


something like this?
Code: [Select]
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!

Offline Tristan Perry

  • Beta Tester
  • SMF Hero
  • *
  • Posts: 2,498
  • Gender: Male
    • Tristan Perry
Re: Disable deletion of yourself
« Reply #22 on: August 27, 2005, 02:46:43 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.

Offline DemonicInfluence

  • Full Member
  • ***
  • Posts: 564
  • Gender: Male
    • The House Of Politics
Re: Disable deletion of yourself
« Reply #23 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?

Offline Anakin_holland

  • Jr. Member
  • **
  • Posts: 237
  • Gender: Male
  • universe malfunction, restart reality.sys ?
Re: Disable deletion of yourself
« Reply #24 on: November 09, 2005, 02:23:12 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!

Offline Elmacik

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 8,247
  • Gender: Male
  • = Human Draft =
    • IT Store
Re: Disable deletion of yourself
« Reply #25 on: November 09, 2005, 06:00:37 PM »
Support me here: Super admin ;)
Maybe if much people asks for it, they give :P
Pepsi! Ask for more! LOL
Home of Elmacik

Offline DemonicInfluence

  • Full Member
  • ***
  • Posts: 564
  • Gender: Male
    • The House Of Politics
Re: Disable deletion of yourself
« Reply #26 on: November 09, 2005, 06:49:04 PM »
okay, cool

Offline SleePy

  • Site Team
  • SMF Master
  • *
  • Posts: 28,868
  • Gender: Male
  • Thats his happy face.
    • @jdarwood on Twitter
    • SleePy Code - My personal site
Re: Disable deletion of yourself
« Reply #27 on: November 12, 2005, 07:19:05 PM »
couldnt you just check if the user is administrator and then disable deletion?
Jeremy D — Site Team / SMF Developer
Support the SMF Support team!
Profiles:
GitHub
G+

Offline alphacaveman

  • Full Member
  • ***
  • Posts: 438
  • Gender: Male
Re: Disable deletion of yourself.
« Reply #28 on: January 02, 2006, 07:38:12 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?
« Last Edit: January 02, 2006, 09:20:10 PM by leesw »

Offline azuregenesis

  • Semi-Newbie
  • *
  • Posts: 86
Re: Disable deletion of yourself.
« Reply #29 on: January 04, 2006, 10:14:00 AM »
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

Offline alphacaveman

  • Full Member
  • ***
  • Posts: 438
  • Gender: Male
Re: Disable deletion of yourself
« Reply #30 on: January 07, 2006, 12:45:54 AM »
Thank you azuregenesis!

Offline Dexy

  • Semi-Newbie
  • *
  • Posts: 38
Re: Disable deletion of yourself
« Reply #31 on: January 16, 2006, 05:26:47 AM »
What is code for SMF 1.0.5. ?

Offline sbarnes

  • Jr. Member
  • **
  • Posts: 136
    • www.flashlight-torches.co.uk
Re: Disable deletion of yourself
« Reply #32 on: May 30, 2006, 05:34:27 PM »
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.
Code: [Select]
function deleteMembers($users)
{
global $db_prefix, $sourcedir, $modSettings, $ID_MEMBER;

Offline PrizeLive.com

  • Full Member
  • ***
  • Posts: 683
    • PrizeLive.com
Re: Disable deletion of yourself
« Reply #33 on: June 16, 2006, 03:25:06 PM »
What's the code for version 1.1 RC2?
Get Paid Instantly via PayPal (or other options) at PrizeLive.com!

Offline DemonicInfluence

  • Full Member
  • ***
  • Posts: 564
  • Gender: Male
    • The House Of Politics
Re: Disable deletion of yourself
« Reply #34 on: June 18, 2006, 06:49:39 PM »
The one for smf 1.1...

Offline Skipdawg

  • Sr. Member
  • ****
  • Posts: 895
  • Gender: Male
  • SMF Über Fan!
    • Skipdawg Central
Re: Disable deletion of yourself
« Reply #35 on: June 18, 2006, 08:32:43 PM »
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

Offline PrizeLive.com

  • Full Member
  • ***
  • Posts: 683
    • PrizeLive.com
Re: Disable deletion of yourself
« Reply #36 on: June 21, 2006, 11:28:52 AM »
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!

Offline DemonicInfluence

  • Full Member
  • ***
  • Posts: 564
  • Gender: Male
    • The House Of Politics
Re: Disable deletion of yourself
« Reply #37 on: June 26, 2006, 07:03:26 PM »
yes..

Offline PrizeLive.com

  • Full Member
  • ***
  • Posts: 683
    • PrizeLive.com
Re: Disable deletion of yourself
« Reply #38 on: June 29, 2006, 09:15:32 AM »
Get Paid Instantly via PayPal (or other options) at PrizeLive.com!

Offline Stuart

  • Full Member
  • ***
  • Posts: 421
Re: Disable deletion of yourself
« Reply #39 on: July 08, 2006, 08:17:53 PM »
This works great, thanks!