Topic-icon Version 1.1.0

Active Subscriptions:

None
12 years 1 month ago #19881 by stephernandez
Version 1.1.0 was created by stephernandez
Hello,

I've downloaded the version 1.1 but I don't see where I can display/hide field in the registration form as announced (name, username, password, etc).
Is it coming with a newer version of SCLogin ? And the question at 1 billion dollars : when ?

Thx for your help.

Regards.
The topic has been locked.
Support Specialist
12 years 1 month ago #19894 by alzander
Replied by alzander on topic Version 1.1.0
You're correct, the 1.1 version doesn't have that ability. It was something we investigated, but had already made a lot of changes and didn't want to add another complication on top of it.

However, with that said, it should be a pretty easy process to help you make a few minor code changes to hide and prefill those fields in now. Can you tell me what you'd like the username to look like? For JFBConnect, we offer the following (similar) options:
1) The LinkedIn Identifier for the user. This is basically a random string, and not what we'd recommend.
2) FirstName.LastName (john.smith)
3) First 3 letters of first followed by first 3 letters of last (johsmi)

Let me know, and we can look into the best way to implement the above in the current v1.1 release. It may take a few days, but we should be able to get you going!

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

None
12 years 1 month ago #19913 by stephernandez
Replied by stephernandez on topic Version 1.1.0
Ok I understand.

I would like the registration page like this:
1/ No login features (left side of the page) that can mess the user. In my test some users don't know where to fill the form (use another time linkedIN login for example). They didn't understand (and lot of them will have the same problem) that they need to be registered in Joomla! before (and for me they shouldn't have to know that)
This page should only have registration informations

2/ No ask for login and password stuff (they could be created randomly and not shown to the user). The only thing I want is a valid email adress.

All my users will connect them only with their linkedIN account.

So, in a perfect world, my registration page should only have 3 fields
- Name (as filled with linkedIN information like actually)
- Email (with 2 field as actually)
- The permission box checked (I manage this and I did it)

Thx for your help.
The topic has been locked.
Active Subscriptions:

None
12 years 1 month ago #19929 by stephernandez
Replied by stephernandez on topic Version 1.1.0
Well,

I manage to remove the login form by removing the div in components/com_jlinked/views/loginregister/tmpl/default.php

I manage to have pre-filled field by adding some stuff like $this->form->setValue('username', null, $profile->get('id')); in the views/loginregister/view.html.php file

Now I'm blocked to hide this 2 fields (username and password) that are already filled.

My question: where the html code is about those 2 field to change type by a hidden form ?
I search in all files and I don't see them.

Thx.
The topic has been locked.
Support Specialist
12 years 1 month ago #19968 by alzander
Replied by alzander on topic Version 1.1.0
Well, aren't you the go-getter :)

You sound like you're editing the exact file we would have recommended. If you want to post your code, we can tell you if there are any issues we can see with what you've done. To hide the fields, you simply want to add the following lines:
$this->form->setFieldAttribute('username', 'type', 'hidden');
            $this->form->setFieldAttribute('password', 'type', 'hidden');
            $this->form->setFieldAttribute('password2', 'type', 'hidden');
That should be added after the following line in view.html.php:
$this->form->setValue('name', null, $profile->get('first-name') . " " . $profile->get('last-name'));
I'm assuming that's where you're adding your code already to pre-populate, so it should be familiar. If you need help though, please let us know.

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

None
12 years 1 month ago #19970 by stephernandez
Replied by stephernandez on topic Version 1.1.0
Really good !
Now it works as I want :)

Last question : how can we make the SCLogin as the login form by default.
When an unregistered user want to access in a restricted area the joomla login module appear, not the SCLogin module
The Joomla! module add stuff like forgot password or username and the standard login form, not jlinkedin

I edit the classic module and remvoe stuff that I don't want and put the {jlinkedin} thing to connect. Is there another way that I miss ?

regards.
The topic has been locked.
Support Specialist
12 years 1 month ago #19977 by alzander
Replied by alzander on topic Version 1.1.0
Glad we're making progress!

There's not really an easy way to make the SCLogin form the default. We're planning an option to automatically add the "Login With LinkedIn" button to the standard Joomla login area in the future, but just not there yet. In the meantime, what you mention is probably the best way to do what you're looking for. We would recommend creating a template override for the login view by copying components/com_users/views/login/tmpl/default_login.php to /templates/<YOUR_TEMPLATE>/html/com_users/login/default_login.php and editing there. That ensures you won't loose changes as you upgrade Joomla.

The only other option I can think of is to create a Joomla article, explain why the user should login and add the {JLinkedLogin} tag to that article. Then, using the Joomla Redirection in Joomla 2.5, redirect the standard Joomla login page (index.php?option=com_users&view=login) to that article. Could cause other issues with the redirection after the user logs in back to where they were coming from, but worth a shot.

Hope that helps, and let us know it goes!
Alex
The topic has been locked.
Support Specialist
12 years 1 month ago #20025 by alzander
Replied by alzander on topic Version 1.1.0
stephernandez,
Just wanted to check in and see if you still needed anything. Sounds like you are so close, that I'd like to just make sure it's all finished up.

Whenever you are done, we'd love it if you'd consider leaving a rating and review on the Joomla Extension Directory for JLinked, or our support. It's certainly not required, but very appreciated:
extensions.joomla.org/extensions/access-...on-cloud-based/18957

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

None
12 years 1 month ago #20041 by stephernandez
Replied by stephernandez on topic Version 1.1.0
All is ok and works like we want !

I was out of office yesterday ;)

Thx for your help !!
The topic has been locked.
Support Specialist
12 years 1 month ago #20050 by alzander
Replied by alzander on topic Version 1.1.0
No problem. Glad to hear you got it going. Should you need anything else, we'll be here. We're also (always) looking for input on how you think we can improve JLinked, so if you have any other suggestions or feedback, let us know!

Thanks,
Alex
The topic has been locked.