Page Index Toggle Pages: [1] 2  Send TopicPrint
Very Hot Topic (More than 25 Replies) Remove Profile 'Delete User' Button SP 1.3.1/2/1.4 (Read 9310 times)
thecaretaker
Junior Member
**
Offline


I am thecaretaker

Posts: 87
Location: 1066 Country
Joined: Dec 5th, 2002
Gender: Male
Remove Profile 'Delete User' Button SP 1.3.1/2/1.4
Jul 16th, 2004 at 4:27pm
Print Post  
OK, this is a very simple mod (my first ever).

This very simple mod removes the 'Delete User' button in a users profile. It stops users deleting themselves by mistake. Only admin can delete users.

Many of my forum members complained that the 'Delete User' button was far too close to the 'Change Profile' button on their profile page and they almost deleted their membership. This mod stops your members from deleting themselves. Only admin can delete users.

I confess to not using boardmod, I've always added mods manually, I have tried to write the mod in the same format as those that use boardmod. So it should work. Please report back if it doesn't.

This mod only changes english.lng and profile.pl

Just trying to give a little back! Let me have feedback! Cheers!



Modified file uploaded thanks to caliman.
« Last Edit: Dec 11th, 2004 at 9:59pm by thecaretaker »  

Growing old is mandatory. Growing up is optional!
Back to top
WWW  
IP Logged
 
mimit
Full Member
***
Offline


I love YaBB 1G - SP1.2!

Posts: 247
Location: Buenos Aires
Joined: Jun 16th, 2003
Gender: Male
Re: Remove Profile 'Delete User' Button SP 1.3.1
Reply #1 - Jul 16th, 2004 at 8:19pm
Print Post  
Its a nice mod, i didit manually a few years ago...
  
Back to top
 
IP Logged
 
caliman
God Member
*****
Offline


Swanky

Posts: 1220
Location: Pt. Richmond
Joined: Mar 20th, 2002
Gender: Male
Re: Remove Profile 'Delete User' Button SP 1.3.1
Reply #2 - Jul 16th, 2004 at 10:00pm
Print Post  
Good idea.  Smiley
  
Back to top
WWW  
IP Logged
 
B.L.Dog
New Member
*
Offline



Posts: 14
Location: Russia
Joined: May 20th, 2004
Gender: Male
Re: Remove Profile 'Delete User' Button SP 1.3.1
Reply #3 - Jul 17th, 2004 at 4:02pm
Print Post  
thx user in my board allways delete them profile!
  
Back to top
WWW  
IP Logged
 
bod
Junior Member
**
Offline


I love YaBB 1G - SP1.2!

Posts: 89
Joined: Jun 4th, 2004
Re: Remove Profile 'Delete User' Button SP 1.3.1
Reply #4 - Jul 17th, 2004 at 5:30pm
Print Post  
Great idea! one slight typo

<edit file>
Sources/Profile
</edit file>

Needs changing to;

<edit file>
Sources/Profile.pl
</edit file>

installs great after that

  
Back to top
 
IP Logged
 
caliman
God Member
*****
Offline


Swanky

Posts: 1220
Location: Pt. Richmond
Joined: Mar 20th, 2002
Gender: Male
Re: Remove Profile 'Delete User' Button SP 1.3.1
Reply #5 - Jul 17th, 2004 at 5:42pm
Print Post  
With this mod you are completely removing the 'delete user' option, so I am confused how you would remove them. THrough the memberlist?

Anyway, I modified this mod a bit and thought I'd share. I figure a member will know how to contact me, so I just made the 'delete user' only visible to the admin.

Code
Select All
<id>
remove profile delete user button
</id>

<version>
1.0
</version>

<mod info>
This very simple mod removes the 'Delete User' button in a users profile and replaces it with a text link which says 'request to be deleted' and links to send admin instant message. It stops users deleting themselves by mistake. Only admin can delete users via the admin control center.
</mod info>

<author>
thecaretaker
</author>

<homepage>
http://www.thecaretakers.net/cgi-bin/yabb/YaBB.cgi
</homepage>


<edit file>
Sources/Profile.pl
</edit file>

<search for>
    <input type=submit name=moda value="$txt{'89'}" onClick="return confirm('$confdel_text')"><BR><BR>
</search for>

<replace>
~;
if($settings[7] eq 'Administrator') {$yymain .= qq~    <input type=submit name=moda value="$txt{'89'}" onClick="return confirm('$confdel_text')"><BR><BR>~;}
$yymain .= qq~
</replace> 



caliman
  
Back to top
WWW  
IP Logged
 
thecaretaker
Junior Member
**
Offline


I am thecaretaker

Posts: 87
Location: 1066 Country
Joined: Dec 5th, 2002
Gender: Male
Re: Remove Profile 'Delete User' Button SP 1.3.1
Reply #6 - Jul 17th, 2004 at 7:21pm
Print Post  
Nice one. Cheers!
  

Growing old is mandatory. Growing up is optional!
Back to top
WWW  
IP Logged
 
xtrasweetgirl
Senior Member
****
Offline



Posts: 496
Joined: Oct 8th, 2002
Gender: Female
Re: Remove Profile 'Delete User' Button SP 1.3.1
Reply #7 - Jul 17th, 2004 at 9:50pm
Print Post  
Nice work there Cali Grin
  
Back to top
 
IP Logged
 
caliman
God Member
*****
Offline


Swanky

Posts: 1220
Location: Pt. Richmond
Joined: Mar 20th, 2002
Gender: Male
Re: Remove Profile 'Delete User' Button SP 1.3.1
Reply #8 - Jul 18th, 2004 at 12:28am
Print Post  
That's why they pay me the medium bucks.  Wink Smiley
  
Back to top
WWW  
IP Logged
 
bod
Junior Member
**
Offline


I love YaBB 1G - SP1.2!

Posts: 89
Joined: Jun 4th, 2004
Re: Remove Profile 'Delete User' Button SP 1.3.1
Reply #9 - Jul 18th, 2004 at 8:40pm
Print Post  
would it be possible for u exceptionally clever people to add the two mods together so u still have the 'request to be deleted' with the link to IM as in the original mod and the delete button only visible to admin as in the new mod.

I quite liked the 'request to be deleted' even though contacting admin would seem fairly obvious.

I'm just not clever enough to do it Tongue

  
Back to top
 
IP Logged
 
caliman
God Member
*****
Offline


Swanky

Posts: 1220
Location: Pt. Richmond
Joined: Mar 20th, 2002
Gender: Male
Re: Remove Profile 'Delete User' Button SP 1.3.1
Reply #10 - Jul 18th, 2004 at 9:28pm
Print Post  
Ok, uninstall and try this:

Code
Select All
<id>
remove profile delete user button
</id>

<version>
1.0
</version>

<mod info>
This very simple mod removes the 'Delete User' button in a users profile and replaces it with a text link which says 'request to be deleted' and links to send admin instant message. It stops users deleting themselves by mistake. Only admin can delete users via the admin control center.
</mod info>

<author>
thecaretaker
</author>

<homepage>
http://www.thecaretakers.net/cgi-bin/yabb/YaBB.cgi
</homepage>

<edit file>
english.lng
</edit file>

<search for>
$txt{'749'} = "The 'number of posts' box can only contain digits.";
</search for>

<add after>
$remdeltxt{'1'} = "Request to be deleted";
</add after>




<edit file>
Sources/Profile.pl
</edit file>

<search for>
    <input type=submit name=moda value="$txt{'89'}" onClick="return confirm('$confdel_text')"><BR><BR>
</search for>

<replace>
~;
if($settings[7] eq 'Administrator') {$yymain .= qq~    <input type=submit name=moda value="$txt{'89'}" onClick="return confirm('$confdel_text')"><BR><BR>~;}
else {$yymain .= qq~<BR><BR>
<A HREF="$scripturl?board=;action=imsend;to=admin" TARGET="_self"><font size="1">$remdeltxt{'1'}<BR><BR></FONT></A>~;}
$yymain .= qq~
</replace>

 



  
Back to top
WWW  
IP Logged
 
thecaretaker
Junior Member
**
Offline


I am thecaretaker

Posts: 87
Location: 1066 Country
Joined: Dec 5th, 2002
Gender: Male
Re: Remove Profile 'Delete User' Button SP 1.3.1
Reply #11 - Jul 19th, 2004 at 12:19am
Print Post  
I've updated the file in the first post to this version  Wink
  

Growing old is mandatory. Growing up is optional!
Back to top
WWW  
IP Logged
 
caliman
God Member
*****
Offline


Swanky

Posts: 1220
Location: Pt. Richmond
Joined: Mar 20th, 2002
Gender: Male
Re: Remove Profile 'Delete User' Button SP 1.3.1
Reply #12 - Jul 19th, 2004 at 12:33am
Print Post  
Did you try it? I didn't test it.
  
Back to top
WWW  
IP Logged
 
bod
Junior Member
**
Offline


I love YaBB 1G - SP1.2!

Posts: 89
Joined: Jun 4th, 2004
Re: Remove Profile 'Delete User' Button SP 1.3.1
Reply #13 - Jul 19th, 2004 at 10:01pm
Print Post  
Yep! installs fine and appears to work great.. Wink

Thanx for combining the two I think this is a really good mod Thumbs Upsup:
  
Back to top
 
IP Logged
 
Dam Yankee
God Member
*****
Offline



Posts: 1538
Location: Maryville
Joined: Jun 13th, 2003
Gender: Female
Re: Remove Profile 'Delete User' Button SP 1.3.1
Reply #14 - Jul 20th, 2004 at 3:17am
Print Post  
Ditto here.  The only thing I can recommend is changing the file extension from .txt to .mod.  Wink
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: [1] 2 
Send TopicPrint