3.2 Redirect new users on 1st login

All edits in this section have been tested on 3.2.x and have been collected from phpbb.com and other sites.
Forum rules
To add a post here you need to click on the topic attribute by doing this you aggree that you have tested the snippet your adding on 3.2.x
User avatar
martin
Founder
Founder
Posts: 637
Joined: Sun May 24, 2015 3:14 pm
Status: Offline
Screen Resolution: 1920x1080
  • Ubuntu Chrome

Redirect new users on 1st login

Dec 2017 24 23:38

Post by martin » Sun Dec 24, 2017 11:38 pm

Post by martin by martin Dec 2017 24 23:38

There is an ext that will do this but i found it broke too many other exts also it was for 3.1

Open includes/functions.php
Find This may be a partial find and not the whole line

Code: Select all

			// Special case... the user is effectively banned, but we allow founders to login
			if (defined('IN_CHECK_BAN') && $result['user_row']['user_type'] != USER_FOUNDER)
			{
				return;
			}
Add after Add these lines on a new blank line after the preceding line(s) to find

Code: Select all

                        if($user->data['user_lastvisit'] == 0)
			{
				redirect(append_sid("{$phpbb_root_path}welcome.$phpEx"));
			}
Now take the files and upload the contents of root into your root (where config.php is)
purge boards cache.

You can change and add your topic link in the /language/en/welcome.php
root.zip
Demo also works on all styles welcome.php
You do not have the required permissions to view the files attached to this post.
Save page loads and make pages shorter find it here. see here Show user sig once in a page
Use this to install an ext on your board no more ftp or path making.
Path too install this ext is ext/boardtools/upload https://www.phpbb.com/community/viewtop ... #p13700571

User avatar
Puchahawa
Vip
Vip
Posts: 22
Joined: Mon Mar 14, 2016 10:20 pm
Status: Offline
Screen Resolution: 1360x768
  • Windows 7 Chrome

Re: Redirect new users on 1st login

Feb 2018 05 23:09

Post by Puchahawa » Mon Feb 05, 2018 11:09 pm

Post by Puchahawa by Puchahawa Feb 2018 05 23:09

Hey Martin, thought you might be interested to know that David came out with a 3.2 version of his ext. I've played with it a bit today. Getting mixed results. It is still "in process" so there is that. :lol: Also possible there is some user disfunction involved. :shock: If I need something like this will likely user your option here. :D

Edit: also, it shows < 7.1 php. May be due to needing more work for it to work correctly on 7.1 or ??

https://github.com/david63/david63-loginredirect

User avatar
Scanialady
Member
Member
Posts: 7
Joined: Tue Nov 01, 2016 9:50 am
Status: Offline
Screen Resolution: 1920x1080
  • Windows 10 Chrome

Re: Redirect new users on 1st login

Feb 2018 13 06:45

Post by Scanialady » Tue Feb 13, 2018 6:45 am

Post by Scanialady by Scanialady Feb 2018 13 06:45

Puchahawa wrote:
Mon Feb 05, 2018 11:09 pm
Hey Martin, thought you might be interested to know that David came out with a 3.2 version of his ext. ...
I am not sure if this will happen in this century. :lol: