WebmasterSite.net: PHP scripts to enable your creativity
WSN Links PHP Directory Software
PHP Scripts Webmaster Links Support Forums

Register | Forgot Password

random link+attachment toplist
how to mix them

Version: 4.1.2
printPrint


random link+attachment toplist
david
Forum Regular

Usergroup: Customer
Joined: Jun 22, 2005
Total Topics: 88
Total Posts: 304
Posted 09/22/07 - 02:03 PM:
quote post
#1
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="http://www.webmastersite.net/forums/{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
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 57
Total Posts: 6316
Posted 09/23/07 - 02:17 PM:
quote post
#2
Randomizing it isn't possible, except with some PHP for a custom query.

"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founder of Red Hat
Search thread for
Download thread as


You don't have permission to post.

Please login or register.

   
 
© 2008 Paul Knierim. All rights reserved.