How do you change the portal page title

Current Version: 1.0.6
Released: 09.01.10
Forum rules
Before creating a new support thread, please take a look in the board3 Portal FAQ and use the search!
Many questions have already been answered.
Locked

Topic author
dv-design
Active Member
Posts: 25
Joined: 22. October 2008 21:02

How do you change the portal page title

Post by dv-design »

Your Portal Version: 1.0.2RC3
Your phpBB Type: Premodded phpBB
MODs installed: Yes
Your knowledge: Basic Knowledge
Boardlink: http://dv-efs.com

PHP Version: 4

What have you done before the problem was there?


What have you already tryed to solve the problem?
tried chaning it in portal.php, when i cleared cache and went back to portal page it loaded, but at the very top i got errors. Something along the lines of the title being called in includes/functions.php already

Description and Message
Hello,

Im trying to change the titles of both my portal page and my gallery page (i installed gallery mod from this site). I have changed the titles on other pages by editing the root php file that belongs to the page, but when i tried it this time on portal.php i got an error and it did not put the text in i wanted for the title.

I could use some help with this please, thanks.

Topic author
dv-design
Active Member
Posts: 25
Joined: 22. October 2008 21:02

Re: How do you change the portal page title

Post by dv-design »

I know i have been asking alot of questions, but its only because i care. So, when i find the answer to my own question i intend on comming here to provide the answer in case others have the same concerns.

I figured out how to change the title of the portal page.

open portal.php

Find

Code: Select all

page_header($user->lang['PORTAL']);
Replace with

Code: Select all

page_header('Your title Here');
'Your title Here' can be any text you want for the title. It must be surrounded by single quotes.

This edit will change the title at the top of the browser window, but will not change the name "portal" in your navigation bar.

dragz
Valued Contributor
Posts: 70
Joined: 17. September 2008 17:18

Re: How do you change the portal page title

Post by dragz »

that's great, :D

dragz
Valued Contributor
Posts: 70
Joined: 17. September 2008 17:18

Re: How do you change the portal page title

Post by dragz »

Is there a way to change the word "portal" in the navi bar to "Home"?

Topic author
dv-design
Active Member
Posts: 25
Joined: 22. October 2008 21:02

Re: How do you change the portal page title

Post by dv-design »

dragz wrote:Is there a way to change the word "portal" in the navi bar to "Home"?
Good question, afraid i have only a partial answer. When i was playing with this i accidently changed that, but it affects both the title and the title in navi bar.

Find

Code: Select all

page_header($user->lang['PORTAL']);
Edit to

Code: Select all

page_header($user->lang['Your Stuff Here']);
'Your Stuff Here' should be changed to whatever you want both the page title and the navi title to be. If the title you want for your page is short, this will work fine...however if your like me and wanted a long page title, it will make your navi bar the same text, too long, and wont look good.

Im not sure how to independantly change both your navi title and the page title.

Blind Dragon
Active Member
Posts: 7
Joined: 26. January 2009 04:09
phpBB.com User: Blind Dragon

Re: How do you change the portal page title

Post by Blind Dragon »

hmm, I would think that you could edit (to change independently):

/language/en/mods/lang_portal.php

Find:

Code: Select all

	'PORTAL'				=> 'Portal',
Replace with:

Code: Select all

	'PORTAL'				=> 'Your title here',
Locked

Return to “board3 Portal 1.0.x - English Support”