vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Administrative and Maintenance Tools - Pick A Random User In A Specified Thread ID (https://vborg.vbsupport.ru/showthread.php?t=70114)

Logikos 10-02-2004 10:00 PM

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
  • Fixed SQL error when no thread id is entered. (10-02-2004)



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...
  • Time to install: 2 minutes
  • Queries to run: 0
  • File Mods: 1
    • /admincp/index.php
  • Templates to edit: 0
  • Templates to add: 0
  • New Phrases: 1

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.


wrongful 10-03-2004 02:10 AM

Works great, thanks I can make good use of this. :)

wrongful 10-03-2004 02:14 AM

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.

Logikos 10-03-2004 02:32 AM

Ahhhh! thanks! will add that now. Thats only a simple if empty command. brb :)

Logikos 10-03-2004 02:53 AM

Okay i fixed that little problem, to update just reupload the new random.php file i added and it should work fine.

Dean C 10-03-2004 10:54 AM

Could be useful for competitions - thanks for sharing your work :)

Logikos 10-03-2004 05:13 PM

Quote:

Originally Posted by Dean C
Could be useful for competitions - thanks for sharing your work :)

Thanks, and anyone who uses this hack, got many more to come.

biggazillakilla 11-04-2004 02:19 AM

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!

zigx 12-10-2004 06:50 PM

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?

ChrisBaktis 12-10-2004 08:51 PM

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
  • Page Generation 0.01071 seconds
  • Memory Usage 1,738KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete