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.
Get Involved
Forum rules
END OF SUPPORT: 1 January 2017 (announcement)
Locked
MPESGT01
Registered User
Posts: 67
Joined: Wed Jun 07, 2006 12:11 pm
Location: canada
Contact:

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

Post by MPESGT01 » Fri Jan 21, 2011 4:07 pm

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 ?
|| Website graphic designer and developper
Snowboarding community in Quebec, Canada - http://www.snowboardquebec.com

User avatar
AmigoJack
Registered User
Posts: 5569
Joined: Tue Jun 15, 2010 11:33 am
Location: グリーン ヒル ゾーン
Contact:

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

Post by AmigoJack » Fri Jan 21, 2011 4:16 pm

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
Location: canada
Contact:

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

Post by MPESGT01 » Tue Feb 01, 2011 5:28 pm

thanks
untested... any body have tried it ? similar tries ?
|| Website graphic designer and developper
Snowboarding community in Quebec, Canada - http://www.snowboardquebec.com

User avatar
stevemaury
Support Team Member
Support Team Member
Posts: 50411
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 » Tue Feb 01, 2011 5:46 pm

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 » Sat Mar 05, 2011 10:12 pm

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 » Sun Mar 06, 2011 4:47 pm

That breaks. Not for 3.0.8 I'm assuming.

User avatar
AmigoJack
Registered User
Posts: 5569
Joined: Tue Jun 15, 2010 11:33 am
Location: グリーン ヒル ゾーン
Contact:

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

Post by AmigoJack » Sun Mar 06, 2011 6:17 pm

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 » Mon Mar 07, 2011 8:55 pm

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: 5569
Joined: Tue Jun 15, 2010 11:33 am
Location: グリーン ヒル ゾーン
Contact:

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

Post by AmigoJack » Mon Mar 07, 2011 9:16 pm

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”