WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.6 is now available!


Will it continue with WB? It goes on! | Geht es mit WB weiter? Es geht weiter!
https://forum.websitebaker.org/index.php/topic,32340.msg226702.html#msg226702


The forum email address board@websitebaker.org is working again
https://forum.websitebaker.org/index.php/topic,32358.0.html


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Droplets & Snippets »
  • Anytopics doesn't show link to current topic
  • Print
Pages: [1]   Go Down

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

Argos

  • Guest
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?
Logged

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?
Logged

Argos

  • Guest
Re: Anytopics doesn't show link to current topic
« Reply #2 on: March 09, 2010, 12:43:12 PM »
Quote from: 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?

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.
Logged

Argos

  • Guest
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?
Logged

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.
Logged

Argos

  • Guest
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!
Logged

Argos

  • Guest
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.
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Droplets & Snippets »
  • Anytopics doesn't show link to current topic
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2