× Joomla Facebook Connect support forum

Topic-icon Login Button Shows double image

Active Subscriptions:

None
14 years 3 months ago #19740 by felray
Ok, my registration page is showing up fine now...I think. However, I am still getting the above error

Notice: Trying to get property of non-object in /home/sphynxm1/public_html/plugins/system/nnframework/helpers/parameters.php on line 106

...on the frontpage and backend admin ONLY when global config is set to maximum. When it is set to default, I get no errors. I don't know if that matters, but I just thought I would let you know just in case.

From the frontpage of my site in the sclogin module there is a link that reads "register for this site" the link is:
www.sphynxmp.com/index.php?option=com_co...=register&Itemid=264

If a user is in Jomsocial and then logoff from their profile and decide to log back in while still in the jomsocial profile area (member login), they are redirected to this page: www.sphynxmp.com/index.php?option=com_co...w=profile&Itemid=255

Your statement: "However, I don't think you need to make that change because you're using JomSocial anyways. That change is if you're using Joomla's registration process, not JomSocial."

I am confused here...why are there 2 different login forms... jomsocial new registration and jomsocial Member Login? Shouldn't there just be one form for both with the Facebook login/register button included? I would like one uniform page with FB login button.

Side note: my sclogin module has Module Parameters that are set to JomSocial...the other options are joomla and Community Builder....does that matter?
The topic has been locked.
Support Specialist
14 years 3 months ago #19753 by alzander
The "Notice" you get when you enable Error Reporting is from a NoNumber.nl extension. If it's causing a problem, you'll need to contact them. It doesn't look like it is a problem from what you describe, but if one of their extensions doesn't operate properly for you, that could easily be the cause.

As for the 2 pages you're looking at, one is for Registration (creating a new user), the other is for Login (logging in an existing user). We can help you add the Login With Facebook button to both forms, so that's not an issue, but it's helpful to understand the purpose of both. Joomla itself has a login form and a registration form as well. But, since you're using JomSocial, that overrides a lot of Joomla's normal page, so when you make changes, you'll want to do it to JomSocial's version of both of those pages. The code you posted above was to change Joomla's login form, not JomSocial's, which wouldn't have caused the changes you were looking for. Hope that explains a bit more.

With all that said, JFBConnect actually can have it's own registration form depending on how you want Facebook users to register on your site. Can you let me know if when a user clicks the Login With Facebook button for the first time:
1) There are no forms, the user simply has a Joomla account created automatically and they are logged immediately in. Profile information (including email) is automatically pulled in from Facebook.
2) The user is redirected to a form where they can select their own username and fill out additional registration questions that you might want. Some profile information (including email) is automatically pulled in from Facebook.

How you want it determines the "User Creation" setting in JFBConnect. If you want 1), choose "Facebook User Only". If you want 2), select "Full Joomla User".

Once you've thought through the process of how you want users created either when registering with Facebook accounts (using JFBConnect) or without (using JomSocial), let us know. Then, we can help you with some pages that you might want to change to work with the process you want.

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

None
14 years 3 months ago #19767 by felray
Alex,

Thank you so much for explaining that to me. To answer your question, I would like for the new user to be redirected to a form where they can select their own username and fill out additional registration questions that I have. Currently have alot of questions in my registration form that are important. I don't want to restrict users who do not have a Facebook account from registering.

Once this is changed, how will it affect my SCLogin Module? Will users that do not have Facebook still be able to login with there non-facebook username and password?

Once a new user is created (either Facebook or not) is there a way I can have them redirected to a welcome page (I created in a hidden menu article) that lets them know that they need to log in with their new info and complete their profile?

Also, when a new user registers on the site, they are sent and activation email. I created a test account last night and when I received the activation email it read:

"Thank you for registering at . Your account is created and must be activated before you can log in."

It should have enter my company name and read:

"Thank you for registering at www.SphynxMP.com or Sphynx Marketing & Promotion. Your account is created and must be activated before you can log in."

I don't recall ever setting up this activation email and I would like to know how I can edit it? Where is this located?
The topic has been locked.
Support Specialist
14 years 3 months ago #19772 by alzander
In that case, you should:
* Install the JFBConnect JomSocial Profile plugin. It's in the profile_plugins zip file that came with the JFBConnect component
* Enable it in the plugin manager
* Go to the "Profiles" tab of JFBConnect and set up any 'mappings' of fields from Facebook that you want to import automatically
* Set the "Show non-mapped required fields during registration" setting
* Mark any fields in JomSocial as "Required', "Registration", and "Profile" that you want shown during registration
* Set the "User Creation" setting of JFBConnect to "Full Facebook User".

Then, with the SCLogin module (let's start here), when a user clicks the Login with Facebook button, they will be brought to JFBConnect's registration page. Here, they can login with an existing Joomla account (if they have one) or create a new account by filling out the registration side of the page. That will also include the extra JomSocial fields you want.

Before we try modifying other JomSocial pages, just test out that flow and see if it works for you for Facebook users that register. For users that don't want to register through Facebook, they'd go through JomSocial's registration flow.

For the Activation emails, that's part of Joomla itself. If you don't want activation to occur, you can disable that in the Global Configuration area of Joomla. You can set the actual text of the activation email through the language files in /language/en_GB directory. The main files to look at are com_user.ini and en_GB.ini.

Hope that helps,
Alex
The topic has been locked.
Active Subscriptions:

None
14 years 3 months ago #19778 by felray
All is good with the registration now. Thank you. Okay, so to address the above question I asked:

"Once a new user is created (either Facebook or not) is there a way I can have them redirected to a welcome page (I created in a hidden menu article) that lets them know that they need to log in with their new info and complete their profile?"

How do I accomplish this?

Questions:
1. Also, does JFBConnect work with the Jomsocial RC One?
2. My JFBConnect Modules will not show in Jomsocial profiles after I set it in the module manager? I would like to show the Live Stream and FanBox in the user's profile. how do I do this?
3. When I am typing in the live stream, the text box moves vertically downward but it never stops. If a person has a lengthy msg to send, eventually their "send/share" button will disappear. From there you will have to delete what you have typed until you can see the send/share button again. Is there some way to prevent this from happening or to put a cap on how many characters can be entered per msg?
The topic has been locked.
Support Specialist
14 years 3 months ago #19781 by alzander
In the JFBConnect configuration, there is a setting for "New User Redirection". If you already have the menu item setup, simply set that there. I'm not sure how to do the same in JomSocial. I'm not sure if they have a new user redirection type link, so you'd need to ask them.

For the other questions:
1) Do you mean the new 2.6 RC1 release? We believe JFBConnect should work with it, but it's not a priority for us. If you run into issues, we'd try to help you fix them, but issues for 2.4 (or any other 'release' versions) would come first. When 2.6 is released, we'll have an update for JFBConnect or our profile plugin, if necessary.
2) Not sure. Are you sure you're setting the modules in a position that exists on the Profile page. If you enable the title in the module, does it show on the page? That will help determine if the module isn't showing at all, or if it's the Facebook widget that isn't actually showing.
3) You can't put a cap on length of text, but we can help you with some CSS that will enable 'overflow' so that as it scrolls down, it will continually be on top of any other graphics on your page. Can you post a link to a page where we can see the Live Stream in action (with that problem)?

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

None
14 years 3 months ago #19782 by felray
2. Nothing shows, not even the title.

3. The link you requested:

www.sphynxmp.com/index.php?option=com_jo...out=table&Itemid=250
The topic has been locked.
Support Specialist
14 years 3 months ago #19797 by alzander
1) If you put other modules in that position (non-JFBConnect ones), do they show? It sounds like that module position may simply not be available where you're trying to display it. If other modules show, let us know, and we can investigate further. If not, you'll need to understand more about the module positions available to you in your template.
2) For the livestream, it's in a very confined space. The module height you have set is for only 250px. I'd recommend increasing that substantially, because the posts won't be able to show more than one (or even less) in that area. I looked at how to set the overflow to display, and not sure it will work. Either way though, I really thing the problem is more related to the sidebar that you're trying to put that into and would fix that first (increase the height of the module, or choose a different location).

Hope that helps,
Alex
The topic has been locked.
Active Subscriptions:

None
14 years 3 months ago #19816 by felray
Ok, I will change the height on the live stream module and see if that works. All other modules show in the profile except JFB modules.

Please let me know how to alter the member login page for Jomsocial. We discussed it earlier, but never got around to fixing it, unless I missed something. I have the Login with facebook working fine on the Homepage, howoever there is still the issue of the member login page. If a Facebook user is directed here, I don't want them to have to navigate to the homepage to login with Facebook. I Facebook button would make more sense.
The topic has been locked.
Support Specialist
14 years 3 months ago #19901 by alzander
Felicia,
Glad we're making progress. Not sure why the JFBC modules don't show in the profile. There's no reason that ours would behave any different than other modules. Can you double check that the template position your using is correct and try changing the menu selection to show the module in "All" menu items. Hopefully, it's a simple mistake. The title of the module is created by Joomla itself though, so if that's not showing, it means that Joomla is hiding the module, not anything happening within JFBConnect.

For the Login page that you want to add the {JFBCLogin} tag too, the file you want to edit is /components/com_community/templates/<YOUR_JS_TEMPLATE>/guests.denied.php

At the bottom of that file is a line like below:
<?php echo $fbHtml; ?>
Add the {JFBCLogin} tag right after that, and you should be good.

Hope that helps,
Alex
The topic has been locked.