vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Random User Picker (https://vborg.vbsupport.ru/showthread.php?t=73617)

Dean C 12-31-2004 10:00 PM

Random User Picker
 
[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.

duncan99 01-01-2005 02:45 PM

Wondering the purpose of this mod ?!?

Dean C 01-01-2005 03:14 PM

To pick a random user? Someone requested it, so here it is :)

Dio 01-01-2005 03:38 PM

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". :)

Dio 01-01-2005 03:54 PM

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.

Dean C 01-01-2005 04:23 PM

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 :)

Dio 01-01-2005 05:06 PM

Quote:

Originally Posted by Dean C
Apply step #2 again, my bad :)

Found it! I loaded the Phrase in the wrong area. Thanks! :D

Xtrm2Matt 01-01-2005 05:21 PM

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

Sure beats getting them to email me! :D

Jolten 01-01-2005 05:25 PM

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.

Dean C 01-01-2005 05:30 PM

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 :)


All times are GMT. The time now is 12:53 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.01132 seconds
  • Memory Usage 1,739KB
  • 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
  • (2)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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