News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Reason for deleting account

Started by Jade Elizabeth, September 23, 2007, 05:14:47 PM

Previous topic - Next topic

Jade Elizabeth

when a user deletes their accounts, i have it set so i must approve it first

but id like to know WHY

can their be a page or something following clicking the "delete account" link that has a box that says "we're sorry you wish to leave us, please take a second to tell us why" with an input that goes to admin?

it would be really handy in my opinion lol
Once proud Documentation Writer and Help Squad Leader | Check out my new adult coloring career: Color With Jade/Patreon.

Jade Elizabeth

Once proud Documentation Writer and Help Squad Leader | Check out my new adult coloring career: Color With Jade/Patreon.

Jade Elizabeth

Once proud Documentation Writer and Help Squad Leader | Check out my new adult coloring career: Color With Jade/Patreon.

Jade Elizabeth

Once proud Documentation Writer and Help Squad Leader | Check out my new adult coloring career: Color With Jade/Patreon.

antoarts


Jade Elizabeth

thank god... SOMEONE PLEASE MAKE IT!!!!
id pay but i have no money... or job :'(
Once proud Documentation Writer and Help Squad Leader | Check out my new adult coloring career: Color With Jade/Patreon.

wicked1

I'd also like this to be made. Although apparently not as much as Alundra  :P

$hawn

I'm sure this could be easyly coded as a simple PHP file......or code. You should find someone on the net who is good with MySQL+PHP to make this for you.
It would be a simple HTML/PHP page asking why, and a simple PHP code sending a PM with the imput to a given user ID.

Jade Elizabeth

i love the way people think im so smart as to know how to do that
it maketh me feel good ;)

i know no one who knows sql, all my friends HATE IT!! lol
i dont blame them, when theres an error...your screwed (well i am lol)
Once proud Documentation Writer and Help Squad Leader | Check out my new adult coloring career: Color With Jade/Patreon.

$hawn

Well...I'm not a good coder, infact, AI mainly only do HTML(I can't do CSS/layouts/templates :/) But someone on this forum that is a coder could make a mod like this quite simply as i have already stated, it doesn't take much to make a PHP page that then tells the forum to send the imputed data to "MEMBER ID" VIA PM.

Jade Elizabeth

id ask for names so i could harass them...but im a nice person so ill wait lol
Once proud Documentation Writer and Help Squad Leader | Check out my new adult coloring career: Color With Jade/Patreon.

ataru

#11
You know what, I think I can do this.  I would probably just edit the line in SSI.php that shows the "account deleted successfully" or whatever message, and then add a little line of code... do you want me to try?

*edit*  I know nothing about creating mods... but I can probably edit your PHP script.

Jade Elizabeth

yeah....but i set it to my approval first lol
Once proud Documentation Writer and Help Squad Leader | Check out my new adult coloring career: Color With Jade/Patreon.

ataru

Quote from: Alundra on November 24, 2007, 07:42:23 PM
yeah....but i set it to my approval first lol

Huh?  That doesn't mean I couldn't still edit the PHP to add something to the message.

*Searching code furiously*

I'll let you know if I make any breakthroughs.

Jade Elizabeth

Once proud Documentation Writer and Help Squad Leader | Check out my new adult coloring career: Color With Jade/Patreon.

ataru

Quote from: Alundra on November 24, 2007, 08:03:16 PM
ok :D

It's got to be around here in Forum > Sources > Profile.php:

// Present a screen to make sure the user wants to be deleted
function deleteAccount($memID)
{
   global $txt, $context, $ID_MEMBER, $modSettings, $user_profile;

   if (!$context['user']['is_owner'])
      isAllowedTo('profile_remove_any');
   elseif (!allowedTo('profile_remove_any'))
      isAllowedTo('profile_remove_own');

But I can't see where. 

ataru

Quote from: Alundra on November 24, 2007, 08:03:16 PM
ok :D

No wait, I found it!  Right here in Profile.php:

   // Open the directory..
   $dir = dir($modSettings['avatar_directory'] . (!empty($directory) ? '/' : '') . $directory);
   $dirs = array();
   $files = array();

   if (!$dir)
      return array();

   while ($line = $dir->read())
   {
      if (in_array($line, array('.', '..', 'blank.gif', 'index.php')))
         continue;

      if (is_dir($modSettings['avatar_directory'] . '/' . $directory . (!empty($directory) ? '/' : '') . $line))
         $dirs[] = $line;
      else
         $files[] = $line;
   }
   $dir->close();

Could you PM me the address to your website?  Maybe also a temporary FTP username/password?  If you don't want to; I can probably direct you through the editing.

Jade Elizabeth

my web addy is in my profile, but sure
www.jades-world.com/forums

id rather you just give me instructions, there may be other users wanting to use this anyway :)
Once proud Documentation Writer and Help Squad Leader | Check out my new adult coloring career: Color With Jade/Patreon.

ataru

Quote from: Alundra on November 24, 2007, 08:53:02 PM
my web addy is in my profile, but sure
www.jades-world.com/forums

id rather you just give me instructions, there may be other users wanting to use this anyway :)

Still, I should ask about your site address, some people (like me) have more than one... LOL.  The site looks extremely nice, by the way!

Be sure to follow these instructions carefully.

OK... first off on your FTP program, navigate to your forum's folder, then the "Sources" folder.  Click on Profile.php, then move it to a safe place on your computer just in case I botch this up.

Now move another copy of Profile.php somewhere else on your computer.  That one you're going to edit.  Open it (with Dreamweaver or whatever) and find these lines of code:

   // Open the directory..
   $dir = dir($modSettings['avatar_directory'] . (!empty($directory) ? '/' : '') . $directory);
   $dirs = array();
   $files = array();

   if (!$dir)
      return array();

   while ($line = $dir->read())
   {
      if (in_array($line, array('.', '..', 'blank.gif', 'index.php')))
         continue;

      if (is_dir($modSettings['avatar_directory'] . '/' . $directory . (!empty($directory) ? '/' : '') . $line))
         $dirs[] = $line;
      else
         $files[] = $line;
   }
   $dir->close();

It would definitely help to make the computer find this for you.  Try hitting CTRL-F (unless you're on a Mac) and enter a little of this code.  Once you've found it, replace:

   {
      if (in_array($line, array('.', '..', 'blank.gif', 'index.php')))
         continue;

with:

   {
      if (in_array($line, array('.', '..', 'blank.gif', 'http://www.examplesite.com/why_leaving.php')))
         continue;

...but obviously replace "examplesite.com" with the URL of your own.  Upload this version of SSI.php to your server.
Now create a page called why_leaving.php.  Upload it to your website.
Add an e-mail form to why_leaving.php, asking the user why they are leaving.  You can do that with help from the tutorial below:

http://www.w3schools.com/php/php_secure_mail.asp

Or I can do it for you tomorrow or the next day.

Hope that works!  If you have any problems, just upload the other copy of SSI.php (not the one you modified) to your server, and it should correct itself.

Jade Elizabeth

Once proud Documentation Writer and Help Squad Leader | Check out my new adult coloring career: Color With Jade/Patreon.

Advertisement: