Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Random Usergroup on registration Details »»
Random Usergroup on registration
Version: 1.00, by dstruct2k dstruct2k is offline
Developer Last Online: Apr 2014 Show Printable Version Email this Page

Version: 3.0.3 Rating:
Released: 08-19-2004 Last Update: Never Installs: 10
Re-useable Code Code Changes Translations  
No support by the author.

Ever wanted to randomly sort your new registrants into seperate usergroups?

Now you can!

Good for Harry Potter themed forums.


Instructions: Create the usergroups you want to randomly sort between and record the usergroupid's for use when installing the hack. Further instructions in TXT file.

File Modifications: 1 (register.php)

Template Mods: 0

Time to install: >2 minutes


Enjoy!

Update: Version 2.0 released
This version incorporates code by True.Rooster which fixes my half-assed attempts at getting the code right. (It's been a while... lol)

To upgrade, reapply the hack.

Show Your Support

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

Comments
  #2  
Old 08-20-2004, 06:30 PM
assassingod's Avatar
assassingod assassingod is offline
 
Join Date: Jul 2002
Posts: 3,337
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice
Reply With Quote
  #3  
Old 08-20-2004, 06:32 PM
Reeve of shinra's Avatar
Reeve of shinra Reeve of shinra is offline
 
Join Date: Oct 2001
Location: NYC
Posts: 1,896
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Pretty cool.
Reply With Quote
  #4  
Old 08-20-2004, 06:34 PM
KW802's Avatar
KW802 KW802 is offline
 
Join Date: Jul 2003
Location: A galaxy far, far away...
Posts: 1,450
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Would there then be an easy way for the user to change their group post registration? I could see something like this hack being fun for RPG type sites.
Reply With Quote
  #5  
Old 08-21-2004, 12:42 AM
Merjawy's Avatar
Merjawy Merjawy is offline
 
Join Date: Sep 2002
Location: USA
Posts: 505
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice indeed

but I don't want to do a random thningy I want to simply make new users register into a usergroup of my choosing, not the default usergroupID 2 , can I do that with this?

thnx
Reply With Quote
  #6  
Old 08-21-2004, 12:46 AM
nighteyes's Avatar
nighteyes nighteyes is offline
 
Join Date: Oct 2001
Posts: 130
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Do you have a script to automatically assign random usersgroups to existing members too (excluding moderators and admins)? So you can run the script once.... everyone would be assigned a certain group, then randomly add people to new groups as they register.
Reply With Quote
  #7  
Old 08-21-2004, 04:19 AM
dstruct2k's Avatar
dstruct2k dstruct2k is offline
 
Join Date: Dec 2002
Location: Winnipeg
Posts: 318
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Merjawy
Nice indeed

but I don't want to do a random thningy I want to simply make new users register into a usergroup of my choosing, not the default usergroupID 2 , can I do that with this?

thnx
Just only put one group, that'd do it.



Quote:
Originally Posted by nighteyes
Do you have a script to automatically assign random usersgroups to existing members too (excluding moderators and admins)? So you can run the script once.... everyone would be assigned a certain group, then randomly add people to new groups as they register.
No, I don't, as I coded this for a request, not for my own usage.... I think one could be written though, I just will have to find time... They gave me shifts every day this week at work so I'll be hard-pressed for time.
Reply With Quote
  #8  
Old 08-21-2004, 06:28 AM
integra99's Avatar
integra99 integra99 is offline
 
Join Date: Jun 2003
Location: Indiana
Posts: 125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

dstruct2k: what is the application of this hack on your site?
Reply With Quote
  #9  
Old 08-21-2004, 02:14 PM
b4ne b4ne is offline
 
Join Date: Jun 2004
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Coudl this be changed so that the user has some otions like

1
2
3

and whatever option he chooses when register he gets put into a specific usergroup ?
Reply With Quote
  #10  
Old 08-22-2004, 01:08 PM
isla142 isla142 is offline
 
Join Date: Jun 2004
Location: Warks, UK
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This doesn't appear to be working. I put it on my site and signed up as a new member, but for some reason they were placed in 'COPPA users awaiting moderation' (group 4)

I had put the four usergroups as 2 (Gryffindor), 9 (Hufflepuff), 10 (Ravenclaw) and 11 (Slytherin). Maybe you need to check your code. I did a straight copy with the numbers changed.
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 06:13 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.08529 seconds
  • Memory Usage 2,289KB
  • 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_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