Webmastersite.net
Register Log In

random link+attachment toplist
how to mix them

Comments on random link+attachment toplist

david
Forum Regular

Usergroup: Customer
Joined: Jun 22, 2005

Total Topics: 91
Total Comments: 305
david
Posted Sep 22, 2007 - 3:03 PM:

Hi Paul,

I need a toplist that shows 1 random attachment of 1 random link (that has a rating of 5). I tried this:

<!-- BEGIN TOPLIST 6 -->
<CONFIG>links,rand(),1,ascending,rating=5,,0,0,0,0,0,0,0,</CONFIG>

<!-- BEGIN 1 LINK ATTACHMENTS -->
<img src="{ATTACHDOWNLOADURL}" alt="" />
<!-- END LINK ATTACHMENTS -->

<!-- END TOPLIST 6 -->


This obviously gets the random link, but would always show the first attachment of that link. How can I show a random attachment of the particular link?

Thanks
David
Paul
developer

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

Total Topics: 61
Total Comments: 7868
Paul
Posted Sep 23, 2007 - 3:17 PM:

Randomizing it isn't possible, except with some PHP for a custom query.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



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