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.

HTML Forum


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



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Site Description question?
Old 09-05-2005, 01:32 PM Site Description question?
IslandNE's Avatar
Average Talker

Posts: 29
Location: Los Angeles,CA
Trades: 0
Many websites use descriptions and keywords on their website to help search engines crawl their site. I was wonderign if anybody knew how to make your keywords and descriptions match the content of your site.

For example: One page of your web site has the words "increase your hits and make millions" and than another page you have on your site says "Shaquille O'Neal gets traded from the Los Angeles Lakers to the Miami Heat". How would you get those things to show in your description and keywords without actually having to edit each pages description and keywords.

I use PHP, so if in my main PHP file I put the description as "Webmaster Talk is a Great Resource" than that will show up on all my other pages. How would I make it so the description wil show what is actually on that page?

Does anybody know how to do this?
IslandNE is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 09-05-2005, 02:23 PM
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,383
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Quote:
if anybody knew how to make your keywords and descriptions match the content of your site.
You write them to suit.

I for one don't understand exactly what you are asking here. You seem to be talking in circles.

Or are you saying you use a CMS and the meta descriptions are all the samme ?
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 09-05-2005, 02:52 PM
IslandNE's Avatar
Average Talker

Posts: 29
Location: Los Angeles,CA
Trades: 0
like I'm saying the exact same words that appear on my webpage appear in my description - and I want it done automatically.

Here for example look at this. Go to different pages of Webmaster-Talk. As you go to different pages the title and the description of the page change. If you go to the Website Review and Suggestions forum than on the top bar it says "Webmaster-Talk.com - Website Review and Suggestions" and if you go to the HTML, DHTML and CSS" forum it says "Webmaster-Talk.com - HTML, DHTML and CSS".

How would you do that?
IslandNE is offline
Reply With Quote
View Public Profile
 
Old 09-05-2005, 04:22 PM
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,383
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
kerchink as the penny drops

find the <title> </title> tags in the page and change the text between them
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 09-05-2005, 04:31 PM
Harvey's Avatar
Super Spam Talker

Posts: 901
Name: Harvey C
Location: Brighton, UK
Trades: 0
Like any other part of your page, you can whack variables into meta tags, too. You need to define the keywords/titles you'd like as variables in the file you want. So, for "Red widgets"...

At the top of your PHP red_widgets.php file:

PHP Code:
<? $keyword "Red widgets"?>
<?php 
include('header.inc.php'); ?>
At the beginning of header.inc.php:

PHP Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><? if ($title) { echo $title;} else { echo "Widgets.co.uk"; } ?></title>
<meta name="description" content="<? if ($description) {echo $description; } else { ?>Get your widgets here... <? ?>" />
<meta name="keywords" content="<? echo $keyword?>">
</head>
As you can see, your red_widgets.php defines the keywords, description etc. Then, it tells the header to actually output these... make them actually do something. Take a look at the above code, and you'll see that you can also set the title & description to be default if they're left blank.

Of course, next thing is to set the variables... your way. I'll let you find a way to do that, but I hope this is a starting point
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
Harvey is offline
Reply With Quote
View Public Profile
 
Old 09-06-2005, 12:23 AM
Junior Talker

Posts: 4
Trades: 0
Hi there Island

See that you are from CA. Is IslandNE reference to G.I. Nebraska? If so, I am just down the road in Wood River.


Anyway, I took interest in your post b'cause I am looking into the meta tag issue myself. Interestingly, I came across this site http://searchenginewatch.com/webmast...le.php/2167931
earlier today that you might find of interest. You are specifically seeking info. on the PHP angle but I found this material noteworthy.

-M.

Last edited by majhnsn; 09-06-2005 at 12:37 AM..
majhnsn is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Site Description question?
 

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.64472 seconds with 12 queries