Welcome, Guest. Please Login or Register.
March 19, 2025, 10:47:23 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 ... 3 4 [5] Reply Ignore Print
Author Topic: [Done] Remove delete user button from profile  (Read 9840 times)
Gobalopper
Mod Team
YaBB God
*****
Posts: 993


Cookie Monster

WWW
Re:[Done] Remove delete user button from profile
« Reply #60 on: February 16, 2003, 06:02:46 AM »
Reply with quote

This will allow just admins to delete people:

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


change to:

                        <td align="center" colspan="2"><br /><input type="hidden" name="moda" value="1" />
                           <input type="button" value="' . $txt[88] . '" onclick="creator.moda.value=\'1\'; submit();" />';
   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>
Logged
PoohBear
Jr. Member
**
Posts: 66


Re:[Done] Remove delete user button from profile
« Reply #61 on: February 16, 2003, 06:24:12 AM »
Reply with quote

That did the trick  ;D
Thanks, Gobalopper
Logged
Juana
Jr. Member
**
Posts: 61


Go Yabbse Go!

ICQ - 27320025 WWW
Re:[Done] Remove delete user button from profile
« Reply #62 on: February 16, 2003, 01:16:17 PM »
Reply with quote

yayayaya  thanks for the trick  ;D
Logged
GWP
Sr. Member
****
Posts: 252


A total PHP MySQL Novice :) - but getting better!

Re:[Done] Remove delete user button from profile
« Reply #63 on: February 22, 2003, 03:09:54 PM »
Reply with quote

Is that code in Profile.php?
Logged

YabbSE 1.5.1rc Mods:AdvIm, Member Map, Password Prompt, Report to mod, Smilies SE 2.0, Bio, collapsable_yabb, Ignore user, Name, allowed user, search member, enchanced ban, posts per day, Mute User, Memberlist Plus,Who,ExactPostLink. Remove_Clicklog,mc_BoldOwnThreads.QuickReply, UserEnableDisableCensor, RefererMod, lastlogin_profile,PostBasedImRestrict, ExactPostLink, UserBrowsing,
Rpg Cyco
Full Member
***
Posts: 197


bradgordon51@hotmail.com WWW
Re:[Done] Remove delete user button from profile
« Reply #64 on: February 22, 2003, 09:22:55 PM »
Reply with quote

It should be, yes.

l8ter

Rpg Cyco
Logged

GWP
Sr. Member
****
Posts: 252


A total PHP MySQL Novice :) - but getting better!

Re:[Done] Remove delete user button from profile
« Reply #65 on: February 22, 2003, 10:11:27 PM »
Reply with quote

I have the Password Prompt-1.0 by Joseph Fung  installed and I needed to change the above (bottom)script to this to get both functions to work

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

I hope it is clear, just search for the part of the profile.php in the 1st quote box above and replace it with the script in my quote box.
Logged

YabbSE 1.5.1rc Mods:AdvIm, Member Map, Password Prompt, Report to mod, Smilies SE 2.0, Bio, collapsable_yabb, Ignore user, Name, allowed user, search member, enchanced ban, posts per day, Mute User, Memberlist Plus,Who,ExactPostLink. Remove_Clicklog,mc_BoldOwnThreads.QuickReply, UserEnableDisableCensor, RefererMod, lastlogin_profile,PostBasedImRestrict, ExactPostLink, UserBrowsing,
Pages: 1 ... 3 4 [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.059 seconds with 21 queries.