Topic-icon Login message

Active Subscriptions:

None
8 years 11 months ago - 8 years 11 months ago #53507 by klox7
Replied by klox7 on topic Login message
I'm a little bit closer to making this work. I just need to know something. When I register through Twitter it redirects me to url like component/jfbconnect/?view=loginregister&provider=twitter&return...

Is it possible to add &layout=edit at the end?

And also a question about one of your prevoius ideas:
...2) Add more code to the registration layout page to dynamically check how the user got to the page. If it was from JFBConnect, you can override the layout however you want.

Is there any documentation about that? To add message at the top and to have password optional or to hide it (because I have set up to auto generate password when regsitering through social network)?
Last edit: 8 years 11 months ago by klox7.
The topic has been locked.
Support Specialist
8 years 11 months ago #53518 by alzander
Replied by alzander on topic Login message

Is it possible to add &layout=edit at the end?

Why? I'm not sure what you're trying to do with this view. JFBConnect doesn't have a profile edit view, if that's what you're looking for. We only show our registration page when a user is registering. After that, they can use the Joomla edit profile page (or whatever 3rd party profile extension you happen to be using).

...2) Add more code to the registration layout page to dynamically check how the user got to the page. If it was from JFBConnect, you can override the layout however you want.

Is there any documentation about that? To add message at the top and to have password optional or to hide it (because I have set up to auto generate password when regsitering through social network)?

No more documentation about that, it's not a standard feature or something we support natively. In other registration views, JFBConnect generally can't automatically generate the password. On the registration page of your choice, you should be able to add the following PHP, which can detect if JFBConnect thinks it sent the user to this page:
if (JFactory::getApplication()->getUserState('com_jfbconnect.registration.alternateflow'))
  // Do something for JFBConnect users here
I hope that helps gives you a starting point to make whatever changes you're looking for,
Alex
The topic has been locked.
Active Subscriptions:

None
8 years 11 months ago #53533 by klox7
Replied by klox7 on topic Login message

alzander wrote: Why? I'm not sure what you're trying to do with this view. JFBConnect doesn't have a profile edit view, if that's what you're looking for. We only show our registration page when a user is registering. After that, they can use the Joomla edit profile page (or whatever 3rd party profile extension you happen to be using).


If I use &layout=edit in the url then location field (Google Maps) for EasyProfile works.

alzander wrote: JFBConnect generally can't automatically generate the password.


What is "Generate Random Password" setting for then? When trying to log in with twitter password field is optional!?!

Do you think it's better to create cutom joomla registration template and add JFB functionalities to it? Is your provided code for this meaning?

Regards
The topic has been locked.
Support Specialist
8 years 11 months ago #53537 by alzander
Replied by alzander on topic Login message

If I use &layout=edit in the url then location field (Google Maps) for EasyProfile works.

I'm completely unsure how that works, but if it does, that's all that matters. To update the registration URL, edit the /components/com_jfbconnect/controllers/login.php file. Around line 110, you'll see:
$app->redirect(JRoute::_('index.php?option=com_jfbconnect&view=loginregister&provider=' . strtolower($provider->name) . '&return=' . base64_encode($return), false));
It sounds like you want to change it to:
$app->redirect(JRoute::_('index.php?layout=edit&option=com_jfbconnect&view=loginregister&provider=' . strtolower($provider->name) . '&return=' . base64_encode($return), false));
Ordering of the parameters shouldn't matter, so that's the cleanest way to do it.

What is "Generate Random Password" setting for then? When trying to log in with twitter password field is optional!?!

That setting is only for Automatic registration. When enabled, the use will be able to authenticate with a Joomla account using the random password created and emailed to them. If disabled, the user will only be able to authenticate with a social network.

For Twitter, the user is directed to the "Normal Registration" flow, so focus on the options in that configuration section, like "Password Field on Registration".

Do you think it's better to create cutom joomla registration template and add JFB functionalities to it? Is your provided code for this meaning?

I think that could be done. The best way to do that though is to use the Social Profile plugin system to integrate with whatever form you want, like we do with JomSocial and EasySocial. Adding our functionality to other forums can be very difficult though, depending on what that integration is supposed to do and what you're trying to integrate with though.. where possible, I'd recommend using the features we already provide as much as you can.

I hope that helps,
Alex
The topic has been locked.