× Joomla Facebook Connect support forum

Topic-icon Redirect for new FB users to registration page

Active Subscriptions:

None
Hello,

When first time facebook users sign up, they are redirected to a page where they can connect their joomla accounts or register for one. I want this page to come on its own page and not on the front page.

url: component/option,com_jfbconnect/view,loginregister/

Thanks
The topic has been locked.
Support Specialist
14 years 10 months ago #12179 by alzander
I'm not sure what you mean by it's on the front-page. That page is it's own page that's not related to your front-page at all. The only way I can think of that it would be similar is if you have modules set to show on all pages, they would also show on this registration page.

Hope that makes sense, but if you need help figuring something out, please post the URL of your page so we can see more clearly what's going wrong.

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

None
14 years 10 months ago #12181 by fb_511591345
url is: www.techdsolutions.com/Create-an-account/

Please click on "login with facebook" and you will see that you are taken back to the home page but the step is on the page and not shown given the design of the site (large featured page). This is not good as new users will not nicely flow through the process....

see image here
File Attachment:


Another reason that prompted me to ask was having the same issue with sh404sef error page. They however provided a section to change the default from "0" that links to the index file to the menu id number. and that worked so that the error page no longer showed up in the assigned area to display articles on the home page.

Hence I am assuming somewhere in the code I can tell it where to go.....

A work around that usually works is adding the article or component to a menu then opening it from there. It usually works.

Please let me know if you can help.
The topic has been locked.
Active Subscriptions:

None
14 years 10 months ago #12182 by fb_511591345
the image in last message was incorrect...see here instead...
File Attachment:
The topic has been locked.
Active Subscriptions:

None
Alex,

any thoughts?
The topic has been locked.
Support Specialist
14 years 9 months ago #12378 by alzander
Jason,
Very sorry for the delayed response.

The problem you describe will happen (in all components) that have no menu item specific to them and you're using modules on your site assigned to "All" menu items. This will actually show those modules on all pages, whether they're a specific menu item (have Itemid=xx in the URL) or not (like JFBConnect). We don't have a menu Item id because the only way to get to our page is by 'us' redirecting to ourselves.. not through a menu link click.

Hope that makes sense as far as an explanation. As for a solution, there's a few possibilities:
The "Joomla way":
1) Don't use modules that show on 'all' pages if you don't want them on all pages. This is simply how Joomla works, so it's good to get into this behavior before you run into this with other extensions.

A good solution for JFBConnect and other extensions:
2) Get Advanced Module Manager from NoNumber . It's a great extension that enhances the normal Joomla module manager. With it, in addition to saying where modules can show, you can explicitly hide modules on certain pages. For in the URL area, you can simply tell it to 'hide' whatever modules you don't want on 'index.php?option=com_jfbconnect&view=loginregister'

Not as good a solution, but may work: Force an Itemid. These will add an Itemid to the URL of the Login/Register page. This isn't a srecommended because it will fix it for JFBConnect, but you'll need to do something similar for any other extension with this problem:
3) Use sh404SEF to redirect the non-SEF URL of 'index.php?option=com_jfbconnect&view=loginregister' to 'index.php?option=com_jfbconnect&view=loginregister&Itemid=0' (add Itemid=0 to the end). Not sure how to do this off-hand, but if they told you how, maybe you can.
4) Add a fake Itemid to the redirection. We don't recommend this, as you'll need to remember to do this when you upgrade, but it's pretty simple to do. In the /components/com_jfbconnect/controller.php file, around line 83, you'll see the redirection like:
$app->redirect(JRoute::_('index.php?option=com_jfbconnect&view=loginregister', false));
Add the Itemid to this. I think '0' will work, but you can also try something like 9999:
$app->redirect(JRoute::_('index.php?option=com_jfbconnect&view=loginregister&Itemid=0', false));

Hope that's not too long, but you seemed curious as to 'why' it was happening, so the above will hopefully explain a bit more and give you a solution you can work with.

Thanks again for your patience, and let us know how things go, or if you need anything else,
Alex
The topic has been locked.
Active Subscriptions:

None
You are a genius....and helpful. Attributes that I hope to embody as an entrepreneur. :)

The Advanced Module Manager from NoNumber worked. Do you have a generally blog? I think it will be great for business (preaching to the choir) but will give us more insight into best practices you encountered.

E.g. what are some generally recommended extensions you would recommend. What are some free/commercial must haves for joomla sites etc.

Looking forward to it, if you have time. No need to respond.

I am happy because my problem seemed to be fixed.
The topic has been locked.
Support Specialist
14 years 9 months ago #12869 by alzander
Jason,
Thanks for the compliments. I read this post on Friday, and it made my weekend :)

As for blogs, we do have one, but mainly focus it on notes and info on our extensions (new releases, etc). We always have dreams of more how-to's, best practices and such, but just haven't gotten around to it. Good to know that someone out there thinks one or two of my thousands of posts might have some sage wisdom :D

As for go-to extensions, there's only a few that I'd recommend for just about any site.. but plenty more if you have specific features or qualities you're looking for.. just let us know.

Advanced Module Manager - As you know
Registration Validator 2 - Great spam blocker, it prevents bogus signups and plenty of other 'bad' behavior. We started using it on this site after we started getting hundreds of crap signups a day just to fill out their forum profile and leave spammy signatures. The link below is for the paid version (~$20), but they have a free one too that I haven't used.
extensions.joomla.org/extensions/access-...authentication/10802
Akeeba Backup - The best backup tool. No link.. easy to find and I'm lazy
JCE Editor - Great editor replacement for the back-end instead of TinyMCE
K2 - Not as necessary in a Joomla 1.6 world, but still great for serious blogging sites

Hope that helps, but again, if you have any other questions (general or of course about JFBConnect), just let us know!

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

None
Thanks, Alex. Great stuff.

So I got the issue to be resolved. Which is great. However, the new users are not added to the joomla users. Is this only will happen if they create or register for a new account on the "welcome" page for first time facebook connect user?

Also, I notice that the default registration process is no longer working. No email is being sent (with this option "on" under control panel and the user is not able to use their newly created credentials, to login. Any known issues here?
The topic has been locked.
Support Specialist
14 years 9 months ago #12889 by alzander
New user's should definitely be created in the Joomla table, but it depends on how you have the User Creation setting configured to determine when they would be created. If it's set to "Full Joomla User", they'll see the Login or Register page of JFBConnect where they can log in with an existing Joomla account (which will just link the Facebook user to the existing Joomla user) or create a new user on the right side of the form, which will then be associated to the FB user. If it's set to "Facebook User Only", then the user will automatically be created when the user tries to log in without them having to fill out a form.

In both cases though, if you have the "Automatically map users by email address", when a user clicks the blue button for the first time, if there's a user in your system already with the same email address as the Facebook user, those accounts will automatically be linked.

Hope that makes sense.

As for why things aren't working, my guess is that you have either an authentication plugin or user plugin (not from JFBConnect) that's redirecting the user to a different page. If this happens, the full registration process won't occur, and what you describe will happen. If that's not the case, then try disabling any JFBConnect profile plugins you have enabled and see if you run into the same problem. Either way, let us know what happens, and we can help you get going from there.

Thanks,
Alex
The topic has been locked.