https://www.icyphoenix.com/viewtopic.php?f=35&t=5805
-----------------------------------
borbo
Wed 06 May, 2009 12:21

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

Re: Removing :RE From Reply Topic Title
-----------------------------------
Try this:

posting.php

[code linenumbers=false]Find:

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

Change: $subject = 'Re: ' . $subject; to $subject = ' ' . $subject;[/code]


-----------------------------------
borbo
Thu 07 May, 2009 16:43

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

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 linenumbers=false]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'] = '';[/code]


-----------------------------------
borbo
Sat 09 May, 2009 15:52

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

Re: Removing :RE From Reply Topic Title
-----------------------------------
That's the problem, it's everywhere - even in rss.php  :mrviolet: 

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

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

[code linenumbers=false]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: ' : '' ) . [/code]

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 - - - [i][b]Grumble, grumble. [/b][/i] :mryellow: 

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

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

Re: Removing :RE From Reply Topic Title
-----------------------------------
:mrgreen: 

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 [b]Re:[/b] 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.  :shock:


-----------------------------------
Mighty Gorgon
Sun 17 May, 2009 11:48

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

Re: Removing :RE From Reply Topic Title
-----------------------------------
Me too!  :mricy: 

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 linenumbers=false]	Line 22: 	// Remove Re: in case of replies
	Line 23: 	$url = strtolower(str_replace('Re: ', '', strip_tags($url)));[/code]

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


-----------------------------------
borbo
Wed 20 May, 2009 08:15

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 !


