Etiketler: dizi izle , film izle , indir , video izle , youtube izle , dizi indir , bölüm özeti , oku, film indir , dizi, seyret , yutube |
| « Önceki başlık :: Sonraki başlık » |
| Yazar |
Mesaj |
SistemCesur Türk

Durum: Çevrimdışı Kayıt: 19.01.2006
Mesajlar: 12295
Level: 69
| Deneyim: |
12836 / 12836 |
|
|
|
100% |
|
Tarih: Fri Sep 29, 2006 3:00 pm Mesaj konusu: Forum Başlığında Son Mesajı Görmek |
|
|
| Kod: |
##############################################################
## MOD Başlık: Forum Başlığında Son Mesajı Görmek
## MOD Yazar: MandersOnline <mods@mandersonline.nl>
## http://www.mandersonline.nl/mods
## MODVersion: 1.0.0
## Açıklama:Forum Anasayfasında Forumlardaki Son Mesaji Yazan
##Üyenin Üzerinde Yazdıgı Konu Baslıgınıda Gösterir.
##
## Yükleme Zorluğu: kolay
## Yükleme Süresi: 2-5 dk.
## Düzenlenecek Dosyalar: index.php
## Yüklenecek Dosyalar: 0
##############################################################
## Mod Geçmişi:
## 1.0 Release for phpBB 2.0.10
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/downloads/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/downloads/
##############################################################
#
#-----[ AÇIN ]------------------------------------------------
#
index.php
#
#-----[ BULUN ]-----------------------------------------
#
$sql = "SELECT f.*, p.post_time, p.post_username, u.username, u.user_id
FROM (( " . FORUMS_TABLE . " f
LEFT JOIN " . POSTS_TABLE . " p ON p.post_id = f.forum_last_post_id )
LEFT JOIN " . USERS_TABLE . " u ON u.user_id = p.poster_id )
ORDER BY f.cat_id, f.forum_order";
break;
}
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not query forums information', '', __LINE__, __FILE__, $sql);
}
$forum_data = array();
while( $row = $db->sql_fetchrow($result) )
{
$forum_data[] = $row;
}
$db->sql_freeresult($result);
if ( !($total_forums = count($forum_data)) )
{
message_die(GENERAL_MESSAGE, $lang['No_forums']);
}
//
// Obtain a list of topic ids which contain
#
#-----[ ASAGIDAKİ İLE DEGİSTİRİN ]----------------------------------------
#
$sql = "SELECT f.*, p.post_time, p.post_username, u.username, u.user_id, t.topic_title, t.topic_last_post_id " .
" FROM ((( " . FORUMS_TABLE . " f " .
" LEFT JOIN " . POSTS_TABLE . " p ON p.post_id = f.forum_last_post_id )" .
" LEFT JOIN " . USERS_TABLE . " u ON u.user_id = p.poster_id ) " .
" LEFT JOIN " . TOPICS_TABLE . " t ON t.topic_last_post_id = p.post_id ) " .
" ORDER BY f.cat_id, f.forum_order";
break;
}
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not query forums information', '', __LINE__, __FILE__, $sql);
}
$forum_data = array();
$topic_last_ary = array();
$i=0;
while( $row = $db->sql_fetchrow($result) )
{
if (!in_array($row['topic_last_post_id'], $topic_last_ary) || $row['topic_last_post_id']==0) {
$topic_last_ary[i]=$row['topic_last_post_id'];
$i++;
$forum_data[] = $row;
}
}
unset($topic_last_ary);
if ( !($total_forums = count($forum_data)) )
{
message_die(GENERAL_MESSAGE, $lang['No_forums']);
}
//
// Filter topic_title not allowed to read
//
if ( !($userdata['user_level'] == ADMIN && $userdata['session_logged_in']) ) {
$auth_read_all = array();
$auth_read_all=auth(AUTH_READ, AUTH_LIST_ALL, $userdata, $forum_data);
$auth_data = '';
for($i=0; $i<count($forum_data); $i++)
{
if (!$auth_read_all[$forum_data[$i]['forum_id']]['auth_read']) {
$forum_data[$i]['topic_title']='';
}
}
}
//
// Define censored word matches
//
$orig_word = array();
$replacement_word = array();
obtain_word_list($orig_word, $replacement_word);
//
// Obtain a list of topic ids which contain
#
#-----[ BULUN ]-----------------------------------------
#
if ( $forum_data[$j]['forum_last_post_id'] )
{
$last_post_time = create_date($board_config['default_dateformat'], $forum_data[$j]['post_time'], $board_config['board_timezone']);
$last_post = $last_post_time . '<br />';
$last_post .= ( $forum_data[$j]['user_id'] == ANONYMOUS ) ? ( ($forum_data[$j]['post_username'] != '' ) ? $forum_data[$j]['post_username'] . ' ' : $lang['Guest'] . ' ' ) : '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $forum_data[$j]['user_id']) . '">' . $forum_data[$j]['username'] . '</a> ';
$last_post .= '<a href="' . append_sid("viewtopic.$phpEx?" . POST_POST_URL . '=' . $forum_data[$j]['forum_last_post_id']) . '#' . $forum_data[$j]['forum_last_post_id'] . '"><img src="' . $images['icon_latest_reply'] . '" border="0" alt="' . $lang['View_latest_post'] . '" title="' . $lang['View_latest_post'] . '" /></a>';
}
#
#-----[ ASAGIDAKİ İLE DEGİSTİRİN ]---------------------------------
#
if ( $forum_data[$j]['forum_last_post_id'] )
{
$topic_title = $forum_data[$j]['topic_title'];
$topic_title2 = $forum_data[$j]['topic_title'];
//
// Censor topic title
//
if ( count($orig_word) )
{
$topic_title = preg_replace($orig_word, $replacement_word, $topic_title);
$topic_title2 = preg_replace($orig_word, $replacement_word, $topic_title2);
}
if (strlen($topic_title)>27) {
$topic_title = substr($topic_title,0,24) . '...';
}
$last_post_time = create_date($board_config['default_dateformat'], $forum_data[$j]['post_time'], $board_config['board_timezone']);
$last_post = '<a href="' . append_sid("viewtopic.$phpEx?" . POST_POST_URL . '=' . $forum_data[$j]['forum_last_post_id']) . '#' . $forum_data[$j]['forum_last_post_id'] . '" title="' . $topic_title2 . '">' . $topic_title . '</a><br>';
$last_post .= $last_post_time . ' <a href="' . append_sid("viewtopic.$phpEx?" . POST_POST_URL . '=' . $forum_data[$j]['forum_last_post_id']) . '#' . $forum_data[$j]['forum_last_post_id'] . '"><img src="' . $images['icon_latest_reply'] . '" border="0" alt="' . $lang['View_latest_post'] . '" title="' . $lang['View_latest_post'] . '"></a><br>' . $lang['by'] . ' ';
$last_post .= ( $forum_data[$j]['user_id'] == ANONYMOUS ) ? ( ($forum_data[$j]['post_username'] != '' ) ? $forum_data[$j]['post_username'] . ' ' : $lang['Guest'] . ' ' ) : '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $forum_data[$j]['user_id']) . '">' . $forum_data[$j]['username'] . '</a> ';
}
#-----[ İSLEM TAMAM KAYDET VE KAPAT ]-------------------------------------
# ###### Düzenleme :Bu forumdaki linkleri sadece kayıtlı kullanıcılar görebilir! Kayıt olmak içinburaya tıklayınız... | #######
# EoM |
En son Sistem tarafından Sun Jun 17, 2007 9:33 pm tarihinde değiştirildi, toplamda 1 kere değiştirildi. |
|
| Başa dön |
|
 |
|
DeLiKuRt29Vatandaş

Durum: Çevrimdışı Kayıt: 29.09.2006
Mesajlar: 4
Level: 1
|
Tarih: Sun Oct 01, 2006 6:32 pm Mesaj konusu: |
|
|
| tşk eyv |
|
| Başa dön |
|
 |
dj_hilmiAktif Üye

 Durum: Çevrimdışı Kayıt: 21.08.2006
Mesajlar: 1011 Şehir: dergahü âhrem kapısının yanındaki ev
Level: 28
| Deneyim: |
1055 / 1055 |
|
|
|
100% |
|
Tarih: Sun Oct 01, 2006 6:46 pm Mesaj konusu: |
|
|
| teşekküler |
|
| Başa dön |
|
 |
qodzillaVatandaş

Durum: Çevrimdışı Kayıt: 21.01.2006
Mesajlar: 44
Level: 5
|
Tarih: Thu Oct 05, 2006 9:41 am Mesaj konusu: |
|
|
Saol Dostum  |
|
| Başa dön |
|
 |
asdf29Cesur Üye

 Durum: Çevrimdışı Kayıt: 08.02.2006
Mesajlar: 125 Şehir: Hizmetten
Level: 10
|
Tarih: Sun Feb 11, 2007 9:21 am Mesaj konusu: |
|
|
tşk leeerrrrrr _________________ asdf29 iz birakir.. |
|
| Başa dön |
|
 |
SistemCesur Türk

Durum: Çevrimdışı Kayıt: 19.01.2006
Mesajlar: 12295
Level: 69
| Deneyim: |
12836 / 12836 |
|
|
|
100% |
|
Tarih: Sun Jun 17, 2007 9:33 pm Mesaj konusu: |
|
|
| konu yenilendi |
|
| Başa dön |
|
 |
GARDİYANVatandaş

Durum: Çevrimdışı Kayıt: 25.05.2007
Mesajlar: 10
Level: 2
|
Tarih: Thu Jul 05, 2007 4:49 pm Mesaj konusu: |
|
|
tşk güzel ama nasıl uygulucaz ?
 _________________ table width="40%" cellspacing="1" cellpadding="3" border="0">Bu forumdaki linkleri sadece kayıtlı kullanıcılar görebilir! Kayıt olmak içinburaya tıklayınız... | | |
|