Webmastersite.net
Register Log In

Cross script Top List Issue

Comments on Cross script Top List Issue

webflair
Forum Regular

Usergroup: Customer
Joined: Nov 27, 2006

Total Topics: 187
Total Comments: 465
Cross script Top List Issue
Posted Mar 14, 2013 - 12:37 PM:

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?
Paul
developer

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

Total Topics: 61
Total Comments: 7867
Paul
Posted Mar 14, 2013 - 1:24 PM:

Hmm, the code
   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 -->
webflair
Forum Regular

Usergroup: Customer
Joined: Nov 27, 2006

Total Topics: 187
Total Comments: 465
Posted Mar 14, 2013 - 3:05 PM:

I have sent you a site inspection request.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



Sorry, you don't have permission to post posts. Log in, or register if you haven't yet.