phpBB Türkiye - phpBB3 Türkçe destek ve geliştirme

İçeriği atla

Sitemiz sadece phpBB 3.0 sürümüne 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 12: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
http://www.topakli.net - deneme yayını
http://topakli.6te.net - deneme yayını
topakli


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

  profesyonel phpBB3 çözümleri ve web hizmetleri

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

İleti Simuzer 23 Haz 2007 13: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
yönetici
yönetici

Kullanıcı avatarı

İleti: 947
Kayıt: 28 Mar 2007 21:19
İsim: Zafer Sarışahin
HTML: İyi
CSS: Orta
PHP: Başlangıç
phpBB3: Orta
Sürüm: Simuzer Premod 3.0.2

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

İleti IcEman 23 Haz 2007 13: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ı avatarı

İleti: 525
Kayıt: 08 Nis 2007 14:25
HTML: Başlangıç
CSS: Başlangıç
PHP: Başlangıç
phpBB3: Başlangıç
Sürüm: phpbb 3.0.2

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

İleti Simuzer 23 Haz 2007 13:33

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

Kullanıcı avatarı

İleti: 947
Kayıt: 28 Mar 2007 21:19
İsim: Zafer Sarışahin
HTML: İyi
CSS: Orta
PHP: Başlangıç
phpBB3: Orta
Sürüm: Simuzer Premod 3.0.2

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

İleti math1ens 23 Haz 2007 13: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


İleti: 9
Kayıt: 18 Haz 2007 21:26
İsim: Gökhan Yıldız
HTML: Çok iyi
CSS: Orta
PHP: Orta
phpBB3: Başlangıç
Sürüm: phpBB3

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

İleti IcEman 23 Haz 2007 13: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ı avatarı

İleti: 525
Kayıt: 08 Nis 2007 14:25
HTML: Başlangıç
CSS: Başlangıç
PHP: Başlangıç
phpBB3: Başlangıç
Sürüm: phpbb 3.0.2

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

İleti Simuzer 23 Haz 2007 19: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
yönetici
yönetici

Kullanıcı avatarı

İleti: 947
Kayıt: 28 Mar 2007 21:19
İsim: Zafer Sarışahin
HTML: İyi
CSS: Orta
PHP: Başlangıç
phpBB3: Orta
Sürüm: Simuzer Premod 3.0.2

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

İleti nickvergessen 15 Tem 2007 10:43

There's a new Verion (0.2.1) available ;)
http://www.phpbb.com/community/viewtopi ... 0&t=544839
Sorry, I only understand english and german!
nickvergessen


İleti: 8
Kayıt: 14 Tem 2007 16: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 17: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
http://www.topakli.net - deneme yayını
http://topakli.6te.net - deneme yayını
topakli


İleti: 89
Kayıt: 07 Nis 2007 21: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 18: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ı avatarı

İleti: 525
Kayıt: 08 Nis 2007 14:25
HTML: Başlangıç
CSS: Başlangıç
PHP: Başlangıç
phpBB3: Başlangıç
Sürüm: phpbb 3.0.2

Önceki

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


Kimler çevrimiçi

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

cron