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 Secondary Usergroup Based on the Value of a Custom Profile Field at Reg. (https://vborg.vbsupport.ru/showthread.php?t=82993)

Brinnie 07-15-2005 02:06 AM

Quote:

Originally Posted by hellsatan
You asked it in the wrong place - Ask it in the "vBulletin Modification Questions" forum for vB 3.5.0 or 3.0.x depending on which forum you want it to run on ;)

Satan

oh ok. I'm a n00b, I don't know these things.

Do I need to entitle it: " Add User to Secondary Usergroup Based on the Value of a Custom Profile Field at Reg."?

Chris M 07-15-2005 02:10 AM

Quote:

Originally Posted by Brinnie
oh ok. I'm a n00b, I don't know these things.

Do I need to entitle it: " Add User to Secondary Usergroup Based on the Value of a Custom Profile Field at Reg."?

No - Reeve of Shinra has provided one way of doing it, here

If you decide to do it that way, you will only require the use of one of the hacks by amy :)

If you decide to do it via custom code, you will need to ask ;)

Satan

Brinnie 07-15-2005 02:35 AM

Quote:

Originally Posted by hellsatan
No - Reeve of Shinra has provided one way of doing it, here

If you decide to do it that way, you will only require the use of one of the hacks by amy :)

If you decide to do it via custom code, you will need to ask ;)

Satan

Do you know which one of these hacks would be better?

Chris M 07-15-2005 02:37 AM

Quote:

Originally Posted by Brinnie
Do you know which one of these hacks would be better?

It depends whether you want the user to be moved into a different Primary Group or added to a Secondary Group :)

Satan

akanevsky 08-01-2005 08:14 PM

Nice hack. A few suggestions:

1. Make it configurable from admincp.
2. Replace

PHP Code:

if ($membergroupids)
{
$membergroupids $membergroupids ", 10";
}
else
{
$membergroupids 10;


With

PHP Code:

$membergroupids .= (!empty($membergroupids) ? ", " "") . 10


amykhar 08-01-2005 08:15 PM

1. Yes, that can be done now. When I wrote this, changes to the admincp required code edits, which I was trying to avoid.
2. I realize your way is shorter, but when I write code for here, I prefer to break things out to make it as simple to read as possible. That way, new coders get a glimpse at what is going on.

thecool 08-18-2005 10:18 PM

Is there anyway to have the user added as a primary user of the Customer field as opposed to a secondary user?

thanks

Andreas 08-18-2005 10:19 PM

Did you know that vBulletin has a nice search function? ;)
https://vborg.vbsupport.ru/showthread.php?t=82992

thecool 08-18-2005 10:44 PM

Quote:

Originally Posted by KirbyDE
Did you know that vBulletin has a nice search function? ;)
https://vborg.vbsupport.ru/showthread.php?t=82992

Didn't read it up top, browsed it and missed, thanks for the heads up.

Bad Bunny 10-02-2005 06:25 AM

Is this working for gold? Cause I can't seem to get it to work. I have field5 and Yes (is it dependent on caps?) adds to group 11. Which is pretty simple...since it's almost default.


All times are GMT. The time now is 05:38 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.01075 seconds
  • Memory Usage 1,740KB
  • 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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