Adding keywords to ready made site
Posted: Wed Aug 31, 2011 1:21 pm
Please understnad that I know nothing about coding or building a web page. I am doing everything from trial and error. I attempted to post the code below as requested in the instuctions but can't seem to get the same results as the example.
I purchased four sites which were ready made and I simply had to add Google and Amazon info. I don't seem to begetting the traffic I should and wanted to add new keywords. When I try to do that I get error messages about unexpected "[]" and ",". If I leave them off I can actually add the keywords but then my page changes from reading "HDTV News" to "HDTV TV LCD Plasma Samsung News" or whatever the keywords are. That's the closest I've come to solving it. The config.php file is where everything seems to originate and it is written as :
On the main page there is this:
Can someone help me understand how to add keywords? Thank you in advance.
I purchased four sites which were ready made and I simply had to add Google and Amazon info. I don't seem to begetting the traffic I should and wanted to add new keywords. When I try to do that I get error messages about unexpected "[]" and ",". If I leave them off I can actually add the keywords but then my page changes from reading "HDTV News" to "HDTV TV LCD Plasma Samsung News" or whatever the keywords are. That's the closest I've come to solving it. The config.php file is where everything seems to originate and it is written as :
Code: Select all
// Configuration of your local installation and personal site definitions
$templatefoldername="includes"; //folder where templates are installed relative to the DocumentRoot.
$mysitename = "HDTV"; //name for your site
$mainkeyword = "hdtv"; //primary site keyword
//Code: Select all
if(isset($keyword)) {
$keyword_dash = str_replace(" ", "-", $keyword);
$keyword_ul = str_replace("-", "_", $keyword_dash);
$keyword_lowercase = str_replace("-", " ", $keyword_dash);
$keyword = ucwords($keyword_lowercase);
$keyword_feed = str_replace("-", "+", $keyword_dash);
}