![]() |
Pick A Random User In A Specified Thread ID
Random User In Specified Thread ==================== Author: Ken 'LiveWire' Iovino Site: www.vbhacks.us Version: 1.0.0 ==================== Updates
What this does This will allow you to generate a random username for any thread id you specify. This could be good for picking a random winner in a certain thread. I got the idea from This thread here Anyway, it only took me a few mins to write up so i thought i would share it with everyone. To do list...
Please read carefully and make all the necessary changes as stated. This is will work if installed properly. PLEASE REMEMBER TO BACKUP BEFORE YOU BEGIN! If you like this hack Click It Help & Support Before asking for support Please make sure you have done all necessary changes! If you still need support please post a reply here. Please post bugs and errors here. Hope you like, feedback welcomed. |
Works great, thanks I can make good use of this. :)
|
The only small nitpick suggestion I have is to provide an error message if submit is pushed and no thread id is entered otherwise you get a database error.
|
Ahhhh! thanks! will add that now. Thats only a simple if empty command. brb :)
|
Okay i fixed that little problem, to update just reupload the new random.php file i added and it should work fine.
|
Could be useful for competitions - thanks for sharing your work :)
|
Quote:
|
Just in case anybody is as daft as I was and didn't know where to find this option in the admincp after making the changes: it's under the Users category.
I'm not terribly familiar with vB, but fortunately, looking at the code, I was able to find it pretty easily. Now, onto seeing how it works... :) Edit: Did what it said on the box, no problems. :) Any chance of adding options? For me, for example, I had a rule about having to have a minimum of 50 posts. It'd be great to have some extra options like that. Oh, I also have a rule about posting more than once in the thread. Is there any way to eliminate doubleposters? Anyway, thanks a million for your contribution! |
This hack is EXACTLY what im looking for! thanks so much for putting it together man.
I have 2 questions: 1) How does it pick a member? 2) Does it consider how many posts the person has in the thread? ie if you have 5 posts in a thread and another guy has 1 do you have 5x better chance of being picked? |
I would love to use this - I have two Mods that run our contests - by the looks of this you would need access to the Admin Control Panel to do this - is there a way so I can add this to the Mod CP instead?
|
All times are GMT. The time now is 11:12 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|