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,965
  • Latest: boruko
Stats
  • Total Posts: 195,982
  • Total Topics: 21,320
  • Online today: 431
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 94
  • Total: 94

What part of tinyportal?

Started by jepot, August 20, 2008, 06:18:27 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jepot

What part of tinyportal shows the forum name on the home page? Because instead of showing my forum's name on my homepage I want to show "Home"?

G6Cad

find
$txt['tp-forum'] = 'Forum';

in

TPortal.english.php in the themes/default/Languages folder

jepot

Not quite.

What I need is the one that says 'forum_name'
When i have TP installed, I always see

{my forum name}

on the top of my browser on the index page
When I go to my forum, i see

{my forum name} - Index

What i need is to change what it displays on the front page, so I see

{some other text i entered -} Home

G6Cad

Did you try and search ?

I found this, it's the same for all themes

http://www.tinyportal.net/index.php?topic=25582.0

jepot

 I have done that.

That code is behind the <title> tag
For example, I have a forum called 'My Community'
I replaced it with
<title>My Community -',$context['page_title'], '</title>

But now whenever I go on my homepage I see
My Community - My Community
Because tinyportal uses ',$context['forum_name'],'
as page title on the home page

IchBin

Keep searching in the file. $context['forum_name'] is in the file a couple of times. More specificially after the <body> tag is where the Title is set.

This website is proudly hosted on Crocweb Cloud Website Hosting.