logo
WSN Links PHP Directory Software
Features Showcase Reviews Demos Purchase Manual Support
 

Toplist
Link toplist for category and link type

Version: 4.1.42


Toplist
azteca
Forum Regular

Usergroup: Customer
Joined: Oct 18, 2003
Total Topics: 27
Total Posts: 101
Posted 05/09/08 - 07:34 AM:
quote post
#1
I can't seem to get this to work. I want a toplist on my category pages for a certain link type.

This is what I have for config.

<CONFIG>links,rand(),5,ascending,catid={CATID } and type='sponsored'</CONFIG>
or this
<CONFIG>links,rand(),5,ascending,catid={CATID } AND type='sponsored'</CONFIG>

Doesn't work

Thanks
Liz


Edited by azteca on 05/09/08 - 07:41 AM
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 49
Total Posts: 5539
Posted 05/09/08 - 11:38 AM:
quote post
#2
Looks right except for the space in {CATID} (word wrapping?), if your type is really named sponsored.
azteca
Forum Regular

Usergroup: Customer
Joined: Oct 18, 2003
Total Topics: 27
Total Posts: 101
Posted 05/09/08 - 12:09 PM:
quote post
#3
I noticed the space after posting it and removed and it still doesn't work. I have mixed link types to yes in settings.

Liz
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 49
Total Posts: 5539
Posted 05/10/08 - 12:53 PM:
quote post
#4
What exactly are you seeing, then? In what way doesn't it work? Do you have another toplist of the same number?
azteca
Forum Regular

Usergroup: Customer
Joined: Oct 18, 2003
Total Topics: 27
Total Posts: 101
Posted 05/10/08 - 03:42 PM:
quote post
#5
No I don't have another toplist with the same number I checked that. I see nothing and when I view the page source I get this where the toplist is suppose to be.

<!-- END TOPLIST 20 -->

This is my toplist complete code.

<!-- BEGIN TOPLIST 20 -->
<CONFIG>links,rand(),5,ascending,catid={CATID } AND type='sponsored'</CONFIG>
<a href="{TRACKLINKURL}" class="labels" {EXTERNALLINKS}>{LINKTITLE}</a> {LINKADMIN}- {LINKDESCRIPTION}<br />
<!-- END TOPLIST 20 -->

I put this code in the displaylinks.tpl where I want my toplist. Not working and can't figure out why. I dropped the AND type='sponsored' and just used the catid={CATID} and it works fine. I also put just the type='sponsored' with out the catid={CATID} and it worked fine but when I do both with the AND I get nothing.

Liz


Edited by azteca on 05/10/08 - 03:46 PM
azteca
Forum Regular

Usergroup: Customer
Joined: Oct 18, 2003
Total Topics: 27
Total Posts: 101
Posted 05/11/08 - 11:39 AM:
quote post
#6
Ok problem I found the problem. Ok I added some sponsored links but I'm using secondary categories on the links and the links are not showing up in the secondary categories for that link. How can get them to also show in the secondary categories also.

Liz
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 49
Total Posts: 5539
Posted 05/12/08 - 10:04 AM:
quote post
#7
If you want to show aliased items, make that selection (setting it to "yes" when it asks if you want to show aliased items) in the toplist generator.
azteca
Forum Regular

Usergroup: Customer
Joined: Oct 18, 2003
Total Topics: 27
Total Posts: 101
Posted 05/12/08 - 05:33 PM:
quote post
#8
Thanks Paul. worked like a champ. wink

Liz

Search thread for
Download thread as


You don't have permission to post.

Please login or register.

Admin Control Panel

   
Home    |    Features    |    Showcase    |    Reviews    |    Demos    |    Purchase    |    Manual    |    Support
© 2008 Paul Knierim. All rights reserved.