Webmastersite.net
Register Log In

Related Links

Comments on Related Links

zippo
Forum Regular

Usergroup: Customer
Joined: Jan 11, 2006

Total Topics: 48
Total Comments: 166
zippo
Posted Apr 22, 2006 - 11:01 AM:

I'm not sure if this is a bug or intended operation..

Link 1 with Related = Link 2

If Link 2 is hidden or suspended (and maybe 'soft' deleted, didn't check this) it will remain listed in Link 1 details as a related link.

Hard deletion will remove Link 2 from being listed as related in Link 1 details.

While not a big deal, IMHO it would be more proper if in the above example, regenerating would hide Link 2 from Link 1 details/related when Link 1 is hidden, suspended -- any time Link 1 isn't viewable in the normal listing.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Apr 23, 2006 - 3:34 AM:

Doesn't need a regeneration, there's just no check there at display time. In link.php
$relatedtemp .= linkreplacements($temp, $alink);
should become
if ($alink->hidden == 0 && $alink->deleted == 0) $relatedtemp .= linkreplacements($temp, $alink);
zippo
Forum Regular

Usergroup: Customer
Joined: Jan 11, 2006

Total Topics: 48
Total Comments: 166
zippo
Posted Apr 23, 2006 - 3:04 PM:

Okay. I just have gotten in the habit of 'regerating all' after I fiddle with most things I've not experimented much with.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.