Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website Design Forum


You are currently viewing our Website Design Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Is this possible? (automated browser title)
Old 09-28-2007, 04:32 PM Is this possible? (automated browser title)
Junior Talker

Posts: 3
Trades: 0
Hi,
Something that would be really useful for a new project im working on would be to have automated browser titles using some php code in the <title> tags.
The only way I can think of doing this is by having the php code read the url im using for navigation, e.g. /windows/atari2600/ and use that data, edit it and have it display as 'Windows > Atari 2600'
Has this kind of thing been done before? are there any other common ways of doing this? Also are there any tutorials around?
Thanks!
__________________

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE
Mosqwik is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 09-28-2007, 10:14 PM
dadofgage's Avatar
Extreme Talker

Posts: 224
Trades: 0
Quote:
Originally Posted by Mosqwik View Post
Hi,
Something that would be really useful for a new project im working on would be to have automated browser titles using some php code in the <title> tags.
The only way I can think of doing this is by having the php code read the url im using for navigation, e.g. /windows/atari2600/ and use that data, edit it and have it display as 'Windows > Atari 2600'
Has this kind of thing been done before? are there any other common ways of doing this? Also are there any tutorials around?
Thanks!


Sure it is possible.

It honestly depends on the URL that you are trying to interpret.

In the case you gave above, you can pull those two words out and then create the custom title.

As far as the php code that you need to do this:

$_SERVER['REQUEST_URI'] - will pull the current URL

explode("/", $url) - this would put the different parts of the URL (windows, atari2600) into an array

Of course, there are going to be more than 1 way to accomplish this same thing, but do a quick google search for finding url with php and you can see some examples of what other people have done.
__________________

Please login or register to view this content. Registration is FREE



Please login or register to view this content. Registration is FREE
dadofgage is offline
Reply With Quote
View Public Profile Visit dadofgage's homepage!
 
Reply     « Reply to Is this possible? (automated browser title)
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.10718 seconds with 12 queries