Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases

Reply
 
Thread Tools
Random User Picker Details »»
Random User Picker
Version: 2.00, by Dean C Dean C is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 3.0.3 Rating:
Released: 12-31-2004 Last Update: 01-27-2005 Installs: 23
 
No support by the author.

[Random User Picker]

Information
  • [high]vBulletin Version:[/high] 3.0.3

  • [high]Author:[/high] Dean Clatworthy

  • [high]Copyright:[/high] You may use this modification at your own risk. I cannot and will not be held responsible for any damage you may cause to your forums during installation or thereafter. You may not distribute this modification in whole or parts and anyone found doing so faces risk of prosecution. All my modifications are released at vBulletin.org and anyone found releasing them elsewhere also faces risk of prosecution. You may not translate this modification without my prior permission.

  • [high]Donations:[/high] I release my modifications for free. If you wish to donate please contact me and I will give you my details. All donations are graciously appreciated.

  • [high]Credits:[/high] I would like to thank the following people who contributed to the making of this modification.
    • ChrisBaktis - requested the modification

What does this modification do?
This modification adds a new link to the admincp where you can select a random user. Simple as that!

Installation

1/

Add the following phrases:

Phrase Type: Control Panel User Management
Varname: random_user_picker
Text: Random User Picker

Phrase Type: Control Panel Global
Varname: pick_random_user
Text: Pick Random User

2/

Find in admincp/index.php:

PHP Code:
construct_nav_option($vbphrase['generate_mailing_list'], 'email.php?do=genlist''<br />'); 
Replace with:

PHP Code:
construct_nav_option($vbphrase['generate_mailing_list'], 'email.php?do=genlist''<br />');
construct_nav_option($vbphrase['pick_random_user'], 'user_random.php''<br />'); 
3/

Upload the attached user_random.php to your /admincp/ directory.

Please Click Install!
If you installed this modifcation please click the install button. It'll help you keep up to date with future releases and important bugfixes, security updates.

Show Your Support

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

Comments
  #2  
Old 01-01-2005, 02:45 PM
duncan99 duncan99 is offline
 
Join Date: Feb 2003
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wondering the purpose of this mod ?!?
Reply With Quote
  #3  
Old 01-01-2005, 03:14 PM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

To pick a random user? Someone requested it, so here it is
Reply With Quote
  #4  
Old 01-01-2005, 03:38 PM
Dio's Avatar
Dio Dio is offline
 
Join Date: Dec 2003
Location: Houston, TX
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is a great hack!

Question: What would I use this for?

Answer: If you were running a promotion, contest, etc. and needed to randomly pick a winner, this Hack will do it for you. Much like a random number generator gives you a "random number".
Reply With Quote
  #5  
Old 01-01-2005, 03:54 PM
Dio's Avatar
Dio Dio is offline
 
Join Date: Dec 2003
Location: Houston, TX
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Still stumped...It works but is not showing up on my Admin control panel. You can see it's spot between Generate Mailing List and Access Masks.
Reply With Quote
  #6  
Old 01-01-2005, 04:23 PM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dio
Still stumped...It works but is not showing up on my Admin control panel. You can see it's spot between Generate Mailing List and Access Masks.
Apply step #2 again, my bad
Reply With Quote
  #7  
Old 01-01-2005, 05:06 PM
Dio's Avatar
Dio Dio is offline
 
Join Date: Dec 2003
Location: Houston, TX
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dean C
Apply step #2 again, my bad
Found it! I loaded the Phrase in the wrong area. Thanks!
Reply With Quote
  #8  
Old 01-01-2005, 05:21 PM
Xtrm2Matt Xtrm2Matt is offline
 
Join Date: Aug 2002
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great hack. I'm using this for contests (Random username picked out from the contest thread).

Sure beats getting them to email me!
Reply With Quote
  #9  
Old 01-01-2005, 05:25 PM
Jolten Jolten is offline
 
Join Date: Mar 2004
Posts: 749
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wow Dean, nothing like sniping code and not giving credit. Not that this was difficult by any means. I'm sure a lot of people could have done it. Anyway... nice mod. Too bad I was asleep and couldn't do it myself in the past 5 hours.
Reply With Quote
  #10  
Old 01-01-2005, 05:30 PM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Um snipping code and taking credit? I've been working with PHP/MySQL for almost 5 years now. I don't need to take others code thanks
Reply With Quote
Reply

Thread Tools

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 07:21 PM.


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.06463 seconds
  • Memory Usage 2,296KB
  • 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
  • (2)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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