Titel bei Antwort
Verfasst: 01.05.2004 15:29
wie schaffe ich es das wenn jemand auf ein topic antwortet automatisch der titel des topics drin ist satt das leere titel feld?
Code: Alles auswählen
{postrow.POST_SUBJECT}
Code: Alles auswählen
{TOPIC_TITLE}
Noch schöner wäre es, wenn der Titel NUR DANN automatisch gesetzt wird,Timmy hat geschrieben:Hi...
Öffne: templates/xxx/viewtopic_body.tpl
Finde:Ersetze mit:Code: Alles auswählen
{postrow.POST_SUBJECT}
Ist mit 2.0.8 getestetCode: Alles auswählen
{TOPIC_TITLE}
Das ist auch so ziemlich genau meine Frage.mirk hat geschrieben:wie schaffe ich es das wenn jemand auf ein topic antwortet automatisch der titel des topics drin ist satt das leere titel feld?
Code: Alles auswählen
if ( !preg_match('/^Re:/', $subject) && strlen($subject) > 0 )
{
$subject = 'Re: ' . $subject;
}
Code: Alles auswählen
##############################################################
## MOD Title: Auto Subject On Reply
## MOD Author: fredol < fredol @ lovewithsmg.com > (fredol) http://phpbb.lovewithsmg.com/
## MOD Description: Will show "Re: [topic title]" as subject for reply without subject
## MOD Version: 1.0.1
##
## Installation Level: Easy
## Installation Time: 1 Minute (less than one with the great EasyMOD! :-)
## Files To Edit: viewtopic.php
## search.php
## language/lang_english/lang_main.php
## Included Files: n/a
##############################################################