Icy Phoenix

     
 


Post new topic  Reply to topic 
Page 1 of 1
 
 
Reply with quote Download Post 
Post 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 ~
 



 
borboSend private message  
Back to topPage bottom
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us
 
Reply with quote Download Post 
Post Re: Removing :RE From Reply Topic Title 
 
Try this:

posting.php

Code: [Download] [Hide] [Select]
Find:

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

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

 
 
 
Back to topPage bottom
Reply with quote Download Post 
Post Re: Removing :RE From Reply Topic Title 
 
Thank you Lopalong,

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

Any ideas please?
 



 
borboSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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: [Download] [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'] = '';

 
 
 
Back to topPage bottom
Reply with quote Download Post 
Post 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...
 



 
borboSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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: [Download] [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.
 
 
 
Back to topPage bottom
Reply with quote Download Post 
Post 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 =]
 



 
InformproSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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.  
 
 
 
Back to topPage bottom
Reply with quote Download Post 
Post 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.
 




____________
Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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: [Download] [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.
 
 
 
Back to topPage bottom
Reply with quote Download Post 
Post 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 !
 



 
borboSend private message  
Back to topPage bottom
Post new topic  Reply to topic  Page 1 of 1
 


Display posts from previous:    

HideWas this topic useful?

Link this topic
URL
BBCode
HTML




 
Permissions List
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events