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>
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.
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.
Comments on Toplist
Forum Regular
Usergroup: Customer
Joined: Oct 18, 2003
Total Topics: 32
Total Comments: 114
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
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Looks right except for the space in {CATID} (word wrapping?), if your type is really named sponsored.
Forum Regular
Usergroup: Customer
Joined: Oct 18, 2003
Total Topics: 32
Total Comments: 114
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
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
What exactly are you seeing, then? In what way doesn't it work? Do you have another toplist of the same number?
Forum Regular
Usergroup: Customer
Joined: Oct 18, 2003
Total Topics: 32
Total Comments: 114
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
Forum Regular
Usergroup: Customer
Joined: Oct 18, 2003
Total Topics: 32
Total Comments: 114
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
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
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.
Forum Regular
Usergroup: Customer
Joined: Oct 18, 2003
Total Topics: 32
Total Comments: 114
Thanks Paul. worked like a champ.
Liz