×

Notice

The forum is in read only mode.

LoginRedirect-Plugin: First-Time Redirect

9 years 5 months ago #3551 by Jonas V
Hello!

Since almost 3 hours I'm trying to edit the jsjobsloginredirect.php file.

With an SQL query which checks the lastvisitTime of the current user I want to achieve that the two user role groups are redirected to an other page when they login the first time.

I use

if (!$user->guest && $user->lastvisitDate == "0000-00-00 00:00:00") { .... }.

$finallink seems to be the link for the redirection, so i already tried:

if (!$user->guest && $user->lastvisitDate == "0000-00-00 00:00:00") { $finallink="page1.htm" }
else { $finallink="page2.htm" }

But this does not work.

Also wrapping up the complete code does not work.

Any ideas?

I would be really really happy!
Time to create page: 0.066 seconds

Please publish modules in offcanvas position.