Customizing SMF > Tips and Tricks

Disable deletion of yourself

<< < (2/16) > >>

[Unknown]:
Nope, none really in this case.... although, I prefer "||" over the word form "or".... then again I like C/C++ ;).

-[Unknown]

double_d:
Dont' want to be a pain, but is there a way to keep users from deleting their own accounts?  I hate when people do that.

[Unknown]:
It's a permission.  Simply disallow it.

-[Unknown]

Sol:
This doesn't seem to work with SMF 1.0.1 Final :'(

I get this error :
 2: in_array(): Wrong datatype for second argument
File: /home/sol/public_html/forum/Sources/ManageMembers.php
Line: 984

Line 984 :
if ($users == 1 || in_array(1, $users) )

I've used this trick twice before with RC2 and it's worked fine. I've copied everything exactly right.

Tristan Perry:

--- Quote from: Sol on January 27, 2005, 11:56:38 AM ---This doesn't seem to work with SMF 1.0.1 Final :'(

I get this error :
 2: in_array(): Wrong datatype for second argument
File: /home/sol/public_html/forum/Sources/ManageMembers.php
Line: 984

Line 984 :
if ($users == 1 || in_array(1, $users) )

I've used this trick twice before with RC2 and it's worked fine. I've copied everything exactly right.

--- End quote ---
It's not updated to work with SMF 1.0(.1) I'll update it sometime  :)

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version