YARIM EZGİ

Member Login

Hızlı Arama


Yeni Konu aç  Cevapla
Alt 01.10.08, 11:53   #1 (permalink)
 
cruel - ait Kullanıcı Resmi (Avatar)
 
Status: Üye
Üyelik tarihi: Sep 2008
Mesajlar: 78
Tecrübe Puanı: 4
cruel is on a distinguished road


Standart Hesabınızı Silerken Sebebiniz - Force Reason for Deletion (Manuel+Türkçe)

Hesabınızı Silerken Sebebiniz - Force Reason for Deletion (Manuel+Türkçe)


YEDEK ALMADAN KURMAYINIZ

MANUEL ANLATIM / TÜRKÇE DESTEĞİ İLE BİRLİKTE ( HER TEMAYA UYAR)
./Themes/default/languages/Modifications.english.php
bunu bul
Kod:
?>
Öncesine Ekle
Kod:
$txt['del_reason'] = 'Reason for leaving:';
$txt['send_pm_error'] = 'Please enter a reason for deleting your account. A minimum of 10 characters are required.';
$txt['del_rea_subj'] = 'Reason for wanting my account deleted.';
./Themes/default/languages/Modifications.turkish.php
Bul
Kod:
?>
Öncesine Ekle
Kod:
$txt['del_reason'] = 'Ayrılma İçin Sebebiniz:';
$txt['send_pm_error'] = 'Lütfen Hesabınızın Silinmesi İçin Bir Sebep Yazınız. Sebebiniz En Az 10 Karakterden Oluşmalıdır.';
$txt['del_rea_subj'] = 'Hesabımın Silinmesi İçin Beklemedeki Sebep.';
./Themes/default/Profile.template.php
Bul
Kod:
	// If the user is deleting their own account warn them first - and require a password!
	if ($context['user']['is_owner'])
	{
		echo '
								<span style="color: red;">', $txt['own_profile_confirm'], '</span><br /><br />
							</td>
						</tr><tr>
							<td class="windowbg2" align="', !$context['right_to_left'] ? 'right' : 'left', '">
								<b', (isset($context['modify_error']['bad_password']) || isset($context['modify_error']['no_password']) ? ' style="color: red;"' : ''), '>', $txt['smf241'], ': </b>
							</td>
							<td class="windowbg2" align="', !$context['right_to_left'] ? 'left' : 'right', '">
								<input type="password" name="oldpasswrd" size="20" />&nbsp;&nbsp;&nbsp;&nbsp;
								<input type="submit" value="', $txt[163], '" />
								<input type="hidden" name="sc" value="', $context['session_id'], '" />
								<input type="hidden" name="userID" value="', $context['member']['id'], '" />
								<input type="hidden" name="sa" value="', $context['menu_item_selected'], '" />
							</td>';
	}
Değiştir
Kod:
	// If the user is deleting their own account warn them first - and require a password!
	if ($context['user']['is_owner'])
	{
		echo '
								<span style="color: red;">', $txt['own_profile_confirm'], '</span><br /><br />
							</td>
						</tr><tr>
							<td class="windowbg2" align="', !$context['right_to_left'] ? 'right' : 'left', '">
								<b>',$txt['del_reason'],'</b><br />
							</td>
							<td class="windowbg2" align="', !$context['right_to_left'] ? 'left' : 'right', '">
								<input type="text" name="delreason" size="20" />&nbsp;&nbsp;&nbsp;&nbsp;
								<br />
							</td>
						</tr><tr>
							<td class="windowbg2" align="', !$context['right_to_left'] ? 'right' : 'left', '">
								<b', (isset($context['modify_error']['bad_password']) || isset($context['modify_error']['no_password']) ? ' style="color: red;"' : ''), '>', $txt['smf241'], ': </b>
							</td>
							<td class="windowbg2" align="', !$context['right_to_left'] ? 'left' : 'right', '">
								<input type="password" name="oldpasswrd" size="20" />&nbsp;&nbsp;&nbsp;&nbsp;
								<input type="submit" value="', $txt[163], '" />
								<input type="hidden" name="sc" value="', $context['session_id'], '" />
								<input type="hidden" name="userID" value="', $context['member']['id'], '" />
								<input type="hidden" name="sa" value="', $context['menu_item_selected'], '" />
							</td>';
	}
./Sources/Profile.php
Bul
Kod:
	// Change the IP address in the database.
	if ($context['user']['is_owner'])
		$profile_vars['memberIP'] = "'$user_info[ip]'";
Değiştir
Kod:
	// Change the IP address in the database.	
	if ($context['user']['is_owner'])
		$profile_vars['memberIP'] = "'$user_info[ip]'";
		
	// Force Deletion		
	if (isset($_POST['delreason']) && isset($_POST['sa']) && $_POST['sa'] == 'deleteAccount' && empty($post_errors)) {
	
		if(strlen(trim($_POST['delreason'])) < 10)
			fatal_lang_error('send_pm_error', false);
			
		$request = db_query("
			SELECT ID_MEMBER, realName
			FROM {$db_prefix}members
			WHERE ID_GROUP = 1 OR FIND_IN_SET(1, additionalGroups)
			ORDER BY realName", __FILE__, __LINE__);
		$context['admins'] = array();
		while ($row = mysql_fetch_assoc($request))
			$context['admins'][$row['ID_MEMBER']] = $row['realName'];
		mysql_free_result($request);

		// How many admins in total?
		$context['admin_count'] = count($context['admins']);

		include_once($sourcedir . '/Subs-Post.php');
		
		$recipients = array(
			'to' => $context['admins'],
			'bcc' => array()
		);
		$subject = $txt['del_rea_subj'];
		$message = $_POST['delreason'];
		$outbox_store = false;
		
		sendpm($recipients, $subject, $message, $outbox_store);
	}
KURULUM BİTMİŞTİR... (önceden veren oldu mu bilmiyorum ama ben 1.1.4 ve 1.1.5 için son sürümünü paylaştım eğer eski sürümlerini paylaşan olduysa konuların birleştirilmesini öneririm)
cruel isimli Üye şimdilik offline konumundadır   Alıntı ile Cevapla
 
 
Cevapla

Etiketler
ama, ben, bir, box, database, deletion, error, force, free, hesabınızı, içi, için, konuları, manuel, mysql, oldu, reason, sebebi, sebebiniz, silerken, size, smf, style, template, text, themes, turkish, türkçe, yazı, İçin, İle

Seçenekler
Stil

Yetkileriniz
Konu Acma Yetkiniz Yok
Cevap Yazma Yetkiniz Yok
Eklenti Yükleme Yetkiniz Yok
Mesajınızı Değiştirme Yetkiniz Yok

BB code is Açık
Smileler Açık
[IMG] Kodları Açık
HTML-Kodu Kapalı
Trackbacks are Açık
Pingbacks are Açık
Refbacks are Açık





Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.6.0 Yarım Ezgi Group
Cracker Tracker tarafından korunmaktadır.

Video İzle