SMF Aktif Olmayan Üyeleri Sil

Son güncelleme: 10.01.2010 11:34
  • Bu Mod Forumunuzda uzun Süredir online olmayan üyelerinizin silinmesini sağlar

    Kurulum Manuel :

    Source/Admin.php de Bul

    if (isset($_GET['sa']) && $_GET['sa'] == 'logs')

    Değiştir :

    if (isset($_GET['sa']) && $_GET['sa'] == 'limpiar')
    {
    $cota = time();
    if (isset($_POST['meses']))
    $cota -= ($_POST['meses'] * 30 * 24 * 60 * 60);
    if (isset($_POST['dias']))
    $cota -= ($_POST['dias'] * 24 * 60 * 60);
    require_once('Subs-Members.php');

    $todos = db_query("
    SELECT ID_MEMBER FROM {$db_prefix}members WHERE lastLogin < '$cota' AND dateRegistered < '$cota'",__FILE__, __LINE__);
    $indice = 0;
    $usuarios = array();
    while($usu = mysql_fetch_assoc($todos))
    {
    $usuarios[$indice++] = $usu['ID_MEMBER'];
    }
    if($indice)
    deleteMembers($usuarios);
    mysql_free_result($todos);
    $context['maintenance_finished'] = true;
    }
    elseif (isset($_GET['sa']) && $_GET['sa'] == 'logs')

    Admin.template.php de Bul :

    // Backing up the database...? Good idea!

    Öncesine Ekle :

    // Deleting not recent members Good idea!
    echo '
    <tr class="titlebg">
    <td><a href="', $scripturl, '?action=helpadmin;help=maintenance_users" onclick="return reqWin(this.href);" class="help"><img src="', $settings['images_url'], '/helptopics.gif" alt="', $txt[119], '" align="top" /></a> ', $txt['maintain_title'], ' - ', $txt['maintain_oldusers_name'], '</td>
    </tr>
    <tr>
    <td class="windowbg2" style="padding-bottom: 1ex;">
    <form action="', $scripturl, '?action=maintain;sa=limpiar" method="post" accept-charset="', $context['character_set'], '">
    ', $txt['maintain_oldusers_part1'], '<input type="text" name="meses" value="3" size="3" />', $txt['maintain_oldusers_part2'], '<input type="text" name="dias" value="0" size="3" />', $txt['maintain_oldusers_part3'], '
    <div align="right" style="margin: 1ex;"><input type="submit" value="', $txt['maintain_old_remove'], '" /></div>
    <input type="hidden" name="sesc" value="', $context['session_id'], '" />
    </form>
    </td>
    </tr>';


    Admin.turkish.php de Bul :

    ?>

    Öncesine Ekle :


    $txt['maintain_oldusers_name'] = 'Aktif Olmayan Üyeleri Sil';
    $txt['maintain_oldusers_part1'] = 'Şu süre zarfında aktif olmamış üyeleri sil ';
    $txt['maintain_oldusers_part2'] = ' ay ve ';
    $txt['maintain_oldusers_part3'] = ' gün.';

    Help.turkish.php'de Bul :

    ?>

    Öncesine Ekle :


    $helptxt['maintenance_users'] = 'Bu sizin uzun sure siteye girmemiş Üyeleri <b>silmenizi</b> sağlar.';

    Paket olarak Yüklemek İsteyenler

    Tıklayarak Yükleyebilirler

    Peki nereden Ayarlayacağız Diyorsanız

    Admin panelinde Forum Bakımına Tıklayarak Görebilirsiniz.

    Umarım işinize Yarar
#17.01.2008 11:54 0 0 0
  • yaptım oldu ama 2700 uyeden 60 uye kaldı :s
#12.04.2008 23:16 0 0 0
  • :D. Denemedim ama, admin panelinden süre ayarlanıyor olsa gerek?
#10.01.2010 11:34 0 0 0