Webmastersite.net
Register Log In

Advanced Toplist

Comments on Advanced Toplist

babrees
Expert

Usergroup: Customer
Joined: Aug 19, 2005
Location: England

Total Topics: 391
Total Comments: 1303
babrees
Posted Nov 12, 2006 - 8:19 AM:

I have a toplist currently showing 1 random link of specific type:

<CONFIG>links,rand(),1,ascending,type='dog',,,0,0,0,0,0,0</CONFIG>

Works great, but I want to restrict it to only those links owned by usergroup 4 - is this possible?
Paul
developer

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

Total Topics: 61
Total Comments: 7868
Paul
Posted Nov 13, 2006 - 2:21 AM:

Since the usergroup isn't a link field, you can't filter the toplist by it. You can use <IF {MEMBERUSERGROUP} is 4> but that'll mean nothing will show when it happens to be a link owned by someone in group 4.

Perhaps you could create a toplist which shows a random member from usergroup 4, uses a function to get a random link from the selected member, and feeds that into the 'show any item' function. I'll see about creating a {MEMBERRANDOMLINKID} since there isn't one yet.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.