Login After Register

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in the Customisations Database.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTICE: This forum is only for the announcement of new releases and/or updates of MODs. Any MOD support should be obtained through the Customisations Database in the support area designated for each MOD.

A direct link to support for each MOD is in the first post of the respective topic.
StoarceCreierul
Registered User
Posts: 50
Joined: Sat Mar 27, 2010 1:47 pm

Re: Login After Register

Post by StoarceCreierul »

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.
Stoarce Creierul - a splendid example of PhpBB and WordPress integration done with the WP-United MOD.
User avatar
paulnicholson
Registered User
Posts: 230
Joined: Thu Jun 04, 2009 9:04 pm
Location: Australia

Re: Login After Register

Post by paulnicholson »

Nicely explained, StoarceCreierul.

It's nice to see people explaining things from zeropoint, and giving every piece of information required with no expectations of user preknowledge. I hope this culture continues to spread throughout phpbb.com. Complete explanations are rare opportunities for people who are new to this whole forum creation thing to figure out what's going on.

So thank you. :D
User avatar
keith10456
Registered User
Posts: 2315
Joined: Thu Feb 24, 2005 6:55 pm

Re: Login After Register

Post by keith10456 »

Comkid wrote:No problems, hopefully, v1.1 will come out, tomorrow :D
I truly look forward to this :D
StoarceCreierul
Registered User
Posts: 50
Joined: Sat Mar 27, 2010 1:47 pm

Re: Login After Register

Post by StoarceCreierul »

paulnicholson wrote:Nicely explained, StoarceCreierul.

It's nice to see people explaining things from zeropoint, and giving every piece of information required with no expectations of user preknowledge. I hope this culture continues to spread throughout phpbb.com. Complete explanations are rare opportunities for people who are new to this whole forum creation thing to figure out what's going on.

So thank you. :D
My pleasure !

Now I'm trying to figure out how can automatically login and redirectirecting to the avatar page can be done in case of using e-mail confirmation. So when clicking the confirmation link received, you are send directly in your newly created account's UCP choosing an avatar.
Stoarce Creierul - a splendid example of PhpBB and WordPress integration done with the WP-United MOD.

Return to “[3.0.x] MOD Database Releases”