How to remove "Re:" title on each answer post ?

Get help with installation and running phpBB 3.0.x here. Please do not post bug reports, feature requests, or MOD-related questions here.
Scam Warning
Forum rules
END OF SUPPORT: 1 January 2017 (announcement)
Locked
MPESGT01
Registered User
Posts: 67
Joined: Wed Jun 07, 2006 12:11 pm

How to remove "Re:" title on each answer post ?

Post by MPESGT01 »

In phpbb3, everytime their is an answer, the title repeats to "Re: My Title..." and it goes on for all post ansers...

hot to remove it ?
User avatar
AmigoJack
Registered User
Posts: 5745
Joined: Tue Jun 15, 2010 11:33 am
Location: グリーン ヒル ゾーン
Contact:

Re: How to remove "Re:" title on each answer post ?

Post by AmigoJack »

Open /posting.php and find:

Code: Select all

    $post_data['post_subject'] = ((strpos($post_data['post_subject'], 'Re: ') !== 0) ? 'Re: ' : '') . censor_text($post_data['post_subject']); 
Change to:

Code: Select all

    $post_data['post_subject'] = censor_text($post_data['post_subject']); 
Open /viewtopic.php and find:

Code: Select all

            'SUBJECT'                => 'Re: ' . censor_text($topic_data['topic_title']), 
Change to:

Code: Select all

            'SUBJECT'                => censor_text($topic_data['topic_title']), 
Open /includes/ucp/ucp_pm_compose.php and find:

Code: Select all

        $message_subject = ((!preg_match('/^Re:/', $message_subject)) ? 'Re: ' : '') . censor_text($message_subject); 
Change to:

Code: Select all

        $message_subject = censor_text($message_subject); 
Open /includes/functions_content.php and find:

Code: Select all

    if ($strip_reply)
    {
        $string = 'Re: ' . $string;
    } 
Change to:

Code: Select all

    /*if ($strip_reply)
    {
        $string = 'Re: ' . $string;
    }*/ 
Untested.
The worst thing about censorship is ███████████
Affin wrote:
Tue Nov 20, 2018 9:51 am
The problem is probably not my English but you do not want to understand correctly.
...
We will not come anybody anyway, nevertheless, it's best to shit this.
MPESGT01
Registered User
Posts: 67
Joined: Wed Jun 07, 2006 12:11 pm

Re: How to remove "Re:" title on each answer post ?

Post by MPESGT01 »

thanks
untested... any body have tried it ? similar tries ?
User avatar
stevemaury
Support Team Member
Support Team Member
Posts: 51404
Joined: Thu Nov 02, 2006 12:21 am
Location: The U.P.
Name: Steve
Contact:

Re: How to remove "Re:" title on each answer post ?

Post by stevemaury »

For REALLY good and VERY inexpensive hosting CLICK HERE

I can stop all your spam. I can upgrade or update your Board. PM or email me. (Paid support)
Ninja-Matic
Registered User
Posts: 5
Joined: Mon Feb 28, 2011 7:14 am

Re: How to remove "Re:" title on each answer post ?

Post by Ninja-Matic »

You can do everything AmigoJack said except don't replace the code = just remove the 'Re: ' from the PHP and leave it as:

''

Example:

Code: Select all

$post_data['post_subject'] = ((strpos($post_data['post_subject'], 'RE: ') !== 0) ? 'Re: ' : '') . censor_text($post_data['post_subject']);
Just change it to:

Code: Select all

$post_data['post_subject'] = ((strpos($post_data['post_subject'], '') !== 0) ? '' : '') . censor_text($post_data['post_subject']);
The code breaks, otherwise. All you are doing now is just removing the "Re: " without breaking code.

You're leaving in '' - as such - that means that nothing will be added as a code prefix.
Ninja-Matic
Registered User
Posts: 5
Joined: Mon Feb 28, 2011 7:14 am

Re: How to remove "Re:" title on each answer post ?

Post by Ninja-Matic »

That breaks. Not for 3.0.8 I'm assuming.
User avatar
AmigoJack
Registered User
Posts: 5745
Joined: Tue Jun 15, 2010 11:33 am
Location: グリーン ヒル ゾーン
Contact:

Re: How to remove "Re:" title on each answer post ?

Post by AmigoJack »

Ninja-Matic wrote:
That breaks. Not for 3.0.8 I'm assuming.
That article is from long ago (see its date) and wouldn't affect nowadays quote replies or PMs. However, it still won't break 3.0.8 code.
The worst thing about censorship is ███████████
Affin wrote:
Tue Nov 20, 2018 9:51 am
The problem is probably not my English but you do not want to understand correctly.
...
We will not come anybody anyway, nevertheless, it's best to shit this.
Ninja-Matic
Registered User
Posts: 5
Joined: Mon Feb 28, 2011 7:14 am

Re: How to remove "Re:" title on each answer post ?

Post by Ninja-Matic »

AmigoJack wrote:
Ninja-Matic wrote:
That breaks. Not for 3.0.8 I'm assuming.
That article is from long ago (see its date) and wouldn't affect nowadays quote replies or PMs. However, it still won't break 3.0.8 code.
Weird - it breaks my stock 3.0.8 on my testing server. I'll just /shrug with this one, then.
User avatar
AmigoJack
Registered User
Posts: 5745
Joined: Tue Jun 15, 2010 11:33 am
Location: グリーン ヒル ゾーン
Contact:

Re: How to remove "Re:" title on each answer post ?

Post by AmigoJack »

Ninja-Matic wrote:it breaks my stock 3.0.8
Since you're sparing the details I'll assume you just incorrectly saved the PHP file.
The worst thing about censorship is ███████████
Affin wrote:
Tue Nov 20, 2018 9:51 am
The problem is probably not my English but you do not want to understand correctly.
...
We will not come anybody anyway, nevertheless, it's best to shit this.
Locked

Return to “[3.0.x] Support Forum”