Forum Moderators: coopster
$en['keywords'] .= ', '.site_name.((int)e_cat!= 0? ', '.$ec_line[c_keywords].', '.$ec_line[c_name] : '');
if (substr($en['keywords'],0,2) == ', ') $en['keywords'] = substr($en['keywords'],2);
if (substr($en['description'],0,2) == ', ') $en['description'] = substr($en['description'],2);
define('keywords',$en['keywords']);
You can see the 'site_name' part which i believe adds my site name to the keywords. Now, my site name is irrelevant and I dont want it to appear. I tried deleting bits n bobs but i am just getting server errors. I dont do programming so you'll have to bear with me.
Can anyone suggest how I might remove the 'site_name' include without killing the site each time.
TIA
Ska
$en['keywords'] .= ((int)e_cat!= 0? (', ' . $ec_line[c_keywords] . ', ' . $ec_line[c_name]) : '');
Should work (no need for the first comma, and I've bracketed the first expression set in the "?" operator to make it easier to see what's going on.