WebsiteBaker Community Forum

WebsiteBaker Support (2.8.x) => Droplets & Snippets => Topic started by: Argos on March 09, 2010, 12:28:58 PM

Title: Anytopics doesn't show link to current topic
Post by: Argos 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?
Title: Re: Anytopics doesn't show link to current topic
Post by: chio 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?
Title: Re: Anytopics doesn't show link to current topic
Post by: Argos 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.
Title: Re: Anytopics doesn't show link to current topic
Post by: Argos on March 09, 2010, 01:06:50 PM
It would be nice if the current link was inactive though... Is that possible?
Title: Re: Anytopics doesn't show link to current topic
Post by: chio 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.
Title: Re: Anytopics doesn't show link to current topic
Post by: Argos on March 09, 2010, 01:20:53 PM
Nice, I'll try that later, my server is currently offline  :cry:
Thanks!
Title: Re: Anytopics doesn't show link to current topic
Post by: Argos 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.