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?
Comments on random link+attachment toplist
Forum Regular
Usergroup: Customer
Joined: Jun 22, 2005
Total Topics: 91
Total Comments: 305
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
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Randomizing it isn't possible, except with some PHP for a custom query.