Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #11  
Old 01-27-2005, 10:16 PM
jzewatsky jzewatsky is offline
 
Join Date: Nov 2004
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

but it does not seem to be working for me. I've edited register.php as noted, changed the information in the code to match my needs (profile field 17, with three options and three associated usergroups) but it does not seem to add the user to the user group...

vb ver 3.0.6

Any ideas?
Reply With Quote
  #12  
Old 01-27-2005, 10:32 PM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What exactly is your field17?
Reply With Quote
  #13  
Old 01-27-2005, 10:53 PM
jzewatsky jzewatsky is offline
 
Join Date: Nov 2004
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

A three option radio button question
Reply With Quote
  #14  
Old 05-31-2005, 11:58 PM
mustang_lex mustang_lex is offline
 
Join Date: May 2005
Posts: 153
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have a similiar dilema.

I need to have 2 different registrations.

One for group ID2 (registered members) in fact it can remain as is
The other however is a different registration for group ID9 (being my Stangette membership) and it required a photo upload.

Group ID2 can have a activation by email (normal) and Group ID9 NEEDS to be approved by an admin.. Can some one help

Thank You
Reply With Quote
  #15  
Old 06-16-2005, 06:34 PM
reisser reisser is offline
 
Join Date: Jun 2005
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello,

ich just modified register.php for my vb.

The modification should check at first the e-mail adress and - at a second step - based on the result of the mail-check and a single-slection-radio-button, choose a usergroup.

Here it is...
I marked the modifications...
PHP Code:
    // assign user to group 3 if email needs verification
    
if ($vboptions['verifyemail'])
    {
        
$newusergroupid 3;
    }
    else
    {
// ##############################
        
if ($vboptions['test_onoff'])
        {
        
         
$mail strstr($_POST['email'], ".");
         
$mail2 stristr($mail"@");
        
          if ( 
$_POST['field5'] == Studenten AND $mail2 == false 
              { 
$newusergroupid 11; } 
              else { 
$newusergroupid 4; }
                  
          if ( 
$_POST['field5'] == Professoren AND $mail2 == true 
              { 
$newusergroupid 9; } 
              else { 
$newusergroupid 4; }
                              
                  if ( 
$_POST['field5'] == Lehrbeauftragte AND $mail2 == true 
                         { 
$newusergroupid 10; } 
                           else { 
$newusergroupid 4; }
                          
                  if ( 
$_POST['field5'] == Keine_Zugeh?rigkeit ) { $newusergroupid 4; }[/B
        }
// ###############################
        
else
        {
            if (
$vboptions['moderatenewmembers'] OR $_POST['coppauser'])
            {
                
$newusergroupid 4;
            }
            else
                {
                    
$newusergroupid 2;
                }
        }
    } 
- verifyemail is off
- test_onoff is on

Everytime I test the modification all users were put into group 4

Any ideas what is wrong?

groeken
Reply With Quote
  #16  
Old 06-16-2005, 10:11 PM
T3MEDIA T3MEDIA is offline
 
Join Date: Dec 2004
Posts: 944
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there a hack that allows people to upload a photo when they register?
That would be nice.
Reply With Quote
  #17  
Old 06-16-2005, 10:12 PM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

They can upload a photo after registering and activating their account.
Reply With Quote
  #18  
Old 06-17-2005, 06:14 AM
reisser reisser is offline
 
Join Date: Jun 2005
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@KirbyDE
Do you have any idea for my problem?
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:31 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.04434 seconds
  • Memory Usage 2,244KB
  • Queries Executed 11 (?)
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
  • (1)bbcode_php
  • (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
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)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