Author Topic: [MOD] Cat name in clickstream->to the page# where image i  (Read 63230 times)

0 Members and 1 Guest are viewing this topic.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] Cat name in clickstream->to the page# where image i
« Reply #30 on: June 21, 2006, 08:24:05 AM »
You must have installed two versions of Step 2.2
You should use only one of them.

P.S. I've updated original post and added color to these steps, should be less confusing now :)
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline bunelul

  • Newbie
  • *
  • Posts: 33
    • View Profile
Re: [MOD] Cat name in clickstream->to the page# where image i
« Reply #31 on: June 21, 2006, 08:51:05 AM »
You must have installed two versions of Step 2.2
You should use only one of them.

P.S. I've updated original post and added color to these steps, should be less confusing now :)

Thanks for fast replay, Vano

Just want to let you know i`ve reversed to backup and installed again, now it printed on the page (clickstream) page 2 / page 2 with same in the url.
Now, for a while i`ve decided not to use this MOD.

Thank you.

Offline Ch*yeuk

  • Newbie
  • *
  • Posts: 27
    • View Profile
Re: [MOD] Cat name in clickstream->to the page# where image i
« Reply #32 on: July 23, 2006, 10:25:54 PM »
Just what I was looking for! Excellent =D I found the clickstream page thing annoying too. I prefer the first method though. I tried the second one and it just didn't.. look that good heh.

Offline idijotaz

  • Jr. Member
  • **
  • Posts: 79
    • View Profile
    • CLON Entertainment
Re: [MOD] Cat name in clickstream->to the page# where image i
« Reply #33 on: July 24, 2006, 08:06:59 AM »
wow thats really nice mod  :)

Offline masterred

  • Sr. Member
  • ****
  • Posts: 494
    • View Profile
Re: [MOD] Cat name in clickstream->to the page# where image i
« Reply #34 on: February 06, 2008, 08:55:18 PM »
hi

show me one error in details.php line 176

Code: [Select]
$cur_page = ceil((array_search($image_id, $image_id_cache) + 1) / $perpage);
this is the error message

Quote
Warning: array_search() [function.array-search]: Wrong datatype for second argument in C:\AppServ\www\encanto\details.php on line 176

used MySQL 5.0.27
Apache/2.2.21 (Win32)
PHP/5.3.5
Mysql Version: 5.5.19
4images Version: 1.7.?



Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [MOD] Cat name in clickstream->to the page# where image i
« Reply #35 on: February 07, 2008, 02:12:16 AM »
Is no mySQL error. Is PHP error. What PHP version you use ?
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline masterred

  • Sr. Member
  • ****
  • Posts: 494
    • View Profile
Re: [MOD] Cat name in clickstream->to the page# where image i
« Reply #36 on: February 07, 2008, 04:09:24 PM »
hi

used PHP Version 5.2.5

thank
Apache/2.2.21 (Win32)
PHP/5.3.5
Mysql Version: 5.5.19
4images Version: 1.7.?



Offline lkw-modellbau.de

  • Pre-Newbie
  • Posts: 1
    • View Profile
Re: [MOD] Cat name in clickstream->to the page# where image i
« Reply #37 on: March 21, 2008, 11:21:32 PM »
Hallo zusammen,

wollte mal fragen, ob es auch möglich ist einfach unter dem Bild in der Navigationsleite (Bild vorwärts, Bild zurück) in details.php einen Link "zurück zur Übersicht" zu erschaffen, zusätzlich zum Pfad der oben angezeigt wird ? Der sollte dann auf die aktuelle Unterseite gehen von der der Besucher gekommen ist (auch wenn er vorher vll schon 1, 2 Fotos ausgewählt hat). Wenn man im Browser zurück klickt erscheint nämlich immer die Fehlermeldung, dass die Seite nicht mehr aktuell ist..

Vielen Dank für eure Hilfe !!

Offline honda2000

  • 4images Guru
  • *******
  • Posts: 3.263
    • View Profile
    • Wir machen Internet!
Re: [MOD] Cat name in clickstream->to the page# where image i
« Reply #38 on: May 24, 2008, 05:07:54 PM »
erstens würde ich Bild zurück / Bild vor über und unter dem Bild einfügen

...und außerdem den Clickstream in die Tabelle einfügen
dann kommst du ja automatisch immer in die jeweilige Kategorie/Unterkategorie (die wird ja im Clickstream angezeigt) oder eben sogar noch mehr Ebenen höher, ganz nach belieben

in details.html vor:

Quote
<div align="center">
 {image}

Quote
<table width="100%" border="0" cellspacing="0" cellpadding="1">
                    <tr>
                      <td class="bordercolor">

<table width="100%" border="0" cellspacing="0" cellpadding="3">
<tr>
<td><img src="{template_url}/images/spacer.gif" width="4" height="4" alt="" />{clickstream}</td>
</tr>
</table>
</td>
</tr>

<tr>
<td class="bordercolor">


                        <table width="100%" border="0" cellspacing="0" cellpadding="3">
                          <tr valign="top">
                            <td class="row2"> {if prev_image_name}{lang_prev_image}<br />
                              <b><a href="{prev_image_url}">{prev_image_name}</a></b>
                              <!-- <br /><br /><a href="{prev_image_url}"><img src="{prev_thumb_file}" border="1"></a> -->
                              {endif prev_image_name}&nbsp;</td>
                            <td align="right" class="row2"> &nbsp;{if next_image_name}{lang_next_image}<br />
                              <b><a href="{next_image_url}">{next_image_name}</a></b>
                              <!-- <br /><br /><a href="{next_image_url}"><img src="{next_thumb_file}" border="1"></a> -->
                              {endif next_image_name}</td>
                          </tr>
                        </table>
                      </td>
                    </tr>
                  </table>

einfügen
(kannst du dir einrichten, wie du möchtest)

Offline Crazymodder

  • Jr. Member
  • **
  • Posts: 57
    • View Profile
Re: [MOD] Cat name in clickstream->to the page# where image i
« Reply #39 on: February 15, 2010, 11:27:10 PM »
Hi at first thanks for that great mod...It works nearly perfectly. I have installed the Google friendly urls. Now there is a problem if i use the orginal code.
 in functions.php i change the code to:

Code: [Select]
  if ($page > 1){
    $path = $path.$config['category_separator']."<a href=\"".$cat_url."&amp;page=".$page."\" class=\"clickstream\">Seite ".$page."</a>";

no it works but the format is:
categories.php?cat_id=1&page=2 and not k_catname_1.html?page=2

i know i have to use:
.$site_sess->url but if i do this the url categories.php?cat_id=1&page=2 looks so: k_1.2.

I hope someone have an idea;) thanks

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] Cat name in clickstream->to the page# where image i
« Reply #40 on: February 16, 2010, 12:51:22 AM »
Which exactly google friendly url are you referring to?
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Crazymodder

  • Jr. Member
  • **
  • Posts: 57
    • View Profile

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] Cat name in clickstream->to the page# where image i
« Reply #42 on: February 16, 2010, 03:59:46 PM »
Did you actually try use 2.2b version without any extra modifications? it should work just fine...
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Crazymodder

  • Jr. Member
  • **
  • Posts: 57
    • View Profile
Re: [MOD] Cat name in clickstream->to the page# where image i
« Reply #43 on: February 16, 2010, 05:28:57 PM »
Yes i have try 2.2b...But there the url looks like this:
k1.2.html
and thats wrong my functions.php look so:

Code: [Select]
function get_category_path($cat_id = 0, $detail_path = 0, $page = 0) {
  global $site_sess, $config, $cat_cache, $url;
  $parent_id = 1;
  while ($parent_id) {
    if (!isset($cat_cache[$cat_id]['cat_parent_id'])) {
      return false;
    }
    $parent_id = $cat_cache[$cat_id]['cat_parent_id'];

    if (empty($path)) {
      if ($detail_path) {
        $cat_url = ROOT_PATH."categories.php?".URL_CAT_ID."=".$cat_id;
        if (preg_match("/".URL_PAGE."=([0-9]+)/", $url, $regs)) {
          if (!empty($regs[1]) && $regs[1] != 1) {
            $cat_url .= "&amp;".URL_PAGE."=".$regs[1];
          }
        }
        $path = "<a href=\"".$site_sess->url($cat_url)."\" class=\"clickstream\">".format_text($cat_cache[$cat_id]['cat_name'], 2)."</a>";
      }
      else  {
        $path = format_text($cat_cache[$cat_id]['cat_name'], 2);
      }
    }
    else {
      $path = "<a href=\"".$site_sess->url(ROOT_PATH."categories.php?".URL_CAT_ID."=".$cat_id)."\" class=\"clickstream\">".format_text($cat_cache[$cat_id]['cat_name'], 2)."</a>".$config['category_separator'].$path;
    }
    $cat_id = $parent_id;
  } // end while
  if ($page > 1){
    $path = $path.$config['category_separator']."<a href=\"".$site_sess->url($cat_url."&amp;".URL_PAGE."=".$page)."\" class=\"clickstream\">page ".$page."</a>";
  }
  return $path;
}

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] Cat name in clickstream->to the page# where image i
« Reply #44 on: February 17, 2010, 06:33:31 AM »
Sorry, it's a bug in the mod you've mentioned. Perhaps the author of that mod can assist you or this already was covered in the replies of that mod somewhere...
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)