Thanks for the great mod... I simply added a description in the header...
Open a copy of /themes/default/header.html
Save this copy as /themes/default/detail_header.html
Edit your new detail_header.html to include the following lines within the <head></head> section:
Code:
<meta name="keywords" content="<%keywords%>">
<meta name="description" content="<%short_desc%>">
<meta name="classification" content="<%classification%>">
Open detail.php and look around line 26 in 3.2
Code:
include("application.php");
session_start();
$conn = ConnectDB();
// MOD START --> INCLUDE KEYWORDS & DESCRIPTION IN PAGE HEAD
// $query = "select title, suspended from idx_link where link_id = '$id'";
// $result = $conn->Execute($query);
// $link_title = $result->Fields("title");
// $suspended = $result->Fields("suspended");
$query = "select title, keywords, category_id, description, suspended from idx_link where link_id = '$id'";
$result = $conn->Execute($query);
$link_title = $result->Fields("title");
$link_description = $result->Fields("description");
$suspended = $result->Fields("suspended");
$link_keywords = $result->Fields("keywords");
$catnumber = $result->Fields("category_id");
$query = "select name from idx_category where category_id = $catnumber";
$result = $conn->Execute($query);
$link_classification = $result->Fields("name");
// MOD STOP --> INCLUDE KEYWORDS & DESCRIPTION IN PAGE HEAD
(Make sure you get all of those commas inserted in the $query = "select title, keywords, category_id... line above!
Next at around line 166
Code:
// MOD START --> INCLUDE KEYWORDS & DESCRIPTION IN PAGE HEAD
//$title = str_replace("<%link_title%>",$link_title,$title);
//DisplayTemplate($theme_path."header.html","\$title,\$cat");
$title = str_replace("<%link_title%>",$link_title,$title);
$keywords = $link_keywords;
$classification = $link_classification;
$short_desc = trim(substr(strip_tags($link_description),0,150)) . "...";
DisplayTemplate($theme_path."detail_header.html","\$title,\$cat,\$keywords,\$classification,\$short_desc");
// MOD STOP --> INCLUDE KEYWORDS & DESCRIPTION IN PAGE HEAD
ShowDetailPage();
DisplayTemplate($theme_path."footer.html","\$cat,\$ma");
The 150 in the $short_desc line above sets the number of characters in the description field... change it to your desired length.