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

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 195,815
  • Total Topics: 21,284
  • Online today: 562
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 271
  • Total: 271

Portal Title

Started by Prasad007, February 06, 2006, 02:55:46 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Prasad007

i noticed that the title of the portal shows is simply "home" whereas that of the forum is the name of my site "Tech Ultimatum"
so how can i change the title for the portal main page?

IchBin

I think in TPortal.php you can set that in this variable. Not sure if it's correct though.
$context['page_title'] = $context['forum_name']; Something like this anyway....

Prasad007

Quote from: IchBinâââ,¬Å¾Ã,¢ on February 06, 2006, 03:18:07 PM
I think in TPortal.php you can set that in this variable. Not sure if it's correct though.
$context['page_title'] = $context['forum_name']; Something like this anyway....
Ill give it a try sometime later, and let you know how it worked out. thanks! :)

misjka

Yeah, I noticed this as well...

G6Cad

#4
Two places needed to be changed for get the forumname to show up instead of HOME  :laugh:

themes/default/index.template.php

Find
<meta name="description" content="', $context['page_title'], '" />

Change to
<meta name="description" content="', $context['forum_name'], '" />

FIND
<title>', $context['page_title'], '</title>';

Change to
<title>', $context['forum_name'], '</title>';

Prasad007


G6Cad

Have to edit a bit, If you have more themes, you need to change the index.template.php in all the themes to get the page name to follow the change of themes.

IchBin

Nice g6! You have really learned alot!

Prasad007

Quote from: g6cad on February 06, 2006, 06:09:35 PM
Have to edit a bit, If you have more themes, you need to change the index.template.php in all the themes to get the page name to follow the change of themes.
Yeah. only one theme. Thanks again :)

Prasad007

Quote from: IchBinâââ,¬Å¾Ã,¢ on February 06, 2006, 03:18:07 PM
I think in TPortal.php you can set that in this variable. Not sure if it's correct though.
$context['page_title'] = $context['forum_name']; Something like this anyway....

Quote from: g6cad on February 06, 2006, 06:00:05 PM
Two places needed to be changed for get the forumname to show up instead of HOME  :laugh:

themes/default/index.template.php

Find
<meta name="description" content="', $context['page_title'], '" />

Change to
<meta name="description" content="', $context['forum_name'], '" />

FIND
<title>', $context['page_title'], '</title>';

Change to
<title>', $context['forum_name'], '</title>';

so which way should i do it? which would be the better/right way ?

This website is proudly hosted on Crocweb Cloud Website Hosting.