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.

[RC1] Last Posts Titles 0.7.0 (index'de konu başlığı)

Re: [RC1] Last Posts Titles 0.7.0 (index'de konu başlığı)

İleti topakli 23 Haz 2007 11:51

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
topakli
kullanıcı
kullanıcı

İleti: 95
Kayıt: 07 Nis 2007 20:27
İsim: Topakli
HTML: Orta
CSS: Başlangıç
PHP: Başlangıç
phpBB3: Başlangıç
Sürüm: phpBB3 RC5

Re: [RC1] Last Posts Titles 0.7.0 (index'de konu başlığı)

İleti Simuzer 23 Haz 2007 12:22

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
Simuzer
kullanıcı
kullanıcı

Kullanıcı avatarı

İleti: 1127
Kayıt: 28 Mar 2007 20:19
HTML: İyi
CSS: Orta
PHP: Başlangıç
phpBB3: Orta
Sürüm: 3.0.5

Re: [RC1] Last Posts Titles 0.7.0 (index'de konu başlığı)

İleti IcEman 23 Haz 2007 12:27

Kod: Tümünü seç
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']);
}



posting.php de böyle bir yer buldum buradaki "Re:" ler temizlenirse sorun ortadan kalkar belki ama .. sizin verdiğiniz modu da kuralım.
IcEman
kullanıcı
kullanıcı

İleti: 1511
Kayıt: 08 Nis 2007 13:25
HTML: Başlangıç
CSS: Başlangıç
PHP: Başlangıç
phpBB3: Orta
Sürüm: phpBb 3.0.8

Re: [RC1] Last Posts Titles 0.7.0 (index'de konu başlığı)

İleti Simuzer 23 Haz 2007 12:33

Ordaki RE'leri temizlersen tüm forumdaki RE'ler temzilenmiş olur... Özel mesajlarda, konu içlerindeki iletilerin başlıklarında vs..
Simuzer
kullanıcı
kullanıcı

Kullanıcı avatarı

İleti: 1127
Kayıt: 28 Mar 2007 20:19
HTML: İyi
CSS: Orta
PHP: Başlangıç
phpBB3: Orta
Sürüm: 3.0.5

Re: [RC1] Last Posts Titles 0.7.0 (index'de konu başlığı)

İleti math1ens 23 Haz 2007 12:37

verdiğin kodlarda 'forum_last_post_subject' şeklinde geçiyor.ama functions_display.php de 'forum_last_post_full_subject' şeklinde geçiyor.bu kodları eklesem hata oluşmaz mı?
math1ens
kullanıcı
kullanıcı

İleti: 26
Kayıt: 18 Haz 2007 20:26
Konum: Ünye
İsim: Gökhan Yıldız
HTML: Çok iyi
CSS: Çok iyi
PHP: İyi
phpBB3: Çok iyi
Sürüm: 3.0.5

Re: [RC1] Last Posts Titles 0.7.0 (index'de konu başlığı)

İleti IcEman 23 Haz 2007 12:44

Simuzer yazdı:Ordaki RE'leri temizlersen tüm forumdaki RE'ler temzilenmiş olur... Özel mesajlarda, konu içlerindeki iletilerin başlıklarında vs..


öyle olacağı belli ama aklıma başka bir şey gelmedi en iyisi ben modu kaldırayım sizin verdiğiniz modu kurayım :) nasıl olsa test ediyoruz
IcEman
kullanıcı
kullanıcı

İleti: 1511
Kayıt: 08 Nis 2007 13:25
HTML: Başlangıç
CSS: Başlangıç
PHP: Başlangıç
phpBB3: Orta
Sürüm: phpBb 3.0.8

Re: [RC1] Last Posts Titles 0.7.0 (index'de konu başlığı)

İleti Simuzer 23 Haz 2007 18:16

Kod: Tümünü seç
                         $last_post_title = '0'; // values: 0 and 1 //if 0 it'll take last TOPIC title


0 yaparsanız, iletinin bağlı olduğu konunun bhaşlığı gösterilir, 1 yaparsanız iletinin başlığı gösterilir.

math1ens, verdiğim modda ne diyorsa onu yap RC1 için çalışıyor. Bir sorun yok. RC1 sürümünü kullanıyorsan problem çıkmaz..
Simuzer
kullanıcı
kullanıcı

Kullanıcı avatarı

İleti: 1127
Kayıt: 28 Mar 2007 20:19
HTML: İyi
CSS: Orta
PHP: Başlangıç
phpBB3: Orta
Sürüm: 3.0.5

Re: [RC1] Last Posts Titles 0.7.0 (index'de konu başlığı)

İleti nickvergessen 15 Tem 2007 09:43

There's a new Verion (0.2.1) available ;)
http://www.phpbb.com/community/viewtopi ... 0&t=544839
nickvergessen
kullanıcı
kullanıcı

İleti: 8
Kayıt: 14 Tem 2007 15:12
HTML: Başlangıç
CSS: Başlangıç
PHP: Başlangıç
phpBB3: Başlangıç
Sürüm: phpBB3.RC3

Re: [RC1] Last Posts Titles 0.7.0 (index'de konu başlığı)

İleti topakli 06 Oca 2008 16:29

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



simuzerin vermiş olduğu bu kodları debug mod açıkken kullandığımızda aşağıdaki resimdeki hata alınıyor.
Eklentiler
hata.png
topakli
kullanıcı
kullanıcı

İleti: 95
Kayıt: 07 Nis 2007 20:27
İsim: Topakli
HTML: Orta
CSS: Başlangıç
PHP: Başlangıç
phpBB3: Başlangıç
Sürüm: phpBB3 RC5

Re: [RC1] Last Posts Titles 0.7.0 (index'de konu başlığı)

İleti IcEman 06 Oca 2008 17:05

[RC] NV advanced last topic titles 1.2.2
http://www.phpbb.com/community/viewtopi ... &sk=t&sd=a

bu sürümü test etmedim daha eski sürümünü kullanıyorum galiba ben :)
IcEman
kullanıcı
kullanıcı

İleti: 1511
Kayıt: 08 Nis 2007 13:25
HTML: Başlangıç
CSS: Başlangıç
PHP: Başlangıç
phpBB3: Orta
Sürüm: phpBb 3.0.8

Önceki

Eklenti Tanıtımları, Duyurular, Güncellemeler


Kimler çevrimiçi

Bu forumu görüntüleyenler: Kayıtlı kullanıcı yok ve 1 misafir

cron