Author Topic: Modification of {clickstream}  (Read 3893 times)

0 Members and 1 Guest are viewing this topic.

Offline marod0er

  • Full Member
  • ***
  • Posts: 199
    • View Profile
Modification of {clickstream}
« on: November 23, 2005, 11:44:43 AM »
So, I have

Code: [Select]
//-----------------------------------------------------
//---Clickstream---------------------------------------
//-----------------------------------------------------
$clickstream = "<span class=\"clickstream\"><a href=\"".$site_sess->url(ROOT_PATH."index.php")."\" class=\"clickstream\">Home</a>".$config['category_separator'];

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'];
}
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 = "&amp;".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'];
}
else {
  $clickstream .= get_category_path($cat_id, 1).$config['category_separator'];
}
$clickstream .= $image_name."</span>";

-in my details.php

This look like this on the actual html page:
Home / Category / Image page name

What, in the code above, do I have to remove in order for the clickstream to just display:
Home / Image page name (- Category)

?

Thanks in advance.
Greetz: Lasse

Offline boatman9999

  • Jr. Member
  • **
  • Posts: 50
    • View Profile
Re: Modification of {clickstream}
« Reply #1 on: November 24, 2005, 06:52:05 PM »
Try commenting out the lines as shown:

Code: [Select]
//-----------------------------------------------------
//---Clickstream---------------------------------------
//-----------------------------------------------------
$clickstream = "<span class=\"clickstream\"><a href=\"".$site_sess->url(ROOT_PATH."index.php")."\" class=\"clickstream\">Home</a>".$config['category_separator'];

//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'];
//}
//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 = "&amp;".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'];
//}
//else {
//  $clickstream .= get_category_path($cat_id, 1).$config['category_separator'];
//}

$clickstream .= $image_name."</span>";

Offline marod0er

  • Full Member
  • ***
  • Posts: 199
    • View Profile
Re: Modification of {clickstream}
« Reply #2 on: November 24, 2005, 08:44:43 PM »
Thanks, that worked.  8)
Greetz: Lasse