Forums

phpbb_recent_topics
[resolved] Remove the "RE:" from the displayed topics. (2 posts)

  1. mrsarun
    Member
    Posted 7 months ago #

    I was wondering if there is a solution of removing the "RE:" part of every displayed topic.
    I guess I could use preg_replace() or something similar but I really don't know where to put it inside display.php, or even if I need to put it inside that file.

    Maybe a future admin option to show/hide the "RE:" would be awesome!? :)
    Thanks for a great plugin!

    http://wordpress.org/extend/plugins/phpbb-recent-topics/

  2. mrsarun
    Member
    Posted 7 months ago #

    I managed to sort it with the str_replace() command.
    Heres how for those who want the solution!

    Line 253 (display.php) replace:

    if ($lnx_PRT_options['prt_phpbb_latest_topic'] == "1") {
    				echo "$topic->topic_last_post_subject";
    			} else {
    				echo "$topic->topic_title";
    			}

    With:

    if ($lnx_PRT_options['prt_phpbb_latest_topic'] == "1") {
    				echo str_replace("Re:",'', $topic->topic_last_post_subject);
    			} else {
    				echo  str_replace("Re:",'', $topic->topic_title);
    			}

Reply

You must log in to post.

About this Plugin

About this Topic