The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Is there a user chooser mod/plugin?
I don't know if this is the right place to ask, but it did not fit anywhare else...
I am having a game on my site and need to pull out 3 random usernames who have registered in Mai. Is there a mod/plugin for this ?? |
#2
|
||||
|
||||
I have not seen a mod for this.
|
#3
|
|||
|
|||
It would be nice to have this in/for vBulletin
But I solved it by using http://random.org/ By using User ID's I could make a random draw |
#4
|
|||
|
|||
I'm looking for almost exactly the same thing. Except I want to choose from the active users in a given month. I don't need anything fancy, just the sql query. But I don't know how to construct those.
Any assistance appreciated. |
#5
|
||||
|
||||
Getting active users in a given month is going to be more difficult than getting registered users. Registration dates are kept; dates a user logged in are not. You will need to set up a database/field/something to actually log all times a user is logged in if you wish to find when they were active.
|
#6
|
|||
|
|||
Isn't there a last login date? And if the query (or manually if I have to) can determine the number of days in the current month, then it could check the number of days between the last login date and the current date and if it doesn't exceed the number of days in the month, it's a valid user.
Then take all these valid users and pull a random one. Is there not a way? |
#7
|
||||
|
||||
But if you are looking for anybody who was active in the month of February, someone could come log in right now, and not have been online since last year, and that means their last login date would be March, but they were definitely not an active user in February.
|
#8
|
|||
|
|||
True, but that's why I was going to run the query at the end of each month on the last day. Either via a cron or manually.
|
#9
|
||||
|
||||
Then that would work. You hadn't said that before which is why I couldn't see how that would work.
|
#10
|
|||
|
|||
Sorry. I didn't know if there was a way to make it work outside of the current month or not.
Now I just need the db query. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|