TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,973
  • Latest: NonStop
Stats
  • Total Posts: 196,230
  • Total Topics: 21,353
  • Online today: 867
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 332
  • Total: 333
  • @rjen

Remove forum name from Article Page Titles

Started by BLueSS, January 03, 2010, 10:30:37 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

BLueSS

My forum titles have been configured to be "Topic Title - Forum Url" and I'm looking to duplicate that in the article titles as well.

Currently my page titles for Articles are "Forum Url - Article".

I tried looking through the sources/tp* files, but didn't see anything, and I tried looking in the language files. I'm probably missing it somewhere, but I'm not sure where that might be.

Thanks

IchBin

In TPortal.php you'll find there are two spots for this code. Depending on your frontpage and articles options. I'd suggest changing both if you want to change it. Line 1497 and 1700 should have a line like this:
$context['page_title'] = $context['forum_name']. ' - ' . $context['TPortal']['current_category'];

Just exchange the two variables after the equal sign.
$context['page_title'] = $context['TPortal']['current_category']. ' - ' . $context['forum_name'];

I think that should do it.

BLueSS

That worked perfectly. Thanks, IchBin!  Obviously I was looking for the wrong string, so I didn't catch those.

This website is proudly hosted on Crocweb Cloud Website Hosting.