slm...
Simuzer kardeş senin sitene baktım da bu modu kurunca re: yazısı çıkmamış biz kurunca neden çıkıyor acaba..yol gösterirsen sevinirm...
SELAM VE DUA İLE
Web sayfamız sadece phpBB 3.0.x sürümlerine destek vermektedir. Konu açmadan, ileti yazmadan önce lütfen site kuralları sayfamıza göz atınız.
##############################################################
## MOD Title: last post title on index.php
## MOD Author: clusedo < clusedo@gmx.de > (N/A) www.clusedo.de.vu
## MOD Description: With this MOD you can display the title of the last post on the starting page (index.php)
## MOD Version: 0.2.0
##
## Installation Level: easy
## Installation Time: 2 minute
## Files To Edit: 2
## includes/functions_display.php
## styles/prosilver/templates/forumlist_body.html
## Included Files: n/a
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/db/ 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 MODs not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/db/
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]------------------------------------------
#
includes/functions_display.php
#
#-----[ FIND ]------------------------------------------
#
// Create last post link information, if appropriate
if ($row['forum_last_post_id'])
{
$last_post_subject = $row['forum_last_post_subject'];
#
#-----[ AFTER, ADD ]------------------------------------------
#
$last_post_title = '0'; // values: 0 and 1 //if 0 it'll take last TOPIC title
if ($last_post_title == '0')
{
$sql = 'SELECT t.topic_id, p.topic_id, t.topic_title, p.post_id, p.post_time
FROM ' . TOPICS_TABLE . ' t, ' . POSTS_TABLE . ' p
WHERE t.topic_id = p.topic_id
AND p.post_id = '.$row['forum_last_post_id'].'
ORDER BY p.post_time DESC';
$result = $db->sql_query($sql);
while ($row['2'] = $db->sql_fetchrow($result))
{
$last_topic_title = $row['2']['topic_title'];
$last_topic_url = append_sid("{$phpbb_root_path}viewtopic.$phpEx", 't=' . $row['2']['topic_id']);
}
$last_topic_title_substr = ( utf8_strlen($last_topic_title) > 30 )? (utf8_substr($last_topic_title,0,25) . '...') : ($last_topic_title);
}
else
{
$last_post_subject_substr = ( utf8_strlen($row['forum_last_post_subject']) > 30 )? (utf8_substr($row['forum_last_post_subject'],0,25) . '...') : ($row['forum_last_post_subject']);
}
#
#-----[ FIND ]------------------------------------------
#
'LAST_POST_SUBJECT' => censor_text($last_post_subject),
#
#-----[ AFTER, ADD ]------------------------------------------
#
'LAST_TOPIC_TITLE' => censor_text($last_topic_title),
'LAST_TOPIC_TITLE_SUBSTR' => censor_text($last_topic_title_substr),
'LAST_POST_SUBJECT_SUBSTR' => censor_text($last_post_subject_substr),
'U_LAST_TOPIC' => $last_topic_url,
#
#-----[ OPEN ]------------------------------------------
#
styles/prosilver/templates/forumlist_body.html
#
#-----[ FIND ]------------------------------------------
#
<!-- IF forumrow.LAST_POST_TIME --><dfn>{L_LAST_POST}</dfn>
#
#-----[ IN-LINE, FIND ]------------------------------------------
#
<!-- IF forumrow.LAST_POST_TIME --><dfn>{L_LAST_POST}</dfn>
#
#-----[ IN-LINE, AFTER ADD ]------------------------------------------
#
<a href="{forumrow.U_LAST_TOPIC}" title="{forumrow.LAST_TOPIC_TITLE}">{forumrow.LAST_TOPIC_TITLE_SUBSTR}</a><a href="{forumrow.U_LAST_POST}" title="{forumrow.LAST_POST_SUBJECT}">{forumrow.LAST_POST_SUBJECT_SUBSTR}</a><br />
#
#-----[ OPEN ]------------------------------------------
#
styles/subsilver2/templates/forumlist_body.html
#
#-----[ FIND ]------------------------------------------
#
<!-- IF forumrow.LAST_POST_TIME -->
#
#-----[ AFTER ADD ]------------------------------------------
#
<p class="topicdetails"><a href="{forumrow.U_LAST_TOPIC}" title="{forumrow.LAST_TOPIC_TITLE}">{forumrow.LAST_TOPIC_TITLE_SUBSTR}</a><a href="{forumrow.U_LAST_POST}" title="{forumrow.LAST_POST_SUBJECT}">{forumrow.LAST_POST_SUBJECT_SUBSTR}</a></p>
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
if (($mode == 'reply' || $mode == 'quote') && !$submit && !$preview && !$refresh)
{
$post_data['post_subject'] = ((strpos($post_data['post_subject'], 'Re: ') !== 0) ? 'Re: ' : '') . censor_text($post_data['post_subject']);
}
Simuzer yazdı:Ordaki RE'leri temizlersen tüm forumdaki RE'ler temzilenmiş olur... Özel mesajlarda, konu içlerindeki iletilerin başlıklarında vs..
$last_post_title = '0'; // values: 0 and 1 //if 0 it'll take last TOPIC title
nickvergessen 15 Tem 2007 09:43
Simuzer yazdı:Ben başka bir mod kullanıyorum...
- Kod: Tümünü seç
##############################################################
## MOD Title: last post title on index.php
## MOD Author: clusedo < clusedo@gmx.de > (N/A) www.clusedo.de.vu
## MOD Description: With this MOD you can display the title of the last post on the starting page (index.php)
## MOD Version: 0.2.0
##
## Installation Level: easy
## Installation Time: 2 minute
## Files To Edit: 2
## includes/functions_display.php
## styles/prosilver/templates/forumlist_body.html
## Included Files: n/a
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/db/ 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 MODs not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/db/
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]------------------------------------------
#
includes/functions_display.php
#
#-----[ FIND ]------------------------------------------
#
// Create last post link information, if appropriate
if ($row['forum_last_post_id'])
{
$last_post_subject = $row['forum_last_post_subject'];
#
#-----[ AFTER, ADD ]------------------------------------------
#
$last_post_title = '0'; // values: 0 and 1 //if 0 it'll take last TOPIC title
if ($last_post_title == '0')
{
$sql = 'SELECT t.topic_id, p.topic_id, t.topic_title, p.post_id, p.post_time
FROM ' . TOPICS_TABLE . ' t, ' . POSTS_TABLE . ' p
WHERE t.topic_id = p.topic_id
AND p.post_id = '.$row['forum_last_post_id'].'
ORDER BY p.post_time DESC';
$result = $db->sql_query($sql);
while ($row['2'] = $db->sql_fetchrow($result))
{
$last_topic_title = $row['2']['topic_title'];
$last_topic_url = append_sid("{$phpbb_root_path}viewtopic.$phpEx", 't=' . $row['2']['topic_id']);
}
$last_topic_title_substr = ( utf8_strlen($last_topic_title) > 30 )? (utf8_substr($last_topic_title,0,25) . '...') : ($last_topic_title);
}
else
{
$last_post_subject_substr = ( utf8_strlen($row['forum_last_post_subject']) > 30 )? (utf8_substr($row['forum_last_post_subject'],0,25) . '...') : ($row['forum_last_post_subject']);
}
#
#-----[ FIND ]------------------------------------------
#
'LAST_POST_SUBJECT' => censor_text($last_post_subject),
#
#-----[ AFTER, ADD ]------------------------------------------
#
'LAST_TOPIC_TITLE' => censor_text($last_topic_title),
'LAST_TOPIC_TITLE_SUBSTR' => censor_text($last_topic_title_substr),
'LAST_POST_SUBJECT_SUBSTR' => censor_text($last_post_subject_substr),
'U_LAST_TOPIC' => $last_topic_url,
#
#-----[ OPEN ]------------------------------------------
#
styles/prosilver/templates/forumlist_body.html
#
#-----[ FIND ]------------------------------------------
#
<!-- IF forumrow.LAST_POST_TIME --><dfn>{L_LAST_POST}</dfn>
#
#-----[ IN-LINE, FIND ]------------------------------------------
#
<!-- IF forumrow.LAST_POST_TIME --><dfn>{L_LAST_POST}</dfn>
#
#-----[ IN-LINE, AFTER ADD ]------------------------------------------
#
<a href="{forumrow.U_LAST_TOPIC}" title="{forumrow.LAST_TOPIC_TITLE}">{forumrow.LAST_TOPIC_TITLE_SUBSTR}</a><a href="{forumrow.U_LAST_POST}" title="{forumrow.LAST_POST_SUBJECT}">{forumrow.LAST_POST_SUBJECT_SUBSTR}</a><br />
#
#-----[ OPEN ]------------------------------------------
#
styles/subsilver2/templates/forumlist_body.html
#
#-----[ FIND ]------------------------------------------
#
<!-- IF forumrow.LAST_POST_TIME -->
#
#-----[ AFTER ADD ]------------------------------------------
#
<p class="topicdetails"><a href="{forumrow.U_LAST_TOPIC}" title="{forumrow.LAST_TOPIC_TITLE}">{forumrow.LAST_TOPIC_TITLE_SUBSTR}</a><a href="{forumrow.U_LAST_POST}" title="{forumrow.LAST_POST_SUBJECT}">{forumrow.LAST_POST_SUBJECT_SUBSTR}</a></p>
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
Eklenti Tanıtımları, Duyurular, Güncellemeler
Bu forumu görüntüleyenler: Kayıtlı kullanıcı yok ve 1 misafir