RobertHeim / phpbb-ext-topictags

phpBB 3.3 extension, that adds the ability to tag topics with key words.
GNU General Public License v2.0
29 stars 19 forks source link

Workaround: Add tags on search page's title #94

Open Naguissa opened 3 years ago

Naguissa commented 3 years ago

Hello,

I've cloned repository on local and made a change, but as it's not cloned on my GitHub account I cannot do a pull-request.

I've added search tags on search results page title. It's useful for SEO purpose.

As I cannot do the push request now, I indicate the only 2 changes.

On controller/main.php, around lines 133 and 172 (my editor changes indentations to fit my style), search for:

return $this->helper->render('show_tag.html'

And change whole line to:

return $this->helper->render('show_tag.html', $this->user->lang('RH_TOPICTAGS_TAG_SEARCH') . ": " . implode(' ' . $mode . ' ', $tags));

You can enhance it and inject into translations, but I wanted a quick and easy fix to be able to donload new versions and reapply if it's not integrated in the extension....

Cheers!