Webmastersite.net
Register Log In

Toplist
Link toplist for category and link type

Comments on Toplist

azteca
Forum Regular

Usergroup: Customer
Joined: Oct 18, 2003

Total Topics: 32
Total Comments: 114
azteca
Posted May 09, 2008 - 9:34 AM:

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

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

Total Topics: 61
Total Comments: 7868
Paul
Posted May 09, 2008 - 1:38 PM:

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: 32
Total Comments: 114
azteca
Posted May 09, 2008 - 2:09 PM:

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
developer

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

Total Topics: 61
Total Comments: 7868
Paul
Posted May 10, 2008 - 2:53 PM:

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: 32
Total Comments: 114
azteca
Posted May 10, 2008 - 5:42 PM:

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
azteca
Forum Regular

Usergroup: Customer
Joined: Oct 18, 2003

Total Topics: 32
Total Comments: 114
azteca
Posted May 11, 2008 - 1:39 PM:

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
developer

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

Total Topics: 61
Total Comments: 7868
Paul
Posted May 12, 2008 - 12:04 PM:

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: 32
Total Comments: 114
azteca
Posted May 12, 2008 - 7:33 PM:

Thanks Paul. worked like a champ. wink

Liz

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.