WebmasterSite.net: PHP scripts to enable your creativity
WSN Links PHP Directory Software
PHP Scripts Webmaster Links Support Forums

Register | Forgot Password

TopList Not Displaying Aliased Links
TopList Not Displaying Aliased Links

Version: 4.0.3
printPrint


TopList Not Displaying Aliased Links
Agent
Member

Usergroup: Customer
Joined: Oct 27, 2006
Total Topics: 6
Total Posts: 25
Posted 11/04/06 - 11:32 AM:
quote post
#1
I've been scratching my head over this for two days, it's really holding up my project and I cannot find any reason for the behavior.

I have a toplist that displays 50 links in each category. However, the toplist will not display any links that have been aliased to the folder. It's really strange because the files are in the category, they show up fine in the listing and looking at their catid is correct but they will not display in the toplist.

Example, there are 10 regular links in my test folder, the folder is a 2nd level deep folder and has ONE aliased link to make 11 total files, this toplist will display all 10 regular files but not the aliased file.

Here is the code.


<CONFIG>links,hits;votes,50,descending;descending,catid=[CATID] or parentids LIKE '%|||[CATID]|||%'</CONFIG>


Apparently this forum is scraping and processing the the CATID code and replacing with the forum category number, so I'll change for clarity and wrap with brackets []..

All help is much appreciated ..


Edited by Agent on 11/04/06 - 11:38 AM
Agent
Member

Usergroup: Customer
Joined: Oct 27, 2006
Total Topics: 6
Total Posts: 25
Posted 11/04/06 - 01:55 PM:
quote post
#2
Ok, well I see why this is happening ..

In the templatefunctions is " $condition .= ' AND alias=0';"

If I take that out, the alias displays fine but now how to prevent the alias from displaying twice? There are now duplicate displays in the parent lists.. Duplicate checking ..

Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 57
Total Posts: 6316
Posted 11/06/06 - 04:40 PM:
quote post
#3
Got the same question by email a few days ago. 4.0.5 will have an extra toplist term where you can set whether the particular toplist should show aliases.

"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founder of Red Hat
Agent
Member

Usergroup: Customer
Joined: Oct 27, 2006
Total Topics: 6
Total Posts: 25
Posted 11/06/06 - 04:55 PM:
quote post
#4
Will it prevent duplicate links in the toplist?
Search thread for
Download thread as


You don't have permission to post.

Please login or register.

   
 
© 2008 Paul Knierim. All rights reserved.