Welcome, Guest. Please Login or Register.
March 20, 2025, 02:44:21 PM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  Development  |  Completed mods  |  [Done] Remove delete user button from profile « previous next »
Pages: [1] 2 3 ... 5 Reply Ignore Print
Author Topic: [Done] Remove delete user button from profile  (Read 9850 times)
Chris Cromer
The Strange One
Mod Team
YaBB God
*****
Posts: 3152


I am just a figment of your imagination.

WWW
[Done] Remove delete user button from profile
« on: May 06, 2002, 04:59:19 AM »
Reply with quote

I made a mod that removes the delete user button from the profile. I saw that somebody asked for this mod so I decided to make it.

It is at http://www.agigames.com/boardmod/deleteuser.zip
« Last Edit: April 13, 2003, 12:47:46 PM by Chris Cromer » Logged

Chris Cromer

I am not suffering from insanity, I am enjoying every minute of it.
David
Destroyer Dave
Global Moderator
YaBB God
*****
Posts: 5761


I'm not a llama!

WWW
Re:[Done] Remove delete user button from profile
« Reply #1 on: May 06, 2002, 05:12:00 AM »
Reply with quote

How does it work?  Does it still let admins delete them?
Logged

Chris Cromer
The Strange One
Mod Team
YaBB God
*****
Posts: 3152


I am just a figment of your imagination.

WWW
Re:[Done] Remove delete user button from profile
« Reply #2 on: May 06, 2002, 05:16:21 AM »
Reply with quote

Yes Admins can still delete users from their admin center. The only difference now is that users can't delete themselves.
Logged

Chris Cromer

I am not suffering from insanity, I am enjoying every minute of it.
David
Destroyer Dave
Global Moderator
YaBB God
*****
Posts: 5761


I'm not a llama!

WWW
Re:[Done] Remove delete user button from profile
« Reply #3 on: May 06, 2002, 05:21:30 AM »
Reply with quote

It would be cool if instead of removing the delete link from there profile it is in a if statement that checks to see if the user is an admin before it displays it.
Logged

David
Destroyer Dave
Global Moderator
YaBB God
*****
Posts: 5761


I'm not a llama!

WWW
Re:[Done] Remove delete user button from profile
« Reply #4 on: May 06, 2002, 05:24:44 AM »
Reply with quote

It would be cool if instead of removing the delete link from there profile it is in a if statement that checks to see if the user is an admin before it displays it.
Logged

Chris Cromer
The Strange One
Mod Team
YaBB God
*****
Posts: 3152


I am just a figment of your imagination.

WWW
Re:[Done] Remove delete user button from profile
« Reply #5 on: May 06, 2002, 05:31:23 AM »
Reply with quote

I will add that, good suggestion.
Logged

Chris Cromer

I am not suffering from insanity, I am enjoying every minute of it.
Chris Cromer
The Strange One
Mod Team
YaBB God
*****
Posts: 3152


I am just a figment of your imagination.

WWW
Re:[Done] Remove delete user button from profile
« Reply #6 on: May 06, 2002, 05:54:03 AM »
Reply with quote

Alright it has been added, if the user modifying the profile is the admin then the delete button will appear. So everybody download the new version.

For those of you who like to "try before you buy" go to http://www.agigames.com/boardmod/ and register, then go to edit your profile and the delete button will be gone.
« Last Edit: June 29, 2002, 03:19:25 PM by Chris Cromer » Logged

Chris Cromer

I am not suffering from insanity, I am enjoying every minute of it.
savavn
Jr. Member
**
Posts: 72


I'm a llama!

Re:[Done] Remove delete user button from profile
« Reply #7 on: May 06, 2002, 09:10:34 AM »
Reply with quote

Parse error: parse error in /usr/home/v/e/veoclub/public_html/forum/Sources/Profile.php on line 414

 even when I have added the $txt[profileConfirm] to my english.lng myself :(
Logged
Chris Cromer
The Strange One
Mod Team
YaBB God
*****
Posts: 3152


I am just a figment of your imagination.

WWW
Re:[Done] Remove delete user button from profile
« Reply #8 on: May 06, 2002, 09:14:27 AM »
Reply with quote

Can you show me what your line 414 looks like in Profile.php, thanks. Also I don't know why you added $txt[profileConfirm] to your language file... my mod uses the prexisting text that was already in the language files, so there shouldn't be any need to alter the language files.
« Last Edit: May 06, 2002, 09:28:54 AM by AGISCI » Logged

Chris Cromer

I am not suffering from insanity, I am enjoying every minute of it.
savavn
Jr. Member
**
Posts: 72


I'm a llama!

Re:[Done] Remove delete user button from profile
« Reply #9 on: May 06, 2002, 09:29:49 AM »
Reply with quote

<input type=button value="$txt[89]" onclick="if(confirm('$txt[profileConfirm]')) { creator.moda.value='-1'; submit(); }"><BR><BR>
EOT;
   }
   else {


around this three lines

 ah, lolz, when i saw that error, i thought it was bcoz of the txt confirm thinggie, so I add it, but still nothin changed :)
Logged
Chris Cromer
The Strange One
Mod Team
YaBB God
*****
Posts: 3152


I am just a figment of your imagination.

WWW
Re:[Done] Remove delete user button from profile
« Reply #10 on: May 06, 2002, 09:35:02 AM »
Reply with quote

I don't see any problems with line 414... I guess I am going to need you to send me the whole Profile.php file so I can figure out what is wrong... send it to email removed.
« Last Edit: October 22, 2003, 01:08:30 PM by Chris Cromer » Logged

Chris Cromer

I am not suffering from insanity, I am enjoying every minute of it.
savavn
Jr. Member
**
Posts: 72


I'm a llama!

Re:[Done] Remove delete user button from profile
« Reply #11 on: May 06, 2002, 09:51:44 AM »
Reply with quote

Quote from: AGISCI on May 06, 2002, 09:35:02 AMI don't see any problems with line 414... I guess I am going to need you to send me the whole Profile.php file so I can figure out what is wrong... send it to [email protected]

  :) :) :) sent
Logged
Chris Cromer
The Strange One
Mod Team
YaBB God
*****
Posts: 3152


I am just a figment of your imagination.

WWW
Re:[Done] Remove delete user button from profile
« Reply #12 on: May 06, 2002, 09:53:31 AM »
Reply with quote

Alright thanks, I will take a look at it and see what the problem is, I don't know why it wouldn't be working because I have tested it thouroughly at my board at http://www.agigames.com/boardmod/
« Last Edit: June 29, 2002, 03:19:54 PM by Chris Cromer » Logged

Chris Cromer

I am not suffering from insanity, I am enjoying every minute of it.
Chris Cromer
The Strange One
Mod Team
YaBB God
*****
Posts: 3152


I am just a figment of your imagination.

WWW
Re:[Done] Remove delete user button from profile
« Reply #13 on: May 06, 2002, 10:05:39 AM »
Reply with quote

I can see one problem already... you must have edited it by hand or something because one of the EOT's has been moved to the right.

This is what was in the file you sent me:

  EOT;
   if ($settings[7] == 'Administrator') {
   print <<<EOT

This is what was in my mod:


EOT;
   if ($settings[7] == 'Administrator') {
   print <<<EOT

You need to move your EOT all the way to the left.

I had the same problem before I released this mod, when the EOT was a little bit to the right it would cause an error, but when I moved it all the way to the left it fixed it.
« Last Edit: May 06, 2002, 10:06:47 AM by AGISCI » Logged

Chris Cromer

I am not suffering from insanity, I am enjoying every minute of it.
savavn
Jr. Member
**
Posts: 72


I'm a llama!

Re:[Done] Remove delete user button from profile
« Reply #14 on: May 06, 2002, 07:31:43 PM »
Reply with quote

lolz, sure I did it by hand, coz i dont know how to work with the *.mod thinggie, so I openned it up by NotePad, then followed the <search for> and <replate> hehe

 im gonna try it now ;) thannx
Logged
Pages: [1] 2 3 ... 5 Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  [Done] 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.182 seconds with 20 queries.