Previous Thread
Next Thread
Print Thread
Hop To
#216562 08/21/2008 1:07 PM
Joined: Aug 2006
Posts: 45
H
newbie
newbie
H Offline
Joined: Aug 2006
Posts: 45
Where is the code that sets the title of each page?

I'd like to modify it slightly so that every page has a unique name. Possible?

Thanks.

Helice #216659 08/29/2008 5:03 PM
Joined: Aug 2006
Posts: 45
H
newbie
newbie
H Offline
Joined: Aug 2006
Posts: 45
Does anyone know where the code is that sets the page title?

Helice #216669 08/30/2008 5:20 PM
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
The page title is actually a bit complex, so you'll really need to know what you're doing, especially if you want to have something unique per page. Anyways, in the latest version it's in the libs/html.inc.php script. It's the inputTitle variable, you can search for that and see the code for it.

There is also a bit of code in the template itself, header.tpl.

Rick #216672 08/30/2008 7:05 PM
Joined: Aug 2006
Posts: 45
H
newbie
newbie
H Offline
Joined: Aug 2006
Posts: 45
Thanks Rick, for the answer. I want to see if I can do something about making page titles unique. I have a few hundred thousand posts on my boards, none of which I am willing to delete, and Google complains that too many of my site's pages have "Duplicate Titles", and therefore my site's standing is being penalized.

I want to try to alter each page title slightly, even if it just relects "Page X of X", or time of day, or something to make each page title in a thread unique when a search engine views it so as not to have the appearance of duplicate content, which it certainly isn't.

If you ever plan to address this in a future release, I'll hold off fiddling with it myself, but otherwise I'll try to insert a little "unique-ifier" in there somewhere.

Helice #227189 06/15/2009 2:56 PM
Joined: May 2008
Posts: 753
Likes: 1
Old Hand
Old Hand
Joined: May 2008
Posts: 753
Likes: 1
was there every any progress on this?

my google stats gives me crap about titles all being the same as well


"No matter where you go, there you are."
"If you can't do something smart, Do something right"
"There are three kinds of people in the world, those who can count, and those who can't"
Bad Frog #228593 08/23/2009 9:15 PM
Joined: May 2008
Posts: 753
Likes: 1
Old Hand
Old Hand
Joined: May 2008
Posts: 753
Likes: 1
just wondering whatever became of this.....


"No matter where you go, there you are."
"If you can't do something smart, Do something right"
"There are three kinds of people in the world, those who can count, and those who can't"

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
spam issues
by ECNet - 03/19/2024 11:45 PM
Who's Online Now
1 members (Nightcrawler), 963 guests, and 210 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)