Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 03-25-2002, 08:11 PM
fonzerelli_79's Avatar
fonzerelli_79 fonzerelli_79 is offline
 
Join Date: Nov 2001
Posts: 259
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default New members in a different user group than registered

wluke said that there was a hack for this :-

i run a football site

currently rival fans are banned but i want to be able to create a user group called rival fans
they will be able to post in one room on the site

is there a way to do this when they register
ie. ask which team when they support when they sign up and then automatically assign them to the user group rival fans
Reply With Quote
  #2  
Old 03-26-2002, 12:20 PM
fonzerelli_79's Avatar
fonzerelli_79 fonzerelli_79 is offline
 
Join Date: Nov 2001
Posts: 259
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ello peeps!!
Reply With Quote
  #3  
Old 03-26-2002, 12:25 PM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Coming soon...
Reply With Quote
  #4  
Old 03-27-2002, 09:00 AM
fonzerelli_79's Avatar
fonzerelli_79 fonzerelli_79 is offline
 
Join Date: Nov 2001
Posts: 259
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks firefly

luke said that it had already been done

im not the best at php etc but i assumed that it wouldnt be too difficult

anyhoo, thanx for the update
Reply With Quote
  #5  
Old 03-27-2002, 09:03 AM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's ready for testing if you want, shall I PM you the file?

It includes a new option for usergroups, "Can users choose to join this usergroup when signing up?", so you can control exactly which usergroups new users can sign up for.
Reply With Quote
  #6  
Old 03-27-2002, 09:07 AM
fonzerelli_79's Avatar
fonzerelli_79 fonzerelli_79 is offline
 
Join Date: Nov 2001
Posts: 259
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

that would be great firefly

ill test it no problem and let you know how i get on, ie. any bugs suggestions

pm me the file and ill try it when i get home tonight

nice one
Reply With Quote
  #7  
Old 05-08-2002, 06:14 PM
amk35 amk35 is offline
 
Join Date: Nov 2001
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

FireFly ,

I'm looking for this same hack, could you pm it to me also? Thanks!
Reply With Quote
  #8  
Old 09-20-2002, 12:16 PM
zonegray zonegray is offline
 
Join Date: Feb 2002
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did this go any further? Found this discussion looking for something similar (want to put users in a special group based on a code they enter at registration). Can't seem to find anything in Firefly's released hacks or betas.
Reply With Quote
  #9  
Old 09-20-2002, 08:50 PM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by zonegray
Did this go any further? Found this discussion looking for something similar (want to put users in a special group based on a code they enter at registration). Can't seem to find anything in Firefly's released hacks or betas.
Login Admin CP, create a new user profile field, make it invisible to other users, note its id..

Edit register.php, find:

PHP Code:
$DB_site->query("UPDATE user SET usergroupid=2$dotitle WHERE userid='$u'"); 
Replace it AS:
PHP Code:

            $userfields
=$DB_site->query_first("SELECT * FROM userfield WHERE userid='$u'");
            if (
$userfields['fieldX']=='YYY'
            {
            
$DB_site->query("UPDATE user SET usergroupid=Z$dotitle WHERE userid='$u'");
            }
            else
            {
            
$DB_site->query("UPDATE user SET usergroupid=2$dotitle WHERE userid='$u'");
            } 
Replace X with your profile field id.
Replace YYY with your secret code
Replace Z with the usergroup id users will be inserted..

This will work provided that:
1- You didnt enable new user moderation
2- You enabled email validation
3- I dont know about COPPA thing but I guess it wouldnt matter..

Not tested but should work..
Reply With Quote
  #10  
Old 09-22-2002, 04:12 PM
Aurore Aurore is offline
 
Join Date: Jan 2002
Location: FRANCE, Wattrelos
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Looking forward for the hack!!
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 11:38 PM.


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.05034 seconds
  • Memory Usage 2,257KB
  • Queries Executed 13 (?)
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)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)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
  • (10)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_postinfo_query
  • fetch_postinfo
  • 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