Removing :RE From Reply Topic Title »  Show posts from    to     

Icy Phoenix


Old Support Topics - Removing :RE From Reply Topic Title



borbo [ Wed 06 May, 2009 12:21 ]
Post subject: Removing :RE From Reply Topic Title
Hello guys,

I'd like to remove the RE from the replies topic titles...
I 've removed the RE prfix from posting.php and i'm searching for the quick reply javasript to remove the RE prefix
Can anybody point me to the file?

Most of you will ask me why do you want to remove it?
-Well i dont like the topic title from when i'm reading the rss feeds of my site...
Is there any other way to emove this prefix from my rss feeds?

Thank you very much

~ borbo ~


Lopalong [ Thu 07 May, 2009 09:16 ]
Post subject: Re: Removing :RE From Reply Topic Title
Try this:

posting.php

Code: [Hide] [Select]
Find:

if (!preg_match('/^Re:/', $subject) && strlen($subject) > 0)
{
$subject = 'Re: ' . $subject;

Change: $subject = 'Re: ' . $subject; to $subject = ' ' . $subject;


borbo [ Thu 07 May, 2009 16:43 ]
Post subject: Re: Removing :RE From Reply Topic Title
Thank you Lopalong,

It didnt work for quick reply and quick quote....

Any ideas please?


Lopalong [ Fri 08 May, 2009 04:02 ]
Post subject: Re: Removing :RE From Reply Topic Title
The way phpBB nests and pulls bits and pieces from here and there, I'm not surprised.

You can undo that change and try this. Or you may need both changes? Dunno!

Code: [Hide] [Select]
forum\posting.php

Find:
$subject = $lang['RE'] . ': ' . $post_info['topic_title'];

Change to: (Make sure there's a space between the ' ')
$subject = $lang['RE'] . ' ' . $post_info['topic_title'];


language\lang_english\lang_main.php

Find:

$lang['RE'] = 'Re';

Change to:

$lang['RE'] = '';


borbo [ Sat 09 May, 2009 15:52 ]
Post subject: Re: Removing :RE From Reply Topic Title
The problem is still there....
Yes the RE is removed but there is an " : " still there in the reply's title...

Where is the quick quote and the quick reply scipt located?

maybe it is inside the scripts...


Lopalong [ Sun 10 May, 2009 01:39 ]
Post subject: Re: Removing :RE From Reply Topic Title
That's the problem, it's everywhere - even in rss.php

Makes me wonder why it's even in the lang files ? Yes I am being facetious.

Anyway, here's all of them that I can find. - After that, it's generated in heaven!

Code: [Hide] [Select]
privmsg.php

$privmsg_subject = ((!preg_match('/^Re:/', $privmsg['privmsgs_subject'])) ? 'Re: ' : '') . $privmsg['privmsgs_subject'];


Remove:

((!preg_match('/^Re:/', $privmsg['privmsgs_subject'])) ? 'Re: ' : '') .

posting.php

$subject = $lang['RE'] . ': ' . $post_info['topic_title'];

Remove: $lang['RE'] . ': ' .

$subject = 'Re: ' . $subject;
Remove: 'Re: ' .


rss.php
$topic_title = 'RE: ' . $topic_title;

Remove: 'RE: ' .


privmsgs_read_body.tpl

$post_subject = ( ( !preg_match('/^Re:/', $post_subject) ) ? 'Re: ' : '' ) . $post_subject;


Remove: ( ( !preg_match('/^Re:/', $post_subject) ) ? 'Re: ' : '' ) .


And this colon $lang['RE'] . ': ' should have been added to the lang_ Re, and not added in the script. Probably along with a hoard of other things - - - Grumble, grumble.

By the way, the editor Notepad++ can load and scan a huge amount of files at the same time. You may find it useful for this sort of thing in future.


Informpro [ Sun 10 May, 2009 14:54 ]
Post subject: Re: Removing :RE From Reply Topic Title
lol, u can delete:
privmsg.php

$privmsg_subject = ((!preg_match('/^Re:/', $privmsg['privmsgs_subject'])) ? 'Re: ' : '') . $privmsg['privmsgs_subject'];


Remove: all

privmsgs_read_body.tpl [Lool ?]

$post_subject = ( ( !preg_match('/^Re:/', $post_subject) ) ? 'Re: ' : '' ) . $post_subject;
Remove all =]


Lopalong [ Sun 10 May, 2009 23:58 ]
Post subject: Re: Removing :RE From Reply Topic Title


Really it's a language bug that not only splits the Re from the colon, it doesn't conform to a multilingual board, by having it hard coded in the script.

One should have been able to kill Re: simply by editing the lang_ file, providing of course that the colon is also added to the $lang_string.

I'll post it as a bug.


Mighty Gorgon [ Sun 17 May, 2009 11:48 ]
Post subject: Re: Removing :RE From Reply Topic Title
In RC2 it should be easier to remove this... I have moved it to a lang var and recoded some core parts to avoid wrong prefixes in multilanguage boards.

I hope to have covered all cases.


Lopalong [ Mon 18 May, 2009 11:46 ]
Post subject: Re: Removing :RE From Reply Topic Title
Me too!

I never posted this one because it removes Re: from url's. However I think there is now going to be a problem with what it is trying to do. ?

includes\functions_rewrite.php
Code: [Hide] [Select]
Line 22: // Remove Re: in case of replies
Line 23: $url = strtolower(str_replace('Re: ', '', strip_tags($url)));


Unless of course you already knew about it and addressed it also with the changes.


borbo [ Wed 20 May, 2009 08:15 ]
Post subject: Re: Removing :RE From Reply Topic Title
Thanks for the replies guys....
If in RC2 you can remove it from the language file there is no need for me to search further in 27c files for the annoying ":"... hehe

Thank you all again !




Powered by Icy Phoenix