c q
10-08-2002, 06:48 PM
hii!!
I made some templates that look like this....(code below)
ythese shoewd up on google alright, but just the links with no accompanying description text like the other sites....sort of made me believe that for some reason the structure of my template is not search engine frendly.
comments ? suggestions ?????
(forget the meta tags for the moment...):p
<?php
session_start();
?>
<?php
if ( ! isset($txtSize) )
{
session_register( "txtSize" );
$txtSize = "small";
//see footer.php where users can
//choose their txt size.
//and the appropriate css is loaded.
}
?>
<html>
<head>
<!---stylesheet for colors----->
<?php
echo ("<style>");
include ("cbit_main.css");
echo ("</style>");
?>
<!---stylesheet for txt sizes--->
<?php
if ( isset ($txtSize) )
{
print ("<LINK REL=StyleSheet HREF=cbit_$txtSize.css TYPE=text/css MEDIA=screen>");
}
else { //ifff for some reason the cookie is not set
print ("<LINK REL=StyleSheet HREF=cbit_small.css TYPE=text/css MEDIA=screen>");
}
?>
</head>
<BODY>
<table width=780 cellpadding=0 cellspacing=0 border=0 align="center">
<tr>
<!---row1 col1---->
<td valign=top colspan=3>
<img src="img/cbit.gif" width="778" height="60">
</td>
</tr>
<tr>
<!---row2 col1--->
<td valign=top background="img/bg_menu.gif" width="136" style="background-repeat:repeat-y;">
<!---menu--->
<?php
include("menu.php");
?>
<br>
<img src="img/spacer.gif" width=136 height=1>
</td>
<!---row2 col2---><td valign=top width="574">
<!---main page contents--->
<br><br>
<table width=85% cellpadding=0 cellspacing=0 align=center>
<tr>
<td valign=top>
<?php
if ( file_exists( $display ) ) {
include($display);
} else
include ("note.php");
?>
</td>
</tr>
</table>
<!--end of main page contents-->
<!---row2 col3--->
<td valign="top" width="150">
<img src="img/pic_main.jpg" width="150" height="200"><br>
<!--google search---><B><span style="COLOR: #1181d8;">SEARCH</span></b><br>
<form action=http://www.google.com method=POST>
<input type=text size=12 value="Search CBIT">
<input type="image" src="img/go.gif" width=24 height=18>
<br><img src=img/google.gif width=60 height=40 align=middle ALT="Powered by Google">
</form>
<!---end google search---->
</td>
</tr>
<tr>
<!---row3 col1--->
<td colspan=3 width=100%>
<!---begin footer--->
<?php
include ("footer.php");
?>
<!----end of footer-->
</td>
</tr>
</table>
<?php
print ("<title>$pageTitle</title>");
?>
</body>
</html>
p.s ::: $pageTitle and $display will come in with the query string.
I made some templates that look like this....(code below)
ythese shoewd up on google alright, but just the links with no accompanying description text like the other sites....sort of made me believe that for some reason the structure of my template is not search engine frendly.
comments ? suggestions ?????
(forget the meta tags for the moment...):p
<?php
session_start();
?>
<?php
if ( ! isset($txtSize) )
{
session_register( "txtSize" );
$txtSize = "small";
//see footer.php where users can
//choose their txt size.
//and the appropriate css is loaded.
}
?>
<html>
<head>
<!---stylesheet for colors----->
<?php
echo ("<style>");
include ("cbit_main.css");
echo ("</style>");
?>
<!---stylesheet for txt sizes--->
<?php
if ( isset ($txtSize) )
{
print ("<LINK REL=StyleSheet HREF=cbit_$txtSize.css TYPE=text/css MEDIA=screen>");
}
else { //ifff for some reason the cookie is not set
print ("<LINK REL=StyleSheet HREF=cbit_small.css TYPE=text/css MEDIA=screen>");
}
?>
</head>
<BODY>
<table width=780 cellpadding=0 cellspacing=0 border=0 align="center">
<tr>
<!---row1 col1---->
<td valign=top colspan=3>
<img src="img/cbit.gif" width="778" height="60">
</td>
</tr>
<tr>
<!---row2 col1--->
<td valign=top background="img/bg_menu.gif" width="136" style="background-repeat:repeat-y;">
<!---menu--->
<?php
include("menu.php");
?>
<br>
<img src="img/spacer.gif" width=136 height=1>
</td>
<!---row2 col2---><td valign=top width="574">
<!---main page contents--->
<br><br>
<table width=85% cellpadding=0 cellspacing=0 align=center>
<tr>
<td valign=top>
<?php
if ( file_exists( $display ) ) {
include($display);
} else
include ("note.php");
?>
</td>
</tr>
</table>
<!--end of main page contents-->
<!---row2 col3--->
<td valign="top" width="150">
<img src="img/pic_main.jpg" width="150" height="200"><br>
<!--google search---><B><span style="COLOR: #1181d8;">SEARCH</span></b><br>
<form action=http://www.google.com method=POST>
<input type=text size=12 value="Search CBIT">
<input type="image" src="img/go.gif" width=24 height=18>
<br><img src=img/google.gif width=60 height=40 align=middle ALT="Powered by Google">
</form>
<!---end google search---->
</td>
</tr>
<tr>
<!---row3 col1--->
<td colspan=3 width=100%>
<!---begin footer--->
<?php
include ("footer.php");
?>
<!----end of footer-->
</td>
</tr>
</table>
<?php
print ("<title>$pageTitle</title>");
?>
</body>
</html>
p.s ::: $pageTitle and $display will come in with the query string.