Cross script Top List Issue
Posted Mar 14, 2013 - 10:37 AM:
Hi,
When using cross script top lists it seems impossible to ignore aliased links...
For example, in wsn links I create a now listing and show it in two categories.
In wsn forum I show a list of latest links in the sidebar using a cross script toplist. The problem is this toplist will show the link twice, once for each category.
if (strstr(','.$selectfields[$loopthis].',', ',alias,') && !$showaliases[$loopthis] && $switches['aliases']) $condition .= ' AND alias=0';
looks like it shouldn't show them as long as the table has an alias field and you haven't told the toplist to show aliases. Testing... displayed a toplist of recent articles in a WSN KB on a WSN Links site, aliased one of the listings showing in that toplist to a secondary category, cleared the cache, checked again and it still only shows once. I need to see your actual toplist to comment usefully. Mine is
<!-- BEGIN TOPLIST --> <CONFIG>wsnkb_links,time,5,descending</CONFIG> {NUMBER}. <a href="{TRACKLINKURL}" class="newlinks" {EXTERNALLINKS}>{LINKTITLE}</a> {LINKADMIN} <br /> <!-- END TOPLIST -->
Comments on Cross script Top List Issue
Forum Regular
Usergroup: Customer
Joined: Nov 27, 2006
Total Topics: 187
Total Comments: 465
Posted Mar 14, 2013 - 10:37 AM:
Hi,
When using cross script top lists it seems impossible to ignore aliased links...
For example, in wsn links I create a now listing and show it in two categories.
In wsn forum I show a list of latest links in the sidebar using a cross script toplist. The problem is this toplist will show the link twice, once for each category.
How can I avoid this?
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Hmm, the code
looks like it shouldn't show them as long as the table has an alias field and you haven't told the toplist to show aliases. Testing... displayed a toplist of recent articles in a WSN KB on a WSN Links site, aliased one of the listings showing in that toplist to a secondary category, cleared the cache, checked again and it still only shows once. I need to see your actual toplist to comment usefully. Mine is
Forum Regular
Usergroup: Customer
Joined: Nov 27, 2006
Total Topics: 187
Total Comments: 465
I have sent you a site inspection request.