Sürüm: 0.1.0
Yazar: Balint (Balint Krizsan) ( balint@krizsan.de )
Açıklama: Son gönderilen mesajlari listelemenize yarar...
Uyumlu olduğu phpBB3 sürümleri:
- phpBB 3.0 tüm RC sürümleri
- phpBB 3.0.0 Gold
Özellikleri:
- Acilir kapanir kutuda ayrintili son basliklari görebilirsiniz. (Son X saat , Son X gün) vss...
Dil dosyaları/eklemeleri:
- Türkçe (bu baslikta)
- İngilizce
Lisans: GNU General Public License v2
Kurulum zorluÄŸu: Kolay
Kurulum süresi: 5 Dakika
Dosya formatı: .txt
Dosya indirme: Gerek yok 3 dosya degisikligi icin... Kodlar asagida...
- Kod: Tümünü seç
##############################################################
## MOD Adi: Search Back
## MOD Yazari: Balint < balint@krizsan.de > (Balint Krizsan) http://www.krizsan.de
## MOD Aciklamasi: Search topics which were created or answered in the last
## 15, 30 or 45 minutes; 1, 2, 6 or 12 hours; 1 or 7 days; 1 month
## (easily expandable to other values) from the index page.
## MOD Version: 0.1.0
##
## Kurulum Zorlugu: Easy
## Kurulum Zamani: 5 Minutes
## Degisecek dosyalar: search.php,
## language/en/common.php,
## styles/prosilver/template/index_body.html
##
## Yüklenecek dosyalar : YOK
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
##############################################################
## For security purposes, please check: http://www.phpbb.com/mods/
## for the latest version of this MOD. Although MODs are checked
## before being allowed in the MODs Database there is no guarantee
## that there are no security problems within the MOD. No support
## will be given for MODs not found within the MODs Database which
## can be found at http://www.phpbb.com/mods/
##############################################################
## Author Notes: The MOD is based on the idea of Search Back 1.2.2
## (http://www.phpbbhacks.com/download/348) from Niels Chr. Denmark.
##
##############################################################
## MOD History:
##
## 2007-10-06 - Version 0.1.0
## - Initial Release
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ AC ]------------------------------------------
#
search.php
#
#-----[ BUL ]------------------------------------------
#
case 'egosearch':
#
#-----[ ÖNÜNE EKLE ]------------------------------------------
#
// Search Back
case 'searchback':
$l_search_title = $user->lang['SEARCH_NEW'];
// force sorting
$show_results = (request_var('sr', 'topics') == 'posts') ? 'posts' : 'topics';
$show_results2 = request_var('search_time', 30);
$sort_key = 't';
$sort_dir = 'd';
$sort_by_sql['t'] = 't.topic_last_post_time';
$sql_sort = 'ORDER BY ' . $sort_by_sql[$sort_key] . (($sort_dir == 'a') ? ' ASC' : ' DESC');
gen_sort_selects($limit_days, $sort_by_text, $sort_days, $sort_key, $sort_dir, $s_limit_days, $s_sort_key, $s_sort_dir, $u_sort_param);
$s_sort_key = $s_sort_dir = $u_sort_param = $s_limit_days = '';
$sql = 'SELECT t.topic_id
FROM ' . TOPICS_TABLE . ' t
WHERE t.topic_last_post_time > ' . (time() - ($show_results2*60)) . '
AND t.topic_moved_id = 0
' . str_replace(array('p.', 'post_'), array('t.', 'topic_'), $m_approve_fid_sql) . '
' . ((sizeof($ex_fid_ary)) ? 'AND ' . $db->sql_in_set('t.forum_id', $ex_fid_ary, true) : '') . "
$sql_sort";
$field = 'topic_id';
break;
// Search Back
#
#-----[ AC ]------------------------------------------
#
language/en/common.php
#
#-----[ BUL ]------------------------------------------
#
'SEARCH_UNANSWERED' => 'View unanswered posts',
#
#-----[ ÖNÜNE EKLE ]------------------------------------------
#
// Search Back
'SEARCH_BACK' => 'Search back',
'TIME_15_MIN' => '15 minutes',
'TIME_30_MIN' => '30 minutes',
'TIME_45_MIN' => '45 minutes',
'TIME_1_HOUR' => '1 hour',
'TIME_2_HOUR' => '2 hours',
'TIME_6_HOUR' => '6 hours',
'TIME_12_HOUR' => '12 hours',
'TIME_1_DAY' => '1 day',
'TIME_7_DAYS' => '7 days',
'TIME_1_MONTH' => '1 month',
// Search back
#
#-----[ AC ]------------------------------------------
#
styles/prosilver/template/index_body.html
#
#-----[ BUL ]------------------------------------------
#
<li><a href="{U_SEARCH_UNANSWERED}">{L_SEARCH_UNANSWERED}</a><!-- IF S_USER_LOGGED_IN --> • <a href="{U_SEARCH_NEW}">{L_SEARCH_NEW}</a><!-- ENDIF --> • <a href="{U_SEARCH_ACTIVE_TOPICS}">{L_SEARCH_ACTIVE_TOPICS}</a></li>
#
#-----[ SATIR ICINDE BUL ]------------------------------------------
#
<li>
#
#-----[ SATIR ICINDE ARKASINA EKLE ]------------------------------------------
#
<form id="searchback" name="searchback" action="./search.php" method="post" onsubmit="if(document.jumpbox.f.value == -1){return false;}">
<select name="search_time" size="1" class="gensmall" onchange="if(this.options[this.selectedIndex].value != -1){ document.forms['searchback'].submit() }">
<option value="-1" SELECTED>{L_SEARCH_BACK}</option>
<option value="15">{L_TIME_15_MIN}</option>
<option value="30">{L_TIME_30_MIN}</option>
<option value="45">{L_TIME_45_MIN}</option>
<option value="60">{L_TIME_1_HOUR}</option>
<option value="120">{L_TIME_2_HOUR}</option>
<option value="360">{L_TIME_6_HOUR}</option>
<option value="720">{L_TIME_12_HOUR}</option>
<option value="1440">{L_TIME_1_DAY}</option>
<option value="10080">{L_TIME_7_DAYS}</option>
<option value="43200">{L_TIME_1_MONTH}</option>
</select>
<input type="hidden" name="search_id" value="searchback">
•
#
#-----[ BUL ]------------------------------------------
#
<!-- ENDIF -->
<!-- IF not S_IS_BOT and U_MARK_FORUMS --><li class="rightside"><a href="{U_MARK_FORUMS}" accesskey="m">{L_MARK_FORUMS_READ}</a></li><!-- ENDIF -->
#
#-----[ ÖNÜNE EKLE ]------------------------------------------
#
</form>
#
#-----[ TÜM DOSYALARI KAYDET KAPAT ]------------------------------------------
#
# EoM
Mod hakkinda yorumum: Cok sevdim bunu cok kullanisli mod... Son acilan herseyi tak diye gösteriyor... Phpbb2'de recent topics modu altinda bunun gelismisi vardi... Ama bu daha hos olmus bence hem fazla kodlarla kasmiyor siteyi...
Türkce dil degisiklikleri asagida...
- Kod: Tümünü seç
'SEARCH_BACK' => 'Son gönderilenler',
'TIME_15_MIN' => 'Son 15 dakika',
'TIME_30_MIN' => 'Son 30 dakika',
'TIME_45_MIN' => 'Son 45 dakika',
'TIME_1_HOUR' => 'Son 1 saat',
'TIME_2_HOUR' => 'Son 2 saat',
'TIME_6_HOUR' => 'Son 6 saat',
'TIME_12_HOUR' => 'Son 12 saat',
'TIME_1_DAY' => 'Son 1 gün',
'TIME_7_DAYS' => 'Son 7 gün',
'TIME_1_MONTH' => 'Son 1 ay',
Iyi günlerde kullanmanizi dilerim...
Saygi ve Sevgiler...
CitLemBiK






