Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Feb 2002
Posts: 950
Hacker
Hacker
Offline
Joined: Feb 2002
Posts: 950
I dont know how many of you used tabbed browsers, but I use Mozilla. And there is nothing worse (well, almost nothing worse) than a line of tabs all marked "Viewing list of forums" - ACK!

I dont know which tab is which. Not to mention that many search engines put more weight on the page title and many metatags.

Therefore, I wanted to make sure my website name was a part of the title.

Find this in ubbt.inc.php (the send_header function):

Code
if (!$debug) { <br />               include("$thispath/templates/$tempstyle/ubbt_header.tmpl"); <br />       }


And add this line ABOVE it:

Code
$inputTitle = "YourSite.Com: $inputTitle";


Presto! Now the tabs show which sites I am looking at (if they all did this, that is) and I get a title specific to my site. Of course you could put whatever you wanted here to touch up your title.

(Just call me The Simple Mods Guy).

Last edited by extremebikini; 02/26/2003 6:15 PM.
Sponsored Links
Joined: Aug 2002
Posts: 218
Member
Member
Offline
Joined: Aug 2002
Posts: 218
[]extremebikini said:

Find this:

Code
if (!$debug) {<br />               include("$thispath/templates/$tempstyle/ubbt_header.tmpl");<br />       }


And add this line ABOVE it:

Code
$inputTitle = "YourSite.Com: $inputTitle";


[/]

Nice but in which file should we search for this?

Joined: Aug 2002
Posts: 218
Member
Member
Offline
Joined: Aug 2002
Posts: 218
Ok for all who do not know its ubbt.inc.php

Joined: Feb 2002
Posts: 950
Hacker
Hacker
Offline
Joined: Feb 2002
Posts: 950
Sorry, just editted that to clarify.

Joined: Mar 2000
Posts: 21,080
Likes: 3
I type like Navaho
I type like Navaho
Joined: Mar 2000
Posts: 21,080
Likes: 3
good one Michael... I might have 10-15 windows open and they all say 'Viewing blah blah blah'


- Allen wavey
- What Drives You?
Sponsored Links
Joined: Aug 2002
Posts: 111
Journeyman
Journeyman
Offline
Joined: Aug 2002
Posts: 111
This is great -- thanks. I do think it will add some search engine appeal to my board.

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Very cool.

Could probably also do:

$inputTitle = "{$config['title']}: $inputTitle";


Then you could edit the sites title in the Config file.

But this is a great idea and should be standard.
Thanks Michael.

Joined: Mar 2000
Posts: 21,080
Likes: 3
I type like Navaho
I type like Navaho
Joined: Mar 2000
Posts: 21,080
Likes: 3
how does it affect the 'who's online' showing where people are? nada?


- Allen wavey
- What Drives You?
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
It shouldn't. The who's online is matched to the online.php language file by the name of the script. (showflat, ubbthreads, postlist etc..)

So I think it'll be just fine.

Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
I have the name of my site in the ubbt_header.tmpl file where $inputTitle is inserted which works just as well and don't need hacking. =]

Sponsored Links
Joined: Feb 2002
Posts: 950
Hacker
Hacker
Offline
Joined: Feb 2002
Posts: 950
So, Allen, how about adding this one here - would make it easier for me to find this when I need it! lol

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Done.

I used this line, so it gets the title from the config file:

$inputTitle = "{$config['title']}: $inputTitle";


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Shock Hosting
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
JAISP
JAISP
PA
Posts: 449
Joined: February 2008
Forum Statistics
Forums63
Topics37,583
Posts293,955
Members13,824
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 2338
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 24
Top Posters
AllenAyres 21,080
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2026 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260108)