vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Add User to Primary Usergroup Based on Value of Custom Profile Field (https://vborg.vbsupport.ru/showthread.php?t=82992)

TheElf 10-17-2005 07:52 PM

Quote:

Originally Posted by Brinnie
Yes sir, I did. I used radio buttons. set one to male, set one to female and made it required on registration.

Anything else I could have missed?

The whole plugin system is disabled by default, have you enabled it?

amykhar 10-18-2005 12:27 AM

Not going to get a response from that user. She was banned.

rookiyong 10-29-2005 02:41 AM

Hi amykhar, if anytime after registration, a user changes the profile field from A to B, will the primary usergroup of that user also change without any approval from the admin side?

I am looking for something that allows a user to change usergroup without the need to wait for approval :)

amykhar 10-29-2005 03:29 AM

No. It will not change. This affects registrations only. All you have to do with regards to the no approval needed is to not set up a group leader.

rookiyong 10-29-2005 03:42 AM

Great! Thanks, and I will still have use for your hack. :)

CyberRanger 11-04-2005 11:49 AM

Before I dig into your code, off the top of your head, do you think I can modify this so that the primary usergroup is set based on the email domain? I have users from a certain domain (my work) who I want to have automatically moved into a primary usergroup with greater permissions. Thanks!

mindfrost82 11-04-2005 02:10 PM

I know that Brinnie is banned, but if anyone else is having a problem like her's, make sure that

Code:

if ($user['field5'] == 'yes')
is case sensitive. I kept it at 'yes' when my option was 'Yes' and it wouldn't work.

I think Amy said that somewhere in here too.

lazyseller 11-08-2005 06:36 PM

I have an idea for cobranding but unsure how to implement this

is there a way to set usergroup based on $styleid ?

for example if styleid = 2 usergroup will be 10 ?

Any help would be appreciated

amykhar 11-08-2005 06:40 PM

It sounds like if a user registers from one domain, you want them to see one style and one set of forums and if they register from another domain, you want them to see a different style and set of forums. Is that what you are going for?

Amy

silly rabbit 11-08-2005 07:01 PM

Quote:

Originally Posted by amykhar
Not going to get a response from that user. She was banned.

Good Move!! amykhar, this is very cool - I like it, am convinced it will work and will use it but haven't installed it yet.

Have quick 2 Qs 1'st to ensure I get it right - am new to php/HTML but if I want to divide new regs into one of three different employee groups based on senority date(ie: less than 5 yrs, 5 - 15yrs and 15yrs+)? Q1 -> whats the HTML/PHP 'format' entry to ensure date entered is in correct format of '122505'(Christmas day)?? Q2 -> is this 'doable' here for me??

Thx In advance,

Rabbit


All times are GMT. The time now is 06:51 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.01232 seconds
  • Memory Usage 1,734KB
  • 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
  • (1)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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