× Joomla Facebook Connect support forum

Topic-icon Redirect Only on First Connect Only if on Homepage

Active Subscriptions:

None
14 years 2 months ago #21027 by Ivan
Hi,

I would like to know if its possible to redirect only if im on the homepage. When I make a request i bring back users to a profile page on my site. I want these new users to remain on this page if they are new. I only want users that land on my main page to redirect to a different page.

Where would I be able to do this.

In getNewUserRedirectionURL() in models loginregister.php I tried to hard code the url thinking this would be the place to do it but after doing this it redirects all all users who connect via facebook to this url which is not what I want.
The topic has been locked.
Support Specialist
14 years 2 months ago #21103 by alzander
Ivan,
What kind of redirection to you have setup right now? Are you using the "Enable New User Redirection" setting and specifying a menu item, or is that disabled? Depending on what you're configured to do, there will be different ways to detect where the user is coming from and what to do then.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
14 years 2 months ago #21116 by Ivan
I have redirect on first connect off as i dont want to redirect users that i bring to the profile page. I also have redirect returning users off because i dont want to redirect returning users off also. I would like to only redirect when a user first connects. Do you think this is possible...
The topic has been locked.
Active Subscriptions:

None
14 years 2 months ago #21153 by mtk

Ivan wrote: I have redirect on first connect off as i dont want to redirect users that i bring to the profile page. I also have redirect returning users off because i dont want to redirect returning users off also. I would like to only redirect when a user first connects. Do you think this is possible...

Helo Ivan,
are you using CB, JomSocial or any other User Profile extensions?

Mati
The topic has been locked.
Active Subscriptions:

None
14 years 2 months ago #21170 by Ivan
Hi Mati,

I am using Jomsocial.
The topic has been locked.