Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Pick A Random User In A Specified Thread ID Details »»
Pick A Random User In A Specified Thread ID
Version: 1.00, by Logikos Logikos is offline
Developer Last Online: Sep 2023 Show Printable Version Email this Page

Category: Administrative and Maintenance Tools - Version: 3.0.3 Rating:
Released: 10-02-2004 Last Update: Never Installs: 9
 
No support by the author.

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.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 10-03-2004, 02:10 AM
wrongful wrongful is offline
 
Join Date: Apr 2003
Location: Atlanta, Georgia
Posts: 88
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works great, thanks I can make good use of this.
Reply With Quote
  #3  
Old 10-03-2004, 02:14 AM
wrongful wrongful is offline
 
Join Date: Apr 2003
Location: Atlanta, Georgia
Posts: 88
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 10-03-2004, 02:32 AM
Logikos Logikos is offline
 
Join Date: Jan 2003
Posts: 2,924
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ahhhh! thanks! will add that now. Thats only a simple if empty command. brb
Reply With Quote
  #5  
Old 10-03-2004, 02:53 AM
Logikos Logikos is offline
 
Join Date: Jan 2003
Posts: 2,924
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay i fixed that little problem, to update just reupload the new random.php file i added and it should work fine.
Reply With Quote
  #6  
Old 10-03-2004, 10:54 AM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Could be useful for competitions - thanks for sharing your work
Reply With Quote
  #7  
Old 10-03-2004, 05:13 PM
Logikos Logikos is offline
 
Join Date: Jan 2003
Posts: 2,924
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #8  
Old 11-04-2004, 02:19 AM
biggazillakilla biggazillakilla is offline
 
Join Date: Mar 2004
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #9  
Old 12-10-2004, 06:50 PM
zigx zigx is offline
 
Join Date: Feb 2004
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #10  
Old 12-10-2004, 08:51 PM
ChrisBaktis ChrisBaktis is offline
 
Join Date: Mar 2004
Location: CT
Posts: 409
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:09 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04237 seconds
  • Memory Usage 2,288KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete