Hoşgeldiniz, Ziyaretçi.Lütfen giriş yapın veya kayıt olun.
E-posta adresinize aktivasyon iletisi gelmediyse lütfen buraya tıklayın.

Kullanıcı adınızı, parolanızı ve aktif kalma süresini giriniz
Ana Sayfa Forum Arama Giriş Kayıt Ol
Simple Machines Forum Türkçe Yardım Sitesi > Simple Machines Forum Modifikasyonları > Modifikasyonlar, Kurulumları ve Hataları > Manuel Kurulum > Konu: Teşekkürler Modu Manuel Kurulumu
Sayfa: [1] 2 3 4 5   Aşağı git
« önceki sonraki »
Bu Konuyu GönderYazdır
Gönderen Konu: Teşekkürler Modu Manuel Kurulumu  (Okunma Sayısı 12444 defa)
RuHSuZ
H-Full Member
*
Çevrimdışı Çevrimdışı

Mesaj Sayısı: 29


Teşekkürler Modu Manuel Kurulumu
« : Ağustos 11, 2006, 08:14:20 ÖÖ »

Teşekkürler Modu Manuel Kurulumu
Eger Peygamber Sabrı Varsa Sizde Başlayın  Cheesy Cheesy

forum/index.php'Yi Açıyoruz

Bul
Kod:
'sticky' => array('LockTopic.php', 'Sticky'),
Altına Ekle
Kod:
'thankyouadd' => array('ThankYou.php', 'thank_you_add'),
'thankyoulist' => array('ThankYou.php', 'thank_you_list'),
'thankyoulock' => array('ThankYou.php', 'thank_you_lock'),
'thankyoupost' => array('ThankYou.php', 'thank_you_post'),
'thankyouremove' => array('ThankYou.php', 'thank_you_remove'),

Sources/Display.php'Yi Açıyoruz

Bul
Kod:
t.numReplies, t.numViews, t.locked, ms.subject, t.isSticky, t.ID_POLL,
Değiştir
Kod:
t.numReplies, t.numViews, t.locked, ms.subject, t.isSticky, t.ID_POLL, t.thank_you,

Bul
Kod:
// Is this topic sticky, or can it even be?
$topicinfo['isSticky'] = empty($modSettings['enableStickyTopics']) ? '0' : $topicinfo['isSticky'];
Değiştir
Kod:
// Is this topic sticky, or can it even be?
$topicinfo['isSticky'] = empty($modSettings['enableStickyTopics']) ? '0' : $topicinfo['isSticky'];

// Is this Thank You Topic?
$context['isThankYou'] = empty($topicinfo['thank_you']) ? FALSE : allowedTo('thank_you_view') && ($topicinfo['thank_you'] == 1 || $topicinfo['thank_you'] == 2);
$context['ThankYouLockStatus'] = empty($topicinfo['thank_you']) ? '1' : $topicinfo['thank_you'];

Bul
Kod:
$messages = array();
$posters = array();
while ($row = mysql_fetch_assoc($request))
{
if (!empty($row['ID_MEMBER']))
$posters[] = $row['ID_MEMBER'];
$messages[] = $row['ID_MSG'];
}
mysql_free_result($request);
Değiştir
Kod:
$messages = array();
$posters = array();
$first_msg_found = FALSE;
while ($row = mysql_fetch_assoc($request))
{
if (!empty($row['ID_MEMBER']))
$posters[] = $row['ID_MEMBER'];
$messages[] = $row['ID_MSG'];

//First Message in this list?
if(!$first_msg_found)
$first_msg_found = $context['topic_first_message'] == $row['ID_MSG'];
}
mysql_free_result($request);

//Load The Thank You infomations :)
require_once($sourcedir . '/ThankYou.php');
//Okay This is not the First Page so i need only Settings ;)

if(!$first_msg_found || !$context['isThankYou']) {
thank_you_loadPremission();
$context['isThankYou'] = FALSE;
}
//Oh the First Page :) Nice here i must add this tiny little list or the link :)
else
$context['isThankYou'] = thank_you_list(FALSE);

Bul
Kod:
if (empty($options['view_newest_first']))
$counter++;
else
$counter--;

return $output;
Üstüne Ekle
Kod:
//I only add to the first post a Thank You List or the link (at the bottom of the post *grin*)
if($counter == 0 && $context['isThankYou']) {
$output['body'] .= doUBBC('[hr]', FALSE).'<font size="1"><span class="smalltext">'.$context['thank_you']['info'].'</span></font>';
}

Sources/Load.php'Yi Açıyoruz

Bul
Kod:
b.ID_THEME, b.override_theme, b.permission_mode, b.countPosts
Değiştir
Kod:
b.thank_you_automatic,
b.ID_THEME, b.override_theme, b.permission_mode, b.countPosts

Bul
Kod:
'name' => $row['bname'],
'description' => $row['description'],
Değiştir
Kod:
'name' => $row['bname'],
'description' => $row['description'],
'thank_you_automatic' => !empty($row['thank_you_automatic']),

sources/ManageBoards.php'Yi Açıyoruz

Bul
Kod:
'count_posts' => 1,
Değiştir
Kod:
'count_posts' => 1,
'thank_you_automatic' => 0,

Bul
Kod:
$boardOptions['posts_count'] = isset($_POST['count']);
Değiştir
Kod:
$boardOptions['posts_count'] = isset($_POST['count']);
$boardOptions['thank_you_automatic'] = isset($_POST['thank_you']);

sources/ManagePermissions.php'Açıyoruz

Bul
Kod:
'member_admin' => array(
'moderate_forum' => false,
'manage_membergroups' => false,
'manage_permissions' => false,
'manage_bans' => false,
'send_mail' => false,
),
Değiştir
Kod:
'member_admin' => array(
'moderate_forum' => false,
'manage_membergroups' => false,
'manage_permissions' => false,
'manage_bans' => false,
'send_mail' => false,
),
'thank_you' => array(
'thank_you_view' => false,
'thank_you_post' => false,
'thank_you_add' => true,
'thank_you_lock' => true,
'thank_you_remove' => true,
),

Bul
Kod:
'mark_any_notify',
'mark_notify',
Değiştir
Kod:
'thank_you_post',
'thank_you_add',
'thank_you_lock',
'thank_you_remove',
'mark_any_notify',
'mark_notify',

sources/ModSettings.php'Yi Açıyoruz

Bul
Kod:
'layout' => array(
'title' => $txt['mods_cat_layout'],
'href' => $scripturl . '?action=featuresettings;sa=layout;sesc=' . $context['session_id'],
),
Değiştir
Kod:
'layout' => array(
'title' => $txt['mods_cat_layout'],
'href' => $scripturl . '?action=featuresettings;sa=layout;sesc=' . $context['session_id'],
),
'ThankYou' => array(
'title' => $txt['Thank_You_Headline'],
'href' => $scripturl . '?action=featuresettings;sa=ThankYou;sesc=' . $context['session_id'],
),

Bul
Kod:
'layout' => 'ModifyLayoutSettings',
Değiştir
Kod:
'layout' => 'ModifyLayoutSettings',
'ThankYou' => 'ModifyThankYouSettings',

Bul
Kod:
$context['post_url'] = $scripturl . '?action=featuresettings2;save;sa=karma';
$context['settings_title'] = $txt['smf293'];

prepareDBSettingContext($config_vars);
}
Altına Ekle
Kod:
function ModifyThankYouSettings()
{
global $txt, $scripturl, $context, $settings, $sc;

$config_vars = array(
//Thank you User Settings?
array('check', 'Thank_You_UserOrder'),
array('check', 'Thank_You_MemberColor'),
array('check', 'Thank_You_AddCounter'),
'',
//ThankYouList or not ;)
array('check', 'Thank_You_LinkListOnly'),
array('check', 'Thank_You_AddLink'),
array('int', 'Thank_You_UserPreview'),
'',
//HideMod
array('check', 'Thank_You_ShowHidden'),
);

// Saving?
if (isset($_GET['save']))
{
saveDBSettings($config_vars);
redirectexit('action=featuresettings;sa=ThankYou');
}

$context['post_url'] = $scripturl . '?action=featuresettings2;save;sa=ThankYou';
$context['settings_title'] = $txt['Thank_You_Headline'];

prepareDBSettingContext($config_vars);
}

sources/Post.php'Yi Açıyoruz
Bul
Kod:
t.locked, IFNULL(ln.ID_TOPIC, 0) AS notify, t.isSticky, t.ID_POLL, t.numReplies, mf.ID_MEMBER,
değiştir
Kod:
t.locked, IFNULL(ln.ID_TOPIC, 0) AS notify, t.isSticky, t.ID_POLL, t.numReplies, mf.ID_MEMBER, t.thank_you,

Bul
Kod:
list ($locked, $context['notify'], $sticky, $pollID, $context['num_replies'], $ID_MEMBER_POSTER, $ID_FIRST_MSG, $first_subject, $lastPostTime) = mysql_fetch_row($request);
Değiştir
Kod:
list ($locked, $context['notify'], $sticky, $pollID, $context['num_replies'], $ID_MEMBER_POSTER, $context['isThank_You'], $ID_FIRST_MSG, $first_subject, $lastPostTime) = mysql_fetch_row($request);

Bul
Kod:
$context['can_lock'] = allowedTo('lock_any') || ($ID_MEMBER == $ID_MEMBER_POSTER && allowedTo('lock_own'));
$context['can_sticky'] = allowedTo('make_sticky') && !empty($modSettings['enableStickyTopics']);
değiştir
Kod:
$context['can_lock'] = allowedTo('lock_any') || ($ID_MEMBER == $ID_MEMBER_POSTER && allowedTo('lock_own'));
$context['can_sticky'] = allowedTo('make_sticky') && !empty($modSettings['enableStickyTopics']);
$context['can_Thank_you'] = allowedTo('thank_you_add_any') || ($ID_MEMBER == $ID_MEMBER_POSTER && allowedTo('thank_you_add_own'));
$context['add_thank_you'] = !empty($_REQUEST['add_thank_you']);

Bul
Kod:
$locked = 0;
// !!! These won't work if you're making an event.
$context['can_lock'] = allowedTo(array('lock_any', 'lock_own'));
$context['can_sticky'] = allowedTo('make_sticky') && !empty($modSettings['enableStickyTopics']);

$context['notify'] = !empty($context['notify']);
$context['sticky'] = !empty($_REQUEST['sticky']);
Değiştir
Kod:
$locked = 0;
// !!! These won't work if you're making an event.
$context['can_lock'] = allowedTo(array('lock_any', 'lock_own'));
$context['can_sticky'] = allowedTo('make_sticky') && !empty($modSettings['enableStickyTopics']);
$context['can_Thank_you'] = allowedTo(array('thank_you_add_any', 'thank_you_add_own'));

$context['notify'] = !empty($context['notify']);
$context['sticky'] = !empty($_REQUEST['sticky']);
$context['add_thank_you'] = !empty($_REQUEST['add_thank_you']);

Bul
Kod:
$context['is_new_topic'] = empty($topic);
Değiştir
Kod:
   $context['thank_you_automatic'] = empty($topic) && $board_info['thank_you_automatic'] && !isset($_REQUEST['preview']);
$context['is_new_topic'] = empty($topic);

Bul
Kod:
$request = db_query("
SELECT t.locked, t.isSticky, t.ID_POLL, t.numReplies, m.ID_MEMBER
FROM ({$db_prefix}topics AS t, {$db_prefix}messages AS m)
WHERE t.ID_TOPIC = $topic
AND m.ID_MSG = t.ID_FIRST_MSG
LIMIT 1", __FILE__, __LINE__);
list ($tmplocked, $tmpstickied, $pollID, $numReplies, $ID_MEMBER_POSTER) = mysql_fetch_row($request);
mysql_free_result($request);
Değiştir
Kod:
$request = db_query("
SELECT t.locked, t.isSticky, t.ID_POLL, t.numReplies, m.ID_MEMBER, t.thank_you
FROM ({$db_prefix}topics AS t, {$db_prefix}messages AS m)
WHERE t.ID_TOPIC = $topic
AND m.ID_MSG = t.ID_FIRST_MSG
LIMIT 1", __FILE__, __LINE__);
list ($tmplocked, $tmpstickied, $pollID, $numReplies, $ID_MEMBER_POSTER, $add_thank_you) = mysql_fetch_row($request);
mysql_free_result($request);

Bul
Kod:
if (isset($_POST['sticky']) && (empty($modSettings['enableStickyTopics']) || empty($_POST['sticky']) || !allowedTo('make_sticky')))
unset($_POST['sticky']);
Değiştir
Kod:
if (isset($_POST['sticky']) && (empty($modSettings['enableStickyTopics']) || empty($_POST['sticky']) || !allowedTo('make_sticky')))
unset($_POST['sticky']);
//Add Thank You to the Topic?
if (isset($_POST['add_thank_you']) && !allowedTo(array('thank_you_add_any', 'thank_you_add_own')))
unset($_POST['add_thank_you']);

Bul
Kod:
SELECT
m.ID_MEMBER, m.posterName, m.posterEmail, m.posterTime,
Değiştir
Kod:
SELECT
m.ID_MEMBER, m.posterName, m.posterEmail, m.posterTime, t.thank_you,

Bul
Kod:
// Change the sticky status of this topic?
if (isset($_POST['sticky']) && (!allowedTo('make_sticky') || $_POST['sticky'] == $row['isSticky']))
unset($_POST['sticky']);

if ($row['ID_MEMBER'] == $ID_MEMBER && !allowedTo('modify_any'))
Değiştir
Kod:
// Change the sticky status of this topic?
if (isset($_POST['sticky']) && (!allowedTo('make_sticky') || $_POST['sticky'] == $row['isSticky']))
unset($_POST['sticky']);
//Change the Thank YOu of the Topic?
if (isset($_POST['add_thank_you']) && !empty($row['thank_you']) && !(allowedTo('thank_you_add_any') || ($ID_MEMBER == $ID_MEMBER_POSTER && allowedTo('thank_you_add_own'))))
unset($_POST['add_thank_you']);

if ($row['ID_MEMBER'] == $ID_MEMBER && !allowedTo('modify_any'))

Bul
Kod:
'sticky_mode' => isset($_POST['sticky']) && !empty($modSettings['enableStickyTopics']) ? (int) $_POST['sticky'] : null,
Değiştir
Kod:
'sticky_mode' => isset($_POST['sticky']) && !empty($modSettings['enableStickyTopics']) ? (int) $_POST['sticky'] : null,
'thank_you_mode' => isset($_POST['add_thank_you']),

sources/Security.php'Yi Açıyoruz
Bul
Kod:
'poll_post',
'poll_add_own', 'poll_add_any',
'poll_edit_own', 'poll_edit_any',
'poll_lock_own', 'poll_lock_any',
'poll_remove_own', 'poll_remove_any',
Değiştir
Kod:
'poll_post',
'poll_add_own', 'poll_add_any',
'poll_edit_own', 'poll_edit_any',
'poll_lock_own', 'poll_lock_any',
'poll_remove_own', 'poll_remove_any',
'thank_you_post',
'thank_you_add_own', 'thank_you_add_any',
'thank_you_lock_own', 'thank_you_lock_any',
'thank_you_remove_own', 'thank_you_remove_any',

sources/Subs-Boards.php'Yi Açıyoruz
Bul
Kod:
if (isset($boardOptions['posts_count']))
$boardUpdates[] = 'countPosts = ' . ($boardOptions['posts_count'] ? '0' : '1');
Değiştir
Kod:
if (isset($boardOptions['posts_count']))
$boardUpdates[] = 'countPosts = ' . ($boardOptions['posts_count'] ? '0' : '1');

// Okay Automatic Thank you?
if (isset($boardOptions['thank_you_automatic']))
$boardUpdates[] = 'thank_you_automatic = ' . ($boardOptions['thank_you_automatic'] ? '1' : '0');

Bul
Kod:
b.boardOrder, b.countPosts, b.memberGroups, b.ID_THEME, b.override_theme,
Değiştir
Kod:
b.boardOrder, b.countPosts, b.memberGroups, b.ID_THEME, b.override_theme,
b.thank_you_automatic,

Bul
Kod:
'description' => $row['description'],
'count_posts' => empty($row['countPosts']),
Değiştir
Kod:
'description' => $row['description'],
'count_posts' => empty($row['countPosts']),
'thank_you_automatic' => !empty($row['thank_you_automatic']),

sources/Subs-Post.php'Yi Açıyoruz
Bul
Kod:
$msgOptions['attachments'] = empty($msgOptions['attachments']) ? array() : $msgOptions['attachments'];
$topicOptions['id'] = empty($topicOptions['id']) ? 0 : (int) $topicOptions['id'];
$topicOptions['poll'] = isset($topicOptions['poll']) ? (int) $topicOptions['poll'] : null;
$topicOptions['lock_mode'] = isset($topicOptions['lock_mode']) ?  $topicOptions['lock_mode'] : null;
$topicOptions['sticky_mode'] = isset($topicOptions['sticky_mode']) ? $topicOptions['sticky_mode'] : null;
Altına Ekle
Kod:
$topicOptions['thank_you_mode'] = isset($topicOptions['thank_you_mode']) ? $topicOptions['thank_you_mode'] : FALSE;

Bul
Kod:
// Creating is modifying...in a way.
db_query("
UPDATE {$db_prefix}messages
SET ID_MSG_MODIFIED = $msgOptions[id]
WHERE ID_MSG = $msgOptions[id]", __FILE__, __LINE__);
Değiştir
Kod:
//Correct the thank you if set :)
if(!empty($topicOptions['id']) && $topicOptions['thank_you_mode']) {
global $sourcedir;
include_once($sourcedir.'/ThankYou.php');
thank_you_addfast($topicOptions['id']);
}

// Creating is modifying...in a way.
db_query("
UPDATE {$db_prefix}messages
SET ID_MSG_MODIFIED = $msgOptions[id]
WHERE ID_MSG = $msgOptions[id]", __FILE__, __LINE__);
Bul
Kod:
$topicOptions['poll'] = isset($topicOptions['poll']) ? (int) $topicOptions['poll'] : null;
$topicOptions['lock_mode'] = isset($topicOptions['lock_mode']) ? $topicOptions['lock_mode'] : null;
$topicOptions['sticky_mode'] = isset($topicOptions['sticky_mode']) ? $topicOptions['sticky_mode'] : null;

// This is longer than it has to be, but makes it so we only set/change what we have to.
Değiştir
Kod:
$topicOptions['poll'] = isset($topicOptions['poll']) ? (int) $topicOptions['poll'] : null;
$topicOptions['lock_mode'] = isset($topicOptions['lock_mode']) ? $topicOptions['lock_mode'] : null;
$topicOptions['sticky_mode'] = isset($topicOptions['sticky_mode']) ? $topicOptions['sticky_mode'] : null;
$topicOptions['thank_you_mode'] = isset($topicOptions['thank_you_mode']) ? $topicOptions['thank_you_mode'] : FALSE;

// This is longer than it has to be, but makes it so we only set/change what we have to.

Bul
Kod:
if ($topicOptions['sticky_mode'] !== null || $topicOptions['lock_mode'] !== null || $topicOptions['poll'] !== null)
{
db_query("
UPDATE {$db_prefix}topics
SET
isSticky = " . ($topicOptions['sticky_mode'] === null ? 'isSticky' : $topicOptions['sticky_mode']) . ",
locked = " . ($topicOptions['lock_mode'] === null ? 'locked' : $topicOptions['lock_mode']) . ",
ID_POLL = " . ($topicOptions['poll'] === null ? 'ID_POLL' : $topicOptions['poll']) . "
WHERE ID_TOPIC = $topicOptions[id]
LIMIT 1", __FILE__, __LINE__);
}
değiştir
Kod:
if ($topicOptions['sticky_mode'] !== null || $topicOptions['lock_mode'] !== null || $topicOptions['poll'] !== null || $topicOptions['thank_you_mode'])
{
db_query("
UPDATE {$db_prefix}topics
SET
isSticky = " . ($topicOptions['sticky_mode'] === null ? 'isSticky' : $topicOptions['sticky_mode']) . ",
locked = " . ($topicOptions['lock_mode'] === null ? 'locked' : $topicOptions['lock_mode']) . ",
ID_POLL = " . ($topicOptions['poll'] === null ? 'ID_POLL' : $topicOptions['poll']) . ",
thank_you = " . ($topicOptions['thank_you_mode'] === FALSE ? 'thank_you' : '1') . "
WHERE ID_TOPIC = $topicOptions[id]
LIMIT 1", __FILE__, __LINE__);
}

languages/index.turkish.php'Yi Açıyoruz
Bul
Kod:
?>
Üstüne Ekle
Kod:
$txt['d_thank_you_lock1'] = 'Bu konuyu teşekk&uuml;re kapat';
$txt['d_thank_you_lock2'] = 'Bu konuyu teşekk&uuml;re a&ccedil;';
$txt['d_thank_you_remove'] = 'Bu konudan teşekk&uuml;rleri sil';
$txt['d_thank_you_remove_warn'] = 'Buradaki t&uuml;m teşekk&uuml;rleri silmek istediğinizden emin misiniz?';
$txt['d_thank_you_post'] = 'Aşağıdaki listedeki kullanıcılar bu konu i&ccedil;in teşekk&uuml;r ediyorlar!';
$txt['d_thank_you_add'] = 'Bu konuyu teşekk&uuml;re a&ccedil;';
$txt['d_thank_you'] = 'Bu konuya teşekk&uuml;r et';

languages/ManagePermissions.turkish.php'Yi Açıyoruz
Bul
Kod:
?>
Üstüne Ekle
Kod:
$txt['permissiongroup_thank_you'] = 'Teşekk&uuml;r Modu';
$txt['permissionname_thank_you_view'] = 'Teşekk&uuml;r listesini g&ouml;r&uuml;nt&uuml;leyebilir';
$txt['permissionhelp_thank_you_view'] = 'Bu izini a&ccedil;arsanız kullanıcılar bir konuya teşekk&uuml;r edenlerin listesini g&ouml;rebilecekler.';
$txt['permissionname_thank_you_post'] = 'Konulara teşekk&uuml;r edebilir';
$txt['permissionhelp_thank_you_post'] = 'Bu izini aktifleştirirseniz bu kullanıcı grubu konulara teşekk&uuml;r edebilirler';
$txt['permissionname_thank_you_add'] = 'Konuları teşekk&uuml;re a&ccedil;abilir';
$txt['permissionhelp_thank_you_add'] = 'Bu izini a&ccedil;arsanız bu kullanıcı grubu konulara teşekk&uuml;r edilmesi i&ccedil;in teşekk&uuml;r listesini a&ccedil;abilir.';
$txt['permissionname_thank_you_add_own'] = 'Kendi konularını';
$txt['permissionname_thank_you_add_any'] = 'Herhangi bir konuyu';
$txt['permissionname_thank_you_lock'] = 'Teşekk&uuml;r listesini kilitleyebilir';
$txt['permissionhelp_thank_you_lock'] = 'Bu izini verirseniz bu kullanıcı grubu bir konudaki teşekk&uuml;r listesini kilitleyebilir. Artık o konuya kimse teşekk&uuml;r edemez.';
$txt['permissionname_thank_you_lock_own'] = 'Kendi teşekk&uuml;rl&uuml; konusunu';
$txt['permissionname_thank_you_lock_any'] = 'Herhangi teşekk&uuml;rl&uuml; bir konuyu';
$txt['permissionname_thank_you_remove'] = 'Teşekk&uuml;rleri silebilir';
$txt['permissionhelp_thank_you_remove'] = 'Bu izini a&ccedil;arsanız bu kullanıcı grubu bir konudaki teşekk&uuml;rleri silebilir.';
$txt['permissionname_thank_you_remove_own'] = 'Kendi teşekk&uuml;r&uuml;n&uuml;';
$txt['permissionname_thank_you_remove_any'] = 'Herhangi bir teşekk&uuml;r&uuml;';

languages/ModSettings.turkish.php'Yi Açıyoruz
Bul
Kod:
?>
Üstüne Ekle
Kod:
$txt['Thank_You_Headline'] = 'Teşekk&uuml;r Modu';
$txt['Thank_You_MemberColor'] = 'Teşekk&uuml;r listesindeki &uuml;yelerin isimlerini renkli g&ouml;ster';
$txt['Thank_You_UserPreview'] = 'Teşekk&uuml;r listesindeki g&ouml;sterilecek kullanıcı sayısı<br /><font size=1>(<b>0 = tamamını g&ouml;ster</b>)</font>';
$txt['Thank_You_LinkListOnly'] = 'Teşekk&uuml;r listesini konudan ayrı g&ouml;ster, konuya liste i&ccedil;in link bırak';
$txt['Thank_You_UserOrder'] = 'Son teşekk&uuml;r edeni teşekk&uuml;r listesinde ilk pozisyonda g&ouml;ster (normalde sonda g&ouml;sterir)';
$txt['Thank_You_AddLink'] = 'Teşekk&uuml;r listesinin sonuna her defasında link ekle';
$txt['Thank_You_AddCounter'] = 'Teşekk&uuml;r listesindeki kullanıcı isimlerinin yanına ka&ccedil;ıncı teşekk&uuml;r olduklarını yaz';
$txt['Thank_You_ShowHidden'] = 'Kullanıcı bir konuya teşekk&uuml;r ettiğinde o konudaki gizli i&ccedil;eriği a&ccedil;<br /><font size=1><a href="http://mods.simplemachines.org/index.php?mod=118">(Hide Mod Special kurulu olmalı)</a></font>';

languages/ManageBoards.turkish.php'Yi Açıyoruz
Bul
Kod:
?>
Üstüne Ekle
Kod:
$txt['mboards_thank_you_automatic'] = 'Bu kategorideki konular otomatik olarak teşekk&#uuml;re a&ccedil;&#305k olsun.';
$txt['mboards_thank_you_automatic_desc'] = 'Bunu aktifleştirirseniz, bu b&ouml;l&uuml;mde a&ccedil;#305;lan her konu otomatik olarak teşekk&uuml;r

languages/Post.turkish.php'Yi Açıyoruz
Bul
Kod:
?>
Üstüne Ekle
Kod:
$txt['thank_you_after2'] = 'Bu konuyu teşekk&uuml;re a&ccedil;';

themes/Display.template.php'Yi Açıyoruz
Bul
Kod:
$split_button = create_button('split.gif', 'smf251', 'smf251', 'align="middle"');
Altına Ekle
Kod:
//Creat Thank You Buttons :)
if (isset($context['thank_you']['premission'])) {
if ($context['thank_you']['premission']['post'])
$thanks_button = create_button('thank_you_b.gif', 'd_thank_you_post', 'd_thank_you', 'align="middle"');
elseif ($context['thank_you']['premission']['add'])
$thanks_button = create_button('thank_you_b.gif', 'd_thank_you_add', 'd_thank_you_add', 'align="middle"');
}
Bul
Kod:
if ($context['can_split'])
echo '
<a href="', $scripturl, '?action=splittopics;topic=', $context['current_topic'], '.0;at=', $message['id'], '">', $split_button, '</a>';
Altına Ekle
Kod:
//Add Thnak You Buttons :)
if (isset($context['thank_you']['premission'])) {
if ($context['thank_you']['premission']['post'])
echo '<a href="' . $scripturl . '?action=thankyoupost;topic=' . $context['current_topic'] . '.0">' . $thanks_button . '</a>';
elseif ($context['thank_you']['premission']['add'])
echo '<a href="' . $scripturl . '?action=thankyouadd;topic=' . $context['current_topic'] . '.0">' . $thanks_button . '</a>';
}

Bul
Kod:
if ($context['can_remove_post'] && !empty($options['display_quick_mod']) && $options['display_quick_mod'] == 1)
$mod_buttons[] = array('text' => 'quickmod_delete_selected', 'image' => 'delete_selected.gif', 'lang' => true, 'custom' => 'onclick="return confirm(\'' . $txt['quickmod_confirm'] . '\');" id="quickmodSubmit"', 'url' => 'javascript:document.quickModForm.submit();');
Üstüne Ekle
Kod:
if (isset($context['thank_you']['premission']))
$mod_buttons += array(
'lock_thank_you' => array('test' => 'thank_you_lock', 'text' => 'd_thank_you_lock'.$context['ThankYouLockStatus'], 'image' => 'thank_you_lock'.$context['ThankYouLockStatus'].'.gif', 'lang' => true, 'custom' => '', 'url' => $scripturl . '?action=thankyoulock;topic=' . $context['current_topic'] . '.0'),
'remove_thank_you' => array('test' => 'thank_you_delete', 'text' => 'd_thank_you_remove', 'image' => 'thank_you_delete.gif', 'lang' => true, 'custom' => 'onclick="return confirm(\'' . $txt['d_thank_you_remove_warn'] . '\');"', 'url' => $scripturl . '?action=thankyouremove;topic=' . $context['current_topic'] . '.0'),
);

themes/ManageBoards.template.php'Yi Açıyoruz
Bul
Kod:
<td valign="top" align="right">
<input type="checkbox" name="count" ', $context['board']['count_posts'] ? ' checked="checked"' : '', ' class="check" />
</td>
</tr>';
Altına Ekle
Kod:
// Here is the New Thank You Option for the Board Premissions
echo '
<tr>
<td>
<b>', $txt['mboards_thank_you_automatic'], '</b><br />
', $txt['mboards_thank_you_automatic_desc'], '<br /><br />
</td>
<td valign="top" align="right">
<input type="checkbox" name="thank_you" ', $context['board']['thank_you_automatic'] ? ' checked="checked"' : '', ' class="check" />
</td>
</tr>';

themes/Post.template.php'Yi Açıyoruz
Bul
Kod:
<tr>
<td class="smalltext"><label for="check_smileys"><input type="checkbox" name="ns" id="check_smileys"', $context['use_smileys'] ? '' : ' checked="checked"', ' value="NS" class="check" /> ', $txt[277], '</label></td>', '
<td class="smalltext">', $context['can_move'] ? '<input type="hidden" name="move" value="0" /><label for="check_move"><input type="checkbox" name="move" id="check_move" value="1" class="check" /> ' . $txt['move_after2'] . '</label>' : '', '</td>
</tr>', $context['can_announce'] && $context['is_first_post'] ? '
<tr>
<td class="smalltext"><label for="check_announce"><input type="checkbox" name="announce_topic" id="check_announce" value="1" class="check" /> ' . $txt['announce_topic'] . '</label></td>
<td class="smalltext"></td>
</tr>' : '', '
Altına Ekle
Kod:
', $context['can_Thank_you'] && empty($context['isThank_You']) ? '
<tr>
<td class="smalltext"><label for="check_thank_you"><input type="checkbox" name="add_thank_you" id="add_thank_you"' . ($context['add_thank_you'] || $context['thank_you_automatic'] ? ' checked="checked"' : '') . ' value="1" class="check" /> '.$txt['thank_you_after2'].'</label></td>
<td class="smalltext"></td>
</tr>' : '', '

Ve Son Olarakta Burdan Dosyayı İndir Klasore Çıkar
thank_you.gif'i Kullandığın Tema/images/english
thank_you_b.gif'i Kulllandığın Tema/images/buttons
thank_you_lock2.gif
thank_you_lock1.gif
thank_you_delete.gif
thank_you_add.gif Kullanıdığın Tema/images/english İçine At
ThankYou.php" sources'in İçine
ThankYou.template.php"Kullandığın Temanın İçine
ThankYou.english.php" Themes/default/languagesin' İçine
Kayıtlı
Monster
H-Full Member
*
Çevrimdışı Çevrimdışı

Mesaj Sayısı: 11


Ynt: Teşekkürler Modu Manuel Kurulumu
« Yanıtla #1 : Eylül 07, 2006, 09:08:26 ÖÖ »

Grin usta bunu yap yap bitmes heheh
Kayıtlı
UniTSclub
H-Full Member
*
Çevrimdışı Çevrimdışı

Mesaj Sayısı: 11


Site
Ynt: Teşekkürler Modu Manuel Kurulumu
« Yanıtla #2 : Eylül 07, 2006, 12:31:46 ÖS »

Ewet yap yap bitmez gibi geliyor ilk bakışta ancak otomatik olarak panelden kursan sonra sadece default temada ayarladığın değişiklikleri kendi kullandığın temaya uyarlarsan aynı sonucu alırsın .buradaki birçok kodu kendin eklemezsin.
Kayıtlı

http://www.trabzonforum.com
http://www.forumturka.gen.tr
tayshaun
H-Full Member
*
Çevrimdışı Çevrimdışı

Mesaj Sayısı: 2


Ynt: Teşekkürler Modu Manuel Kurulumu
« Yanıtla #3 : Eylül 13, 2006, 11:11:44 ÖÖ »

eksiksiz kurdum Unknown column 'b.thank_you_automatic' in 'field list' dıye bır hata verıd neden
Kayıtlı
husmen73
Sr. Member
***
Çevrimdışı Çevrimdışı

Mesaj Sayısı: 3166


Gülhin İnternet'e sitenizin tasarımını yaptırın.


Site
Ynt: Teşekkürler Modu Manuel Kurulumu
« Yanıtla #4 : Eylül 14, 2006, 08:06:17 ÖÖ »

Alıntı sahibi: tayshaun üzerinde Eylül 13, 2006, 11:11:44 ÖÖ
eksiksiz kurdum Unknown column 'b.thank_you_automatic' in 'field list' dıye bır hata verıd neden
Modifikasyonu indir ve içinde "install.php" gibi bir dosya olmalı.. Onu forum içine upload et ve çalıştır...
Kayıtlı


Anka Teması ve Oboj Teması satışa sunulmuştur.

www.gulhin.com
  

Bana ulaşmak isterseniz husmen100[at]hotmail.com mail adresimi kullanabilirsiniz. MSN Messenger üzerinden SMF konusunda yardım etmiyorum fakat Tema Tasarımı konusunda ücretli yardımcı olabilirim. Saygılarımla.

  
CHAPKIN
H-Full Member
*
Çevrimdışı Çevrimdışı

Mesaj Sayısı: 8


Ynt: Teşekkürler Modu Manuel Kurulumu
« Yanıtla #5 : Eylül 19, 2006, 07:31:20 ÖÖ »

bende hepsini yaptım aynı uyarıyı bana da verdi nasıl düzelteceğim... lütfen yardım modifikasyon dosyasını nerden indirebilirim..
Kayıtlı

<a href="http://www.forumefsanesi.com"><img src="http://img182.imageshack.us/img182/1601/logoefsaneru5.gif" border="0" alt="Forum Dizayn Soncumle-alisait-...::exTRa021::... " /></a>
husmen73
Sr. Member
***
Çevrimdışı Çevrimdışı

Mesaj Sayısı: 3166


Gülhin İnternet'e sitenizin tasarımını yaptırın.


Site
Ynt: Teşekkürler Modu Manuel Kurulumu
« Yanıtla #6 : Eylül 22, 2006, 12:27:47 ÖÖ »

Alıntı sahibi: CHAPKIN üzerinde Eylül 19, 2006, 07:31:20 ÖÖ
bende hepsini yaptım aynı uyarıyı bana da verdi nasıl düzelteceğim... lütfen yardım modifikasyon dosyasını nerden indirebilirim..
Burdan indirebilirsiniz.
Kayıtlı


Anka Teması ve Oboj Teması satışa sunulmuştur.

www.gulhin.com
  

Bana ulaşmak isterseniz husmen100[at]hotmail.com mail adresimi kullanabilirsiniz. MSN Messenger üzerinden SMF konusunda yardım etmiyorum fakat Tema Tasarımı konusunda ücretli yardımcı olabilirim. Saygılarımla.

  
CHAPKIN
H-Full Member
*
Çevrimdışı Çevrimdışı

Mesaj Sayısı: 8


Ynt: Teşekkürler Modu Manuel Kurulumu
« Yanıtla #7 : Eylül 23, 2006, 01:42:42 ÖÖ »

tşk ettim..
Kayıtlı

<a href="http://www.forumefsanesi.com"><img src="http://img182.imageshack.us/img182/1601/logoefsaneru5.gif" border="0" alt="Forum Dizayn Soncumle-alisait-...::exTRa021::... " /></a>
<<<€nd€r߀tüL>>>
H-Full Member
*
Çevrimdışı Çevrimdışı

Mesaj Sayısı: 87



Ynt: Teşekkürler Modu Manuel Kurulumu
« Yanıtla #8 : Ekim 20, 2006, 03:05:18 ÖÖ »

ben yaptım çalıştttıııııııı oolllleeeyyyyyyyy 1 aydır arıyordum bunu sonunda yaptımmm Cheesy Cheesy Cheesy Cheesy Cheesy Cheesy Cheesy Cheesy Cheesy Cheesy Cheesy Cheesy Cheesy Cheesy Cheesy Cheesy Cheesy Cheesy Cheesy Cheesy Cheesy Cheesy Cheesy Cheesy Cheesy Cheesy Cheesy Cheesy Cheesy Cheesy Cheesy Cheesy Cheesy Cheesy Cheesy Cheesy Cheesy Cheesy Cheesy Cheesy Cheesy Cheesy Cheesy Cheesy Cheesy Cheesy Cheesy Cheesy Cheesy Cheesy Cheesy Cheesy Cheesy Cheesy Cheesy Cheesy Cheesy Cheesy Cheesy Cheesy
Kayıtlı
inan
Jr. Member
**
Çevrimdışı Çevrimdışı

Mesaj Sayısı: 1563



Ynt: Teşekkürler Modu Manuel Kurulumu
« Yanıtla #9 : Kasım 12, 2006, 03:58:34 ÖÖ »

abi eline sağlık fakat bendenedim forumda bu sorun çıktı main teması yüklenmiyor diyor. forum seceneklerine girince
Kayıtlı

smfdestek sitesi:
www.rapsmf.com
BİZİMLE ÇALIŞMAK İSTERMİSİNİZ...
iletişim  : inan_diyadin@hotmail.com
Tema yapmak isteyen ama yapamıyan  Smiley Bana ulaşsın...
MSN 'den SMF Destek Vermiyorum.Ekleyip SEnkimsin Diyede Sormayın!!!
test
Mod & Theme Testing
*
Çevrimdışı Çevrimdışı

Mesaj Sayısı: 113



Ynt: Teşekkürler Modu Manuel Kurulumu
« Yanıtla #10 : Kasım 13, 2006, 08:48:45 ÖÖ »

Alıntı sahibi: inan üzerinde Kasım 12, 2006, 03:58:34 ÖÖ
abi eline sağlık fakat bendenedim forumda bu sorun çıktı main teması yüklenmiyor diyor. forum seceneklerine girince
Kodlarda hata yapmışsındır. Değişiklik yaptığın tüm dosyaları yeniden upload et sonra istersen tekrar manuel kurmayı dene.
Kayıtlı

Herşey www.smfturk.net ve SMF alemi için.
inan
Jr. Member
**
Çevrimdışı Çevrimdışı

Mesaj Sayısı: 1563



Ynt: Teşekkürler Modu Manuel Kurulumu
« Yanıtla #11 : Kasım 14, 2006, 07:02:42 ÖÖ »

yavalah bidaha böyle bir riski göz önüne alamam yedek almıştım diğer seferde fakat bişiler oluyor yedkleri yüklesemde sorun hal olmadı en sonunda hal eddtim tabi ne çektim bide bana sorun:D
Kayıtlı

smfdestek sitesi:
www.rapsmf.com
BİZİMLE ÇALIŞMAK İSTERMİSİNİZ...
iletişim  : inan_diyadin@hotmail.com
Tema yapmak isteyen ama yapamıyan  Smiley Bana ulaşsın...
MSN 'den SMF Destek Vermiyorum.Ekleyip SEnkimsin Diyede Sormayın!!!
kacar82
Newbie
*
Çevrimdışı Çevrimdışı

Mesaj Sayısı: 1


Ynt: Teşekkürler Modu Manuel Kurulumu
« Yanıtla #12 : Kasım 19, 2006, 05:25:24 ÖÖ »

bunu krmak için sabır kerekir. Kur kur bitmez yaaaa. Bide yanlışlık yaparsan sen o zaman uğraş değiştirmeye bide...
Kayıtlı
youness
H-Full Member
*
Çevrimdışı Çevrimdışı

Mesaj Sayısı: 4


Ynt: Teşekkürler Modu Manuel Kurulumu
« Yanıtla #13 : Aralık 27, 2006, 03:42:12 ÖS »

usta hepsini yaptım Ve Son Olarakta Burdan Dosyayı İndir Klasore Çıkar dediğin yere tıklıyorum şu uyarı geliyor.bir hata meydana geldi.buraya giriş yetkiniz yok diyor...Birde ben çöl ateşi teması kullanıyorum lengauge de olmayan dosyaları defaulttan aldım.çöl ateşine eklesem çalışırmı?dediklerini birebir uyguladım
Kayıtlı
husmen73
Sr. Member
***
Çevrimdışı Çevrimdışı

Mesaj Sayısı: 3166


Gülhin İnternet'e sitenizin tasarımını yaptırın.


Site
Ynt: Teşekkürler Modu Manuel Kurulumu
« Yanıtla #14 : Aralık 27, 2006, 03:43:33 ÖS »

Eğer kodlarda problem yoksa çalışır velakin bu manuel anlatım bildiğim kadarıyla SMF 1.1 RC3 için. SMF 1.1.1 'de  çalışıyormu bilmiyorum
Kayıtlı


Anka Teması ve Oboj Teması satışa sunulmuştur.

www.gulhin.com
  

Bana ulaşmak isterseniz husmen100[at]hotmail.com mail adresimi kullanabilirsiniz. MSN Messenger üzerinden SMF konusunda yardım etmiyorum fakat Tema Tasarımı konusunda ücretli yardımcı olabilirim. Saygılarımla.

  
Sayfa: [1] 2 3 4 5   Yukarı git
Bu Konuyu GönderYazdır
Simple Machines Forum Türkçe Yardım Sitesi > Simple Machines Forum Modifikasyonları > Modifikasyonlar, Kurulumları ve Hataları > Manuel Kurulum > Konu: Teşekkürler Modu Manuel Kurulumu
« önceki sonraki »
 
Gitmek istediğiniz yer:  


Powered by SMF 1.1.16 | SMF © 2006-2011, Simple Machines | NewDef design by Bloc
Gulhin Internet Hizmetleri
Bu Sayfa 0.186 Saniyede 19 Sorgu ile Oluşturuldu
Yükleniyor...