[Snippet] Start-Topic-Title => Re-Topic-Title (en)

Snippet-Area for phpBB 3.0.x

[Snippet] Start-Topic-Title => Re-Topic-Title (en)

Postby 4seven » Fri 23. Oct 2009, 02:22 | Userzeit: +1.00 / Fr 23. Okt 2009, 03:22

Start-Topic-Title => Re-Topic-Title

- Only The Title of Start-Topic will show up in Re-Titles (without the Re:)
- If u change the Start-Title, it changes all Re-Titles (without the Re:)

open

viewtopic.php

find

Code: Select all
$postrow = array(     


add before

Code: Select all
        // Start-Topic-Title => Re-Topic-Title  / 4seven / 2009
        $first_subject = $topic_data['topic_first_post_id'];
        $sqls = 'SELECT post_subject
        FROM ' . POSTS_TABLE . "
        WHERE post_id = $first_subject";
        $results = $db->sql_query($sqls);
        $rows = $db->sql_fetchrow($results);
        $subject_first = $rows['post_subject'];
        $db->sql_freeresult($results);
        // Start-Topic-Title => Re-Topic-Title  / 4seven / 2009     


find

Code: Select all
        'POST_SUBJECT'        => $row['post_subject'],     


replace with

Code: Select all
        'POST_SUBJECT'        => $subject_first, // $row['post_subject'],                   


Clear all Board- and Browser-Caches

Note: Changes in Re-Post Subject-Fields are now ineffectually.
If you want to hide these "useless Fields" read further..




Special

Make Subject-Fields in Re-Posts hidden (only the First-Post Subject-Field is visible)

open (prosilver)

posting_editor.html

find

Code: Select all
        <dt><label for="subject">{L_SUBJECT}:</label></dt>
        <dd><input type="text" name="subject" id="subject" size="45" maxlength="<!-- IF S_NEW_MESSAGE -->60<!-- ELSE -->64<!-- ENDIF -->" tabindex="2" value="{SUBJECT}{DRAFT_SUBJECT}" class="inputbox autowidth" /></dd>     


replace with

Code: Select all
        <!-- IF S_FIRST_POST or S_NEW_MESSAGE --><dt><label for="subject">{L_SUBJECT}:</label></dt>
        <dd><input type="text" name="subject" id="subject" size="45" maxlength="<!-- IF S_NEW_MESSAGE -->60<!-- ELSE -->64<!-- ENDIF -->" tabindex="2" value="{SUBJECT}{DRAFT_SUBJECT}" class="inputbox autowidth" /></dd><!-- ENDIF -->     


open (subsilver2)

posting_body.html

find

Code: Select all
    <td class="row1" width="22%"><b class="genmed">{L_SUBJECT}:</b></td>
    <td class="row2" width="78%"><input class="post" style="width:450px" type="text" name="subject" size="45" maxlength="<!-- IF S_NEW_MESSAGE -->60<!-- ELSE -->64<!-- ENDIF -->" tabindex="2" value="{SUBJECT}" /></td>   


replace with

Code: Select all
      <!-- IF S_FIRST_POST or S_NEW_MESSAGE --><td class="row1" width="22%"><b class="genmed">{L_SUBJECT}:</b></td>
    <td class="row2" width="78%"><input class="post" style="width:450px" type="text" name="subject" size="45" maxlength="<!-- IF S_NEW_MESSAGE -->60<!-- ELSE -->64<!-- ENDIF -->" tabindex="2" value="{SUBJECT}" /></td><!-- ENDIF -->       


Clear all Board- and Browser-Caches
User avatar
4seven
Administrator
 
Posts: 427
 
Last 3 Topics:
Tabmenu Test
[Snippet] Avatar Ev...
[DEV] Zero and X-P...
 
Joined:
Sun 13. Jan 2008, 23:44
 
Letzter Login:
Mon 1. Aug 2022, 16:40
 
Posted:
Fri 23. Oct 2009, 02:22 +1.00
Userzeit: Fr 23. Okt 2009, 03:22

Return to [Snippet] for 3.0.x



Who is online

Users browsing this forum: No registered users and 0 guests

cron