Düzenlenecek dosyalar:
./sources/Boards.php
./lang/en/lang_boards.php
Not:
Düzenleme yapmadan önce bu dosyaların yedeğini alın.
Yükleme:
./sources/Boards.php dosyasını açın ve şunu bulun:
if ($ibforums->vars['show_totals'])
{
Altına bunu ekleyin:
// Start Post/Topics Since Last Visit Hack
// get the number of topics since last visit
$DB->query("SELECT COUNT(*) AS total, SUM(IF(last_post > '".$ibforums->member['last_visit']."',1,0)) AS latest_topics FROM forumtopics");
$topicssinceVisit = $DB->fetch_row();
// get the number of posts since last visit
$DB->query("SELECT COUNT(*) AS total, SUM(IF(post_date > '".$ibforums->member['last_visit']."',1,0)) AS latest_posts FROM forumposts WHERE queued = 0");
$postssinceVisit = $DB->fetch_row();
// End Posts/Topics Since Last Visit Hack
// Stat Posts/Topics in a day Hack
$currentime = mktime(0,0,0,date("m"),date("d"),date("Y"));
// get the number of topics since 24 hours ago
$DB->query("SELECT COUNT(*) AS total FROM forumtopics WHERE start_date >= '".$currentime."'");
$topics24 = $DB->fetch_row();
// get the number of posts since 24 hours ago
$DB->query("SELECT COUNT(*) AS total FROM forumposts WHERE post_date >= '".$currentime."'");
$posts24 = $DB->fetch_row();
// End Posts/Topics in a day hack
Şunu bulun:
$ibforums->lang['total_word_string'] = str_replace( "<#posts#>" , "$total_posts" , $ibforums->lang['total_word_string'] );
$ibforums->lang['total_word_string'] = str_replace( "<#reg#>" , $stats['MEM_COUNT'] , $ibforums->lang['total_word_string'] );
$ibforums->lang['total_word_string'] = str_replace( "<#mem#>" , $stats['LAST_MEM_NAME'] , $ibforums->lang['total_word_string'] );
$ibforums->lang['total_word_string'] = str_replace( "<#link#>" , $link , $ibforums->lang['total_word_string'] );
Altına bunu ekleyin:
// Start Post/Topics Since Last Visit Hack
$ibforums->lang['total_word_string'] = str_replace( "<#postsince#>" , $postssinceVisit['latest_posts'] , $ibforums->lang['total_word_string'] );
$ibforums->lang['total_word_string'] = str_replace( "<#topicsince#>" , $topicssinceVisit['latest_topics'] , $ibforums->lang['total_word_string'] );
$ibforums->lang['total_word_string'] = str_replace( "<#topics#>" , $topicssinceVisit['total'] , $ibforums->lang['total_word_string'] );
// End Post/Topics Since Last Visit Hack
// Stat Posts/Topics Since 25 hours hack
$ibforums->lang['total_word_string'] = str_replace( "<#postsince24#>" , $posts24['total'] , $ibforums->lang['total_word_string'] );
$ibforums->lang['total_word_string'] = str_replace( "<#topicsince24#>" , $topics24['total'] , $ibforums->lang['total_word_string'] );
// End Post/Topics Since Last 25 hours hack
./sources/Boards.php dosyasını kaydedip kapatın ve upload edin.
./lang/en/lang_boards.php dosyasını açın ve şunu bulun:
'total_word_string' => "Our members have made a total of <b><#posts#></b> posts<br />We have <b><#reg#></b> registered members<br />The newest member is <b><a href='<#link#>'><#mem#></a></b>",
Bununla değiştirin:
'total_word_string' => "Our members have made a total of <b><#posts#></b> posts and <b><#topics#></b> topics<br /> <b><#postsince#></b> posts have been made since your last visit. <br /> <b><#topicsince#></b> topics have been made since your last visit. <br /><b><#postsince24#></b> posts have been made today, and <b><#topicsince24#></b> topics have been made today. <br /> We have <b><#reg#></b> registered members<br />The newest member is <b><a href='<#link#>'><#mem#></a></b>",
./lang/en/lang_boards.php dosyasını kaydedip kapatın ve upload edin.
Daha sonra Admin panelden bu ifadeleri Türkçeleştirebilirsiniz.
Bu kadar..
Bu eklentinin aslı:
http://forums.invisi...showtopic=49507