PDA

View Full Version : Body.php


Anonymous
01-14-2005, 02:39 PM
I think I am missing the obvious with the body.php file!
Other than the tags I am not sure what or where I can edit to take on my site appearance.

Can I put html bewtween the BodyHeader(...) and BodyFooter (....)
Not sure where to include my page html.

Sorry for such a stupid question.
Chris


<?
function BodyHeader($title)
{
?>
<HTML>
<HEAD>
<TITLE><? echo "$title"; ?></TITLE>
<meta name="MSSmartTagsPreventParsing" content="TRUE">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<LINK REL="stylesheet" TYPE="text/css" HREF="/style.css">
<meta name="description" content="Golf Training Aid product reviews submitted by golfers of all skill levels. Add your own golf traing aid review, suggest a golf traing aid for golf equipment review">
<meta name="keywords" content="golf training aids review,golf equipment review,inside approach,swingyde,tempomaster whippy,impact bag,proaim,speed stik">
<meta name="ROBOTS" CONTENT="ALL">
<meta name="robots" CONTENT="follow">
<meta name="resource-type" content="document">
<meta name="revisit-after" content="30 days">
<meta name="distribution" content="Global">
<meta name="language" content="en-us">
<meta http-equiv="pragma" content="no-cache">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<table><tr><td>
<?
}
function BodyFooter()
{
?>
</td></tr></table>
</BODY>
</HTML>
<?
}
?>

imported_Tim Mousel
02-04-2005, 05:53 AM
Hi Chris,

Have you got this figured out yet?

Tim

nordal
02-22-2005, 10:26 PM
Well im also a bit confused with the body.php file.
I have realised that I can add a footer but I still have truble with the title of my review pages. They all have the title "Five Star Review". I would think that the <TITLE><? echo "$title"; ?></TITLE> line in the body php file would change the title to the title of the reviewed item.

Like here: http://www.hobbyreview.com/index2.php?&item_id=2
The item reviewed is "test", which I would like the title to be also, but it says "Five Star Review". Can i change the <? echo "$title"; ?> part so that the tiltle becomes the same as the name of the item that is reviewed?

Thanks in advance!

imported_Tim Mousel
02-23-2005, 07:04 AM
Nordal,

Open index2.php.

Find this line around line 129:

BodyHeader("Five Star Review Demo");

Change it to this:

BodyHeader("$item_name2");

nordal
02-23-2005, 02:20 PM
Yes ok, that makes sense. I will try that. Thanks a lot for the fast responses Tim!