Welcome, Guest. Please login or register.
Did you miss your activation email?
February 12, 2012, 05:56:50 AM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
149621 Posts in 21098 Topics by 7537 Members
Latest Member: lotte2
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Anytopics doesn't show link to current topic  (Read 626 times)
Argos
Moderator
**
Offline Offline

Posts: 2084


WWW
« 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

Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
WB Showcase: http://www.mywebsitebaker.com/pages/showcase.php?v&category_id=1242&count=30
----------------------------------------------------------------
Please don't request personal support, use the forums!
chio
WebsiteBaker Org e.V.

Offline Offline

Posts: 2264


« Reply #1 on: March 09, 2010, 12:40:18 PM »

Remove in anytopics/include.php (around line 142):
Code:
AND topic_id <> '$this_id'"

But: Why should anytopics show a link to a page that is already active?
Logged

*weg*
Argos
Moderator
**
Offline Offline

Posts: 2084


WWW
« Reply #2 on: March 09, 2010, 12:43:12 PM »

Remove in anytopics/include.php (around line 142):
Code:
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"  grin
I just don't like the fact that the list changes with each topic page, I think it might be confusing.
Logged

Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
WB Showcase: http://www.mywebsitebaker.com/pages/showcase.php?v&category_id=1242&count=30
----------------------------------------------------------------
Please don't request personal support, use the forums!
Argos
Moderator
**
Offline Offline

Posts: 2084


WWW
« 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

Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
WB Showcase: http://www.mywebsitebaker.com/pages/showcase.php?v&category_id=1242&count=30
----------------------------------------------------------------
Please don't request personal support, use the forums!
chio
WebsiteBaker Org e.V.

Offline Offline

Posts: 2264


« Reply #4 on: March 09, 2010, 01:18:36 PM »

Instead of (around line 176):
Code:
$the_line .= '<a href="'.$topic_link.'">'.$readmore_text.'</a>';
use:
Code:
if ($topicdata['topic_id'] != $this_id) {$the_line .= '<a href="'.$topic_link.'">'.$readmore_text.'</a>';}

untested, should work.
Logged

*weg*
Argos
Moderator
**
Offline Offline

Posts: 2084


WWW
« Reply #5 on: March 09, 2010, 01:20:53 PM »

Nice, I'll try that later, my server is currently offline  cry
Thanks!
Logged

Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
WB Showcase: http://www.mywebsitebaker.com/pages/showcase.php?v&category_id=1242&count=30
----------------------------------------------------------------
Please don't request personal support, use the forums!
Argos
Moderator
**
Offline Offline

Posts: 2084


WWW
« 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

Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
WB Showcase: http://www.mywebsitebaker.com/pages/showcase.php?v&category_id=1242&count=30
----------------------------------------------------------------
Please don't request personal support, use the forums!
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!