Tekil Mesaj gösterimi
Alt 13.05.2013, 00:03   #1 (permalink)
Urahara
Ne Mutlu Türküm Diyene
Kullanıcıların profil bilgileri misafirlere kapatılmıştır.
Standart Bonus Hit Modülü

PHP MyAdmin üzerinden veritabanına aşağıdaki tabloları ekleyin.
----------------
ats_stats tablosunun içine aşağıdaki tırnak içindeki 6 alanı ekleyin; özelliklerinide yandaki özelliklere göre düzenleyin.

`unq_pv_bonus` INT UNSIGNED DEFAULT '0' NOT NULL ,
`tot_pv_bonus` INT UNSIGNED DEFAULT '0' NOT NULL ,
`unq_in_bonus` INT UNSIGNED DEFAULT '0' NOT NULL ,
`tot_in_bonus` INT UNSIGNED DEFAULT '0' NOT NULL ,
`unq_out_bonus` INT UNSIGNED DEFAULT '0' NOT NULL ,
`tot_out_bonus` INT UNSIGNED DEFAULT '0' NOT NULL ;

----------------------------------------------
sources/admin/edit.php dosyasında yapılacak değişiklikler.
----------------------------------------------

Aşağıdaki kodu bulun:

{$TMPL['active_menu']}



Bu kodun yerine aşağıdaki kodu ekleyin:

{$TMPL['active_menu']}
</label>
</fieldset>
<fieldset>
<legend>Bonus Hits - Added each day</legend>
<label>Tekil sayfa gösterimi

<input type="text" name="unq_pv_bonus" size="5" value="{$TMPL['unq_pv_bonus']}" />


</label>
<label>Toplam sayfa gösterimi

<input type="text" name="tot_pv_bonus" size="5" value="{$TMPL['tot_pv_bonus']}" />


</label>
<label>Tekil girişler

<input type="text" name="unq_in_bonus" size="5" value="{$TMPL['unq_in_bonus']}" />


</label>
<label>Toplam girişler

<input type="text" name="tot_in_bonus" size="5" value="{$TMPL['tot_in_bonus']}" />


</label>
<label>Tekil çıkışlar

<input type="text" name="unq_out_bonus" size="5" value="{$TMPL['unq_out_bonus']}" />


</label>
<label>Toplam Çıkışlar

<input type="text" name="tot_out_bonus" size="5" value="{$TMPL['tot_out_bonus']}" />




Aşağıdaki kodu bulun:

$TMPL['active_menu'] .= '</select>';

Bu kodun altına aşağıdaki kodları ekleyin;

$bonus = $DB->fetch("SELECT unq_pv_bonus, tot_pv_bonus, unq_in_bonus, tot_in_bonus, unq_out_bonus, tot_out_bonus FROM {$CONF['sql_prefix']}_stats", __FILE__, __LINE__);
$TMPL = array_merge($TMPL, $bonus);

Aşağıdaki kodu bulun;

$TMPL['active'] = intval($FORM['active']);

Aşağıdaki kodları yukarıdaki kodun altına ekleyin:

$TMPL['unq_pv_bonus'] = intval($FORM['unq_pv_bonus']);
$TMPL['tot_pv_bonus'] = intval($FORM['tot_pv_bonus']);
$TMPL['unq_in_bonus'] = intval($FORM['unq_in_bonus']);
$TMPL['tot_in_bonus'] = intval($FORM['tot_in_bonus']);
$TMPL['unq_out_bonus'] = intval($FORM['unq_out_bonus']);
$TMPL['tot_out_bonus'] = intval($FORM['tot_out_bonus']);

Aşağıdaki kodu bulun:
$TMPL['admin_content'] = $LNG['a_edit_edited'];

Yukarıdaki kodun bir üstüne aşağıdaki kodları ekleyin:
$DB->query("UPDATE {$CONF['sql_prefix']}_stats SET unq_pv_bonus = {$TMPL['unq_pv_bonus']}, tot_pv_bonus = {$TMPL['tot_pv_bonus']}, unq_in_bonus = {$TMPL['unq_in_bonus']}, tot_in_bonus = {$TMPL['tot_in_bonus']}, unq_out_bonus = {$TMPL['unq_out_bonus']}, tot_out_bonus = {$TMPL['tot_out_bonus']} WHERE username = '{$TMPL['username']}'", __FILE__, __LINE__);

------------------------
sources/misc/new_day.php dosyasını açın
------------------------
Aşağıdaki kodları bulun:

$DB->query("UPDATE {$CONF['sql_prefix']}_stats SET unq_pv_9_daily = unq_pv_8_daily, unq_pv_8_daily = unq_pv_7_daily, unq_pv_7_daily = unq_pv_6_daily, unq_pv_6_daily = unq_pv_5_daily, unq_pv_5_daily = unq_pv_4_daily, unq_pv_4_daily = unq_pv_3_daily, unq_pv_3_daily = unq_pv_2_daily, unq_pv_2_daily = unq_pv_1_daily, unq_pv_1_daily = unq_pv_0_daily, unq_pv_0_daily = 0,
tot_pv_9_daily = tot_pv_8_daily, tot_pv_8_daily = tot_pv_7_daily, tot_pv_7_daily = tot_pv_6_daily, tot_pv_6_daily = tot_pv_5_daily, tot_pv_5_daily = tot_pv_4_daily, tot_pv_4_daily = tot_pv_3_daily, tot_pv_3_daily = tot_pv_2_daily, tot_pv_2_daily = tot_pv_1_daily, tot_pv_1_daily = tot_pv_0_daily, tot_pv_0_daily = 0,
unq_in_9_daily = unq_in_8_daily, unq_in_8_daily = unq_in_7_daily, unq_in_7_daily = unq_in_6_daily, unq_in_6_daily = unq_in_5_daily, unq_in_5_daily = unq_in_4_daily, unq_in_4_daily = unq_in_3_daily, unq_in_3_daily = unq_in_2_daily, unq_in_2_daily = unq_in_1_daily, unq_in_1_daily = unq_in_0_daily, unq_in_0_daily = 0,
tot_in_9_daily = tot_in_8_daily, tot_in_8_daily = tot_in_7_daily, tot_in_7_daily = tot_in_6_daily, tot_in_6_daily = tot_in_5_daily, tot_in_5_daily = tot_in_4_daily, tot_in_4_daily = tot_in_3_daily, tot_in_3_daily = tot_in_2_daily, tot_in_2_daily = tot_in_1_daily, tot_in_1_daily = tot_in_0_daily, tot_in_0_daily = 0,
unq_out_9_daily = unq_out_8_daily, unq_out_8_daily = unq_out_7_daily, unq_out_7_daily = unq_out_6_daily, unq_out_6_daily = unq_out_5_daily, unq_out_5_daily = unq_out_4_daily, unq_out_4_daily = unq_out_3_daily, unq_out_3_daily = unq_out_2_daily, unq_out_2_daily = unq_out_1_daily, unq_out_1_daily = unq_out_0_daily, unq_out_0_daily = 0,
tot_out_9_daily = tot_out_8_daily, tot_out_8_daily = tot_out_7_daily, tot_out_7_daily = tot_out_6_daily, tot_out_6_daily = tot_out_5_daily, tot_out_5_daily = tot_out_4_daily, tot_out_4_daily = tot_out_3_daily, tot_out_3_daily = tot_out_2_daily, tot_out_2_daily = tot_out_1_daily, tot_out_1_daily = tot_out_0_daily, tot_out_0_daily = 0,
old_rank = rank_cache", __FILE__, __LINE__);

Yukarıdaki kodların yerine aşağıdaki kodları yapıştırın:

$DB->query("UPDATE {$CONF['sql_prefix']}_stats SET unq_pv_9_daily = unq_pv_8_daily, unq_pv_8_daily = unq_pv_7_daily, unq_pv_7_daily = unq_pv_6_daily, unq_pv_6_daily = unq_pv_5_daily, unq_pv_5_daily = unq_pv_4_daily, unq_pv_4_daily = unq_pv_3_daily, unq_pv_3_daily = unq_pv_2_daily, unq_pv_2_daily = unq_pv_1_daily, unq_pv_1_daily = unq_pv_0_daily, unq_pv_0_daily = unq_pv_bonus,
tot_pv_9_daily = tot_pv_8_daily, tot_pv_8_daily = tot_pv_7_daily, tot_pv_7_daily = tot_pv_6_daily, tot_pv_6_daily = tot_pv_5_daily, tot_pv_5_daily = tot_pv_4_daily, tot_pv_4_daily = tot_pv_3_daily, tot_pv_3_daily = tot_pv_2_daily, tot_pv_2_daily = tot_pv_1_daily, tot_pv_1_daily = tot_pv_0_daily, tot_pv_0_daily = tot_pv_bonus,
unq_in_9_daily = unq_in_8_daily, unq_in_8_daily = unq_in_7_daily, unq_in_7_daily = unq_in_6_daily, unq_in_6_daily = unq_in_5_daily, unq_in_5_daily = unq_in_4_daily, unq_in_4_daily = unq_in_3_daily, unq_in_3_daily = unq_in_2_daily, unq_in_2_daily = unq_in_1_daily, unq_in_1_daily = unq_in_0_daily, unq_in_0_daily = unq_in_bonus,
tot_in_9_daily = tot_in_8_daily, tot_in_8_daily = tot_in_7_daily, tot_in_7_daily = tot_in_6_daily, tot_in_6_daily = tot_in_5_daily, tot_in_5_daily = tot_in_4_daily, tot_in_4_daily = tot_in_3_daily, tot_in_3_daily = tot_in_2_daily, tot_in_2_daily = tot_in_1_daily, tot_in_1_daily = tot_in_0_daily, tot_in_0_daily = tot_in_bonus,
unq_out_9_daily = unq_out_8_daily, unq_out_8_daily = unq_out_7_daily, unq_out_7_daily = unq_out_6_daily, unq_out_6_daily = unq_out_5_daily, unq_out_5_daily = unq_out_4_daily, unq_out_4_daily = unq_out_3_daily, unq_out_3_daily = unq_out_2_daily, unq_out_2_daily = unq_out_1_daily, unq_out_1_daily = unq_out_0_daily, unq_out_0_daily = unq_out_bonus,
tot_out_9_daily = tot_out_8_daily, tot_out_8_daily = tot_out_7_daily, tot_out_7_daily = tot_out_6_daily, tot_out_6_daily = tot_out_5_daily, tot_out_5_daily = tot_out_4_daily, tot_out_4_daily = tot_out_3_daily, tot_out_3_daily = tot_out_2_daily, tot_out_2_daily = tot_out_1_daily, tot_out_1_daily = tot_out_0_daily, tot_out_0_daily = tot_out_bonus,
unq_pv_0_weekly = unq_pv_0_weekly + unq_pv_bonus, tot_pv_0_weekly = tot_pv_0_weekly + tot_pv_bonus, unq_in_0_weekly = unq_in_0_weekly + unq_in_bonus, tot_in_0_weekly = tot_in_0_weekly + tot_in_bonus, unq_out_0_weekly = unq_out_0_weekly + unq_out_bonus, tot_out_0_weekly = tot_out_0_weekly + tot_out_bonus,
unq_pv_0_monthly = unq_pv_0_monthly + unq_pv_bonus, tot_pv_0_monthly = tot_pv_0_monthly + tot_pv_bonus, unq_in_0_monthly = unq_in_0_monthly + unq_in_bonus, tot_in_0_monthly = tot_in_0_monthly + tot_in_bonus, unq_out_0_monthly = unq_out_0_monthly + unq_out_bonus, tot_out_0_monthly = tot_out_0_monthly + tot_out_bonus,
old_rank = rank_cache", __FILE__, __LINE__);

-------------------------
Dosyaları kaydedip upload edin.
-------------------------

Urahara isimli Üye şimdilik offline konumundadır Alıntı ile Cevapla