Remove 'Re:' from replies

Articles and Information - phpBB 3.0 modifications and tweaks

Remove 'Re:' from replies

Postby Mick » Sun Mar 19, 2017 1:02 pm

Open posting.php

Find:
Code: Select all
    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']);
    }

Replace with:
Code: Select all
 if (($mode == 'reply' || $mode == 'quote') && !$submit && !$preview && !$refresh)
    {
        $post_data['post_subject'] = censor_text($post_data['post_subject']);
    }


Note: This will only work on posts placed after this change is made.

Addition: 25.1.2010

What about toggling it from quick reply too?

In viewtopic.php find:
Code: Select all
'SUBJECT'                => 'Re: ' . censor_text($topic_data['topic_title']),

Replace with:
Code: Select all
'SUBJECT'                => . censor_text($topic_data['topic_title']),


And it works.
"The more connected we get the more alone we become" - Kyle Broflovski
User avatar
Mick
 
Posts: 24
Joined: Wed Mar 15, 2017 9:14 am

Return to Articles and information

Who is online

Users browsing this forum: No registered users and 2 guests

cron