Author Topic: Anytopics doesn't show link to current topic  (Read 3256 times)

Offline Argos

  • Posts: 2542
  • Gender: Male
    • Argos Media
Anytopics doesn't show link to current topic
« on: March 09, 2010, 12:28:58 PM »
It seems that Anytopics doesn't show the link to the topic that's currently viewed. So if you have 4 items, and currently are watching one of them, there are only 3 Anytopics links showed, and the link to the current one is invisible. I want to show all of them. Somehow Anytopics "knows" that you are currently wataching a topic, which I find kinda magical in itself. On non-Topics pages, the full Anytopics list is shown!

Example: on http://www.klantinteractie.tv there is an Anytopics block (called "Nieuwste impressies") in the left column, showing links to all topics. But on Topics pages themselves, the link to the current Topic is not there anymore. Try opening a topic on http://www.klantinteractie.tv/pages/impressies.php, and the check the Anytopics block in the left column.

What's going on, and what can I do to show also the currently opened topic?
Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
----------------------------------------------------------------
Please don't request personal support, use the forums!

chio

  • Guest
Re: Anytopics doesn't show link to current topic
« Reply #1 on: March 09, 2010, 12:40:18 PM »
Remove in anytopics/include.php (around line 142):
Code: [Select]
AND topic_id <> '$this_id'"
But: Why should anytopics show a link to a page that is already active?

Offline Argos

  • Posts: 2542
  • Gender: Male
    • Argos Media
Re: Anytopics doesn't show link to current topic
« Reply #2 on: March 09, 2010, 12:43:12 PM »
Remove in anytopics/include.php (around line 142):
Code: [Select]
AND topic_id <> '$this_id'"
But: Why should anytopics show a link to a page that is already active?

Thanks!

Because the block header is "Latest topics", not "Latest topics, without the current one"  :-D
I just don't like the fact that the list changes with each topic page, I think it might be confusing.
Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
----------------------------------------------------------------
Please don't request personal support, use the forums!

Offline Argos

  • Posts: 2542
  • Gender: Male
    • Argos Media
Re: Anytopics doesn't show link to current topic
« Reply #3 on: March 09, 2010, 01:06:50 PM »
It would be nice if the current link was inactive though... Is that possible?
Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
----------------------------------------------------------------
Please don't request personal support, use the forums!

chio

  • Guest
Re: Anytopics doesn't show link to current topic
« Reply #4 on: March 09, 2010, 01:18:36 PM »
Instead of (around line 176):
Code: [Select]
$the_line .= '<a href="'.$topic_link.'">'.$readmore_text.'</a>';use:
Code: [Select]
if ($topicdata['topic_id'] != $this_id) {$the_line .= '<a href="'.$topic_link.'">'.$readmore_text.'</a>';}
untested, should work.

Offline Argos

  • Posts: 2542
  • Gender: Male
    • Argos Media
Re: Anytopics doesn't show link to current topic
« Reply #5 on: March 09, 2010, 01:20:53 PM »
Nice, I'll try that later, my server is currently offline  :cry:
Thanks!
Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
----------------------------------------------------------------
Please don't request personal support, use the forums!

Offline Argos

  • Posts: 2542
  • Gender: Male
    • Argos Media
Re: Anytopics doesn't show link to current topic
« Reply #6 on: March 09, 2010, 03:06:47 PM »
No, doesn't work. But maybe that's because I don't use the Read More link. I use the title as a link.
Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
----------------------------------------------------------------
Please don't request personal support, use the forums!