![]() |
|
Thread Tools |
#1
|
|||
|
|||
Looking for a Drawing/Raffle Mod
I'm looking for a vb4 mod to pick random users from my database for product give-aways. I need to be able to specify what usergroup(s) are eligible for the drawing, and only select from those who have been active on the forum in a given amount of time (1 month, 6 months, 1 year, etc.)
I'm a business guy, not a programmer - so a simple plugin or mod would be best. I am savvy enough to run a SQL query via Maintenance if if I have a query I can just C&P. Never imagined it would be this much of a headache to give something away. lol No members have liked this post.
|
#2
|
|||
|
|||
No members have liked this post.
|
#3
|
|||
|
|||
I'm not looking for something that extensive or elaborate, I just want a simple "click the button and get a name" or "paste a query and get a result" for the oddball drawing I do now and then to give something away.
No members have liked this post.
|
#4
|
||||
|
||||
Suppose you wanted to pick a user at random from usergroups 6 and 9, then you could use this query:
The limit of 1 will be ignored, so either just take the first name shown, or set "Results to Show Per Page" at 1. ![]()
__________________
Former vBulletin.org Staff Member ![]() Support for my products (as well as updates/new product publishing) has been moved to MHB - vBulletin Products and TAZ - Add-ons No members have liked this post.
|
#5
|
||||||||
|
||||||||
If I use this query:
I get this error:
Using this shortened version:
I get the following error:
![]() No members have liked this post.
|
#6
|
||||
|
||||
In the first query, you have an "OR" that's misplaced. In the second, I am guessing you need to specify a table prefix before "user AS user".
__________________
Former vBulletin.org Staff Member ![]() Support for my products (as well as updates/new product publishing) has been moved to MHB - vBulletin Products and TAZ - Add-ons No members have liked this post.
|
#7
|
||||
|
||||
No members have liked this post.
|
![]() |
«
Previous Thread
|
Next Thread
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 22:49.