Here's what I did.
It required updating nearly all the top-level 4images .php files. But I'm now able to see the clickstream in the page titles of my visitor tracking and statistics script output. As an example, I'm only going to show details.php:
//-----------------------------------------------------
//---Clickstream---------------------------------------
//-----------------------------------------------------
$clickstream = "<span class=\"clickstream\"><a href=\"".$site_sess->url(ROOT_PATH."index.php")."\" class=\"clickstream\">".$lang['home']."</a>".$config['category_separator'];
$clickstream_nohtml = $config['category_separator'].$lang['home'].$config['category_separator']; // <--- page title clickstream
if ($mode == "lightbox" && $in_mode) {
$page_url = "";
if (preg_match("/".URL_PAGE."=([0-9]+)/", $url, $regs)) {
if (!empty($regs[1]) && $regs[1] != 1) {
$page_url = "?".URL_PAGE."=".$regs[1];
}
}
$clickstream .= "<a href=\"".$site_sess->url(ROOT_PATH."lightbox.php".$page_url)."\" class=\"clickstream\">".$lang['lightbox']."</a>".$config
['category_separator'];
$clickstream_nohtml = $config['category_separator'].$lang['lightbox'].$config['category_separator']; // <--- page title clickstream
}
elseif ($mode == "search" && $in_mode) {
$page_url = "";
if (preg_match("/".URL_PAGE."=([0-9]+)/", $url, $regs)) {
if (!empty($regs[1]) && $regs[1] != 1) {
$page_url = "&".URL_PAGE."=".$regs[1];
}
}
$clickstream .= "<a href=\"".$site_sess->url(ROOT_PATH."search.php?show_result=1".$page_url)."\" class=\"clickstream\">".$lang['search']."</a
>".$config['category_separator'];
$clickstream_nohtml = $config['category_separator'].$lang['search'].$config['category_separator']; // <--- page title clickstream
}
else {
$clickstream .= get_category_path($cat_id, 1).$config['category_separator'];
$clickstream_nohtml = $config['category_separator'].get_category_path_nohtml($cat_id).$config['category_separator']; // <--- page title clickstream
}
$clickstream .= $image_name."</span>";
$clickstream_nohtml .= $image_name; // <--- page title clickstream
//-----------------------------------------------------
//--- Print Out ---------------------------------------
//-----------------------------------------------------
$site_template->register_vars(array(
"msg" => $msg,
"clickstream" => $clickstream,
"clickstream_nohtml" => $clickstream_nohtml, // <--- page title clickstream
"lang_category" => $lang['category'],
"lang_added_by" => $lang['added_by'],
"lang_description" => $lang['description'],
"lang_keywords" => $lang['keywords'],
"lang_date" => $lang['date'],
"lang_hits" => $lang['hits'],
"lang_downloads" => $lang['downloads'],
"lang_rating" => $lang['rating'],
"lang_votes" => $lang['votes'],
"lang_author" => $lang['author'],
"lang_comment" => $lang['comment'],
"lang_prev_image" => $lang['prev_image'],
"lang_next_image" => $lang['next_image'],
"lang_file_size" => $lang['file_size']
));
This allows me to use:
<title>{site_name} {clickstream_nohtml}</title>
in my header.html template.