If you want your users, after registration, to be logged in automaticaly AND be taken to profile avatar gallery, you need to find in includes/ucp/ucp_register.php
Code: Select all
$message = $message . '<br /><br />' . sprintf($user->lang['RETURN_INDEX'], '<a href="' . append_sid("{$phpbb_root_path}index.$phpEx") . '">', '</a>');
trigger_error($message);
and replace it with
Code: Select all
$auth->login($data['username'], $data['new_password']);
redirect('ucp.php?i=profile&mode=avatar&display_gallery=GALLERY_NAME');
For this to work, you will have to create a folder inside images/avatars/gallery called GALLERY_NAME or however you want it and put some 90x90 pictures in it. Don't forget that if you choose a custom name for the folder, you will have to replace it in the script above.