Webmastersite.net
Register Log In

Random Sponsored Links

Comments on Random Sponsored Links

fractalz
Beginner

Usergroup: Customer
Joined: Apr 26, 2008

Total Topics: 2
Total Comments: 3
Posted Apr 26, 2008 - 10:50 AM:

Hi

I want to include a random sponsored link at the top of the relevant category. I've got it working with a link's primary category, but it's not showing up in the link's secondary category.

The Toplist code I'm using is

<CONFIG>links,rand(),1,ascending,type='featured' and catid='{CATID}'</CONFIG>


You can see an example at:
http://www.hotzest.co.uk/jewellery-and-watches/watches where it does show up and
www.hotzest.co.uk/clothing-...and-accessories/sunglasses where it doesn't.

Any clues to what I'm doing wrong?

Many thanks


Paul
developer

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

Total Topics: 61
Total Comments: 7868
Paul
Posted Apr 27, 2008 - 1:15 AM:

In order to include secondary instances in a toplist, you need to set aliases to yes in the toplist generator's "What classifications of items should be shown in this toplist?" area. That'll generate what you want:
<CONFIG>links,rand(),5,ascending,type='featured' and catid='{CATID}',,,0,0,0,0,0,1,,0</CONFIG>
fractalz
Beginner

Usergroup: Customer
Joined: Apr 26, 2008

Total Topics: 2
Total Comments: 3
Posted Apr 28, 2008 - 7:20 AM:

Many thanks for that - working beautifully now.
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.