vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Mini Mods - Register Redirect. Now updated with the requested extra feature. (https://vborg.vbsupport.ru/showthread.php?t=235509)

borbole 05-12-2010 12:32 PM

You are most welcome. I updated the mod here to work on a 3x as well. And I also submitted it for 3x version on its own here:

https://vborg.vbsupport.ru/showthread.php?t=242351

OPsNaStYM0FO 08-02-2010 03:57 AM

There is a bug in this . If you moderate your members it does not work .

It will not put them into users awaiting moderation after they have activated through email even if you have selected yes to moderating new users in registration options , You might want to look into fixing this . I'm also looking at fixing it .

TheSupportForum 08-02-2010 11:11 AM

please can you add redirect for banner users

i could do this myself using your mod but would be a great idea, if you add this yourself for the next release

OPsNaStYM0FO 08-03-2010 11:10 PM

anyone going to reply to my bug find ? I mean I even sent the developer a pm and no reply .

manofphat 12-05-2010 07:22 PM

I had the same issue with user activation on my board. When new users were clicking on their activation links it was just sending them to the custom page and not activating their accounts. I had to disable that portion of the modification. Other than that, working great!

Alibass 01-27-2011 09:12 PM

Quote:

Originally Posted by manofphat (Post 2129740)
I had the same issue with user activation on my board. When new users were clicking on their activation links it was just sending them to the custom page and not activating their accounts. I had to disable that portion of the modification. Other than that, working great!

I can confirm this, does not work on 4.1.1

omegaweapontmod 04-09-2011 02:59 AM

vBulleting 3.x :(

Pweeeease

espaciored 04-21-2011 04:15 PM

Many thanks. Keep it up! :)

Alan_SP 04-22-2011 02:36 AM

Quote:

Originally Posted by manofphat (Post 2129740)
I had the same issue with user activation on my board. When new users were clicking on their activation links it was just sending them to the custom page and not activating their accounts. I had to disable that portion of the modification. Other than that, working great!

Just to say, I too have this bug. I tested with more than one test user registration. All couldn't really activate their accounts, they stayed in users awaiting mail activation.

It's a shame, it's excellent idea and if this mod would work with redirecting after mail activation it would be great. Using just redirecting after registration works.

Alan_SP 04-22-2011 03:02 AM

1 Attachment(s)
Ok, I solved problem, there was missing quite a bit of code:

PHP Code:

if ($userinfo['coppauser'] OR ($vbulletin->options['moderatenewmembers'] AND !$userinfo['posts']))
        {
            
// put user in moderated group
            
$userdata->save();
            eval(
standard_error(fetch_error('moderateuser'$userinfo['username'], $vbulletin->options['forumhome'], $vbulletin->session->vars['sessionurl_q']), ''false));
        }
        else
        {
            
// activate account
            
$userdata->save();

            
// rebuild stats so new user displays on forum home
            
require_once(DIR '/includes/functions_databuild.php');
            
build_user_statistics();

            
$username unhtmlspecialchars($userinfo['username']);
            if (!
$user['emailchange'])
            {
                if (
$vbulletin->options['welcomemail'])
                {
                    eval(
fetch_email_phrases('welcomemail'));
                    
vbmail($userinfo['email'], $subject$message);
                }

                
$userdata->send_welcomepm();
            }

            if (
$user['emailchange'])
            {
                eval(
standard_error(fetch_error('emailchanged'htmlspecialchars_uni($userinfo['email'])), ''false));
            }
        } 

This is code that normally would be executed in register.php (in your forum root). I added it before redirecting link in mod.

You can use my modified version and it should work without problem. It solves if user is put in moderated group, changes mail address, you use mail or PM to greet new users, etc...


All times are GMT. The time now is 03:05 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.02533 seconds
  • Memory Usage 1,754KB
  • 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_php_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