Welcome, Guest. Please Login or Register.
June 16, 2024, 05:29:41 PM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  Development  |  Completed mods  |  [Done 1.5.4] Remove "Delete User" Button From Profile « previous next »
Pages: [1] Reply Ignore Print
Author Topic: [Done 1.5.4] Remove "Delete User" Button From Profile  (Read 4419 times)
Scorpion
Noobie
*
Posts: 33


WWW
[Done 1.5.4] Remove "Delete User" Button From Profile
« on: August 25, 2003, 07:16:02 PM »
Reply with quote

This mod removes the "delete user" button from the users profile. If you are an admin, you will still see the "delete user" button.

Edit Profile.php:

Find:
                     <tr>
                        <td align="center" colspan="2"><br /><input type="hidden" name="moda" value="1" />
                           <input type="submit" value="' . $txt[88] . '" onclick="creator.moda.value=\'1\';" />
                           <input type="button" value="' . $txt[89] . '" onclick="if (confirm(\'' . $txt['profileConfirm'] . '\')) { creator.moda.value=\'-1\'; submit(); }" /><br /><br />
                        </td>
                     </tr>


Replace with:

                     <tr>
                        <td align="center" colspan="2"><br /><input type="hidden" name="moda" value="1" />
                           <input type="submit" value="' . $txt[88] . '" onclick="creator.moda.value=\'1\';" />';
                     if ($settings[7] == 'Administrator') echo '
                           <input type="button" value="' . $txt[89] . '" onclick="if (confirm(\'' . $txt['profileConfirm'] . '\')) { creator.moda.value=\'-1\'; submit(); }" />';
                           echo '<br /><br />
                        </td>
                     </tr>
« Last Edit: August 25, 2003, 07:19:32 PM by Scorpion » Logged
Anguz
YaBB God
*****
Posts: 641


llama me?!

WWW
Re:[Done 1.5.4] Remove "Delete User" Button From Profile
« Reply #1 on: August 25, 2003, 11:28:54 PM »
Reply with quote

thx Scorpion :)

this'll make it safer for users to not delete their own acct
Logged

My Mods: Avatar & Sig Size Control, No Show Msg Subject, Msg URL Composer, Built-in Avatar Rand, Built-in Sig Rand, Remove New-lines Excess, Show All Stars, Search Bar, Smart URLs
David
Destroyer Dave
Global Moderator
YaBB God
*****
Posts: 5761


I'm not a llama!

WWW
Re:[Done 1.5.4] Remove "Delete User" Button From Profile
« Reply #2 on: August 26, 2003, 01:14:26 AM »
Reply with quote

This was actually already made by Chris Cromer.  Assuming you got this from YaPP, it is his code.  ;)

http://www.yabbse.org/community/index.php?thread=7911
Logged

Scorpion
Noobie
*
Posts: 33


WWW
Re:[Done 1.5.4] Remove "Delete User" Button From Profile
« Reply #3 on: August 26, 2003, 01:24:47 AM »
Reply with quote

Quote from: David on August 26, 2003, 01:14:26 AM
This was actually already made by Chris Cromer.  Assuming you got this from YaPP, it is his code.  ;)

http://www.yabbse.org/community/index.php?thread=7911
Don't assume, because his code is for YaBB 1.4, and as you can see my code is completely different. :P
Logged
silentbob
Jr. Member
**
Posts: 59


Sweep This!!

WWW
Re:[Done 1.5.4] Remove "Delete User" Button From Profile
« Reply #4 on: October 22, 2003, 10:54:16 AM »
Reply with quote

I just wanted to say thanks for this mod.. been trying to get rid of that damn delete user button for the user forever now.. thanks again!
Logged

First you wanna kill me, now you wanna kiss me... *spits* ... Blow.
Chris Cromer
The Strange One
Mod Team
YaBB God
*****
Posts: 3152


I am just a figment of your imagination.

WWW
Re:[Done 1.5.4] Remove "Delete User" Button From Profile
« Reply #5 on: October 22, 2003, 01:10:11 PM »
Reply with quote

This is my mod, the only difference between this code and my code is tabs. And a few /'s for XHTML. ::)

And you give me no credit. :P

Nobody asked me to upgrade the mod to 1.5.4... I will do that later tonight since people apparently want this mod still.
« Last Edit: October 22, 2003, 01:17:55 PM by Chris Cromer » Logged

Chris Cromer

I am not suffering from insanity, I am enjoying every minute of it.
Scorpion
Noobie
*
Posts: 33


WWW
Re:[Done 1.5.4] Remove "Delete User" Button From Profile
« Reply #6 on: October 22, 2003, 06:27:22 PM »
Reply with quote

Quote from: Chris Cromer on October 22, 2003, 01:10:11 PM
This is my mod, the only difference between this code and my code is tabs. And a few /'s for XHTML. ::)

And you give me no credit. :P

Nobody asked me to upgrade the mod to 1.5.4... I will do that later tonight since people apparently want this mod still.
Although u may think this is your mod, I wrote it COMPLETELY by myself, and as I looked as ur code, you used print eot instead of the echo function. The mods look similar because there is no other way to do it besides these two methods. Just because it looks the same, doesn't mean I stole it.

It's a simple mod, all you need to do is add one line which is 'if username == "administrator"' and fix a couple of the functions. Also, with your print function it would not work with the yabb 1.5 or higher because the newer versions use the echo function.
« Last Edit: October 24, 2003, 12:27:32 AM by Scorpion » Logged
1979Z28
Sr. Member
****
Posts: 324


WWW
Re:[Done 1.5.4] Remove "Delete User" Button From Profile
« Reply #7 on: October 24, 2003, 12:22:28 AM »
Reply with quote

If you remove the text/code that posts up the delete button, you can't exactly claim copyright from it, if that's all that this mod does. If it adds a new feature, then sure, I could see you wanting to get credit, but when you remove a few lines of code? ??? neh...
Logged
Scorpion
Noobie
*
Posts: 33


WWW
Re:[Done 1.5.4] Remove "Delete User" Button From Profile
« Reply #8 on: October 24, 2003, 12:25:44 AM »
Reply with quote

Quote from: 1979Z28 on October 24, 2003, 12:22:28 AM
If you remove the text/code that posts up the delete button, you can't exactly claim copyright from it, if that's all that this mod does. If it adds a new feature, then sure, I could see you wanting to get credit, but when you remove a few lines of code? ??? neh...
Actually added a line:
if (username == "Administrator")
But it's not exactly something you need to think about, its common sense. Like adding a bgcolor to a page, you can't claim copyright for that and say someone stole ur idea of using a bgcolor, when the code is that simple. ::)
Logged
Chris Cromer
The Strange One
Mod Team
YaBB God
*****
Posts: 3152


I am just a figment of your imagination.

WWW
Re:[Done 1.5.4] Remove "Delete User" Button From Profile
« Reply #9 on: October 24, 2003, 02:54:07 PM »
Reply with quote

Actually that wasn't added either because mine allows the admin to delete them as well. Yours does 100% the same thing as mine and is 80% identical to my code, just modifications to work with 1.5.4.

Quote from: 1979Z28 on October 24, 2003, 12:22:28 AM
If you remove the text/code that posts up the delete button, you can't exactly claim copyright from it, if that's all that this mod does. If it adds a new feature, then sure, I could see you wanting to get credit, but when you remove a few lines of code? ??? neh...
I think you are missing the point, I am claiming credit for the mod itself, I wrote the exact same thing, the only real changes between this and mine are the coding style so that it works with 1.5.4.

But screw it... it's partially my fault for not putting a license for my mods. ::)
« Last Edit: October 24, 2003, 03:01:17 PM by Chris Cromer » Logged

Chris Cromer

I am not suffering from insanity, I am enjoying every minute of it.
Scorpion
Noobie
*
Posts: 33


WWW
Re:[Done 1.5.4] Remove "Delete User" Button From Profile
« Reply #10 on: October 24, 2003, 04:34:56 PM »
Reply with quote

QuoteI think you are missing the point, I am claiming credit for the mod itself, I wrote the exact same thing, the only real changes between this and mine are the coding style so that it works with 1.5.4.

You wrote the same thing for 1.4. But I wrote this myself, though I did get the idea from your mod. I did look at your code, and tried to make it work with 1.5. That was when I was more of a noob with php, and didn't know what I was doing. Then, I learned the whole "(if username == "administrator")" and echo function. I decided to open the file and see if I could make the mod using the new coding I learned.

Although it looks the same, for the last time I'm telling you, I DID NOT steal your mod.
Logged
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  [Done 1.5.4] Remove "Delete User" Button From Profile « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.038 seconds with 21 queries.