By Antonio Duran on Tuesday, 17 January 2017
Posted in Technical Issues
Likes 0
Views 873
Votes 0
Hi.

I am Antonio, developer of Joomdle. Joomdle integrates with Easysocial in several ways (sorry, still pending to list our plugins in your app directory).

One of the things Joomdle does is to make sure username entered on registration is valid for Moodle.
For this, we have a user plugin that works great with normal Joomla registration.
But this plugin won't work fine with Easysocial registration process. That's normal, as the process is different. For example, we needed to create a different plugin to have the same funcionality working with Jomsocial.

So, what I need is to be able to create a new plugin/app to add extra validation to the username field.
I started by looking into joomla_username field app, as I thought I should create new plugin based on this one.
But then I noticed that this new plugin would need to create a full new "username" field, so admin would need to modify login form to replace one for the other. And I think you cannot do that, as username field is mandatory and Easysocial won't let you remove it.

So, my question is: is there a way to add extra validation to an existing field?

Thanks in advance,
Antonio
I think you can create a Joomla user plugin to validate during the registration.
·
Tuesday, 17 January 2017 16:19
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Alex.

Thanks for your reply.

As I said:
> For this, we have a user plugin that works great with normal Joomla registration.

But using this plugin with Easysocial just gives a blank error box.

That's why we need to create some Easysocial specific plugin/app to integrate with Easysocial's registration process.

Please let me know if you need more information.

Thanks,
Antonio
·
Tuesday, 17 January 2017 16:25
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Stackideas & Hi Antonio

Sorry for jumping this thread but Joomdle with Moodle is the only LMS (apart from Shika) that works with Easy Social.
I believe that I am not the only person in here using this amazing component from Antonio.

Any help with this issue would be greatly appreciated.

This is sooooooo almost working here:
http://www.finalbug.net/courses-fcpx-and-related-post-production-tools
Clicking on a course eg "3D titles" and on the link below the course:
Note: We are testing a Payment Gateway here... You need to login & have purchased this course for 0€: 3D Titles in FCPX.

Takes you here:
http://www.finalbug.net/login-here
At which point things start to break down as Antonio outlines above.

all the best

Paul
·
Tuesday, 17 January 2017 18:27
·
0 Likes
·
0 Votes
·
0 Comments
·
hey Antonio,

I am sorry for the delay of this reply,

But using this plugin with Easysocial just gives a blank error box.

Is there any error show out? May i know how do you replicate this error on your side?

That's why we need to create some Easysocial specific plugin/app to integrate with Easysocial's registration process.

Please let me know if you need more information.

Yes, the proper way is create a specific user plugin for Easysocial, so when user during the registration, this user plugin will get trigger and do some validation stuff, perhaps you can share with us that plugin you created?

You can share to my email : arlex.wong@stackideas.com
·
Wednesday, 18 January 2017 10:50
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Arlex, I have no idea what you did or how you did it...

...but in my 45 years on this planet I have honestly never been so happy to see an error message.
Also thank you to Antonio for being there.
I am still testing but every thing but I believe this is working as well as it can under the circumstances.

Going Beyond the FINAL bug

Paul
·
Friday, 20 January 2017 17:55
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Paul,

I still investigate another 2 issue :

1. mini registration issue
2. After login redirection issue

I will keep you update regarding this.
·
Friday, 20 January 2017 18:09
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Arlex

1. mini registration issue
2. After login redirection issue


Any insights/improvements that provide are greatly appreciated.

thanks in advance

Paul
·
Monday, 23 January 2017 15:40
·
0 Likes
·
0 Votes
·
0 Comments
·
The mini registration can show the error when the user type 1 capital word into username field now.

Now only left the login registration issue, I am waiting for Antonio reply from my email, I will keep you update regarding this.
·
Monday, 23 January 2017 16:03
·
0 Likes
·
0 Votes
·
0 Comments
·
Bingo just tested this.

If I register using the mini registration and:

a) enter all small letters in the user name I end up using the "quick login" and am logged in.
b) enter a capital letter(s) in the user name I am taken to the full registration and am told “Username cannot contain spaces”

I was even able to generate an error “Username cannot contain spaces” is that from you as well?

Or was that always there?

thanks

Paul
·
Monday, 23 January 2017 17:31
·
0 Likes
·
0 Votes
·
0 Comments
·
“Username cannot contain spaces”

This checking is coming from Joomdle.

First it will check for username whether there got contain space or not.

Second it will check for username uppercase.
·
Monday, 23 January 2017 23:10
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Paul,

Antonio already get back to me regarding that login redirection issue.

This is what he replied to me :

Thanks for the info and the quick fixes. It's great to know that is know working without the need for any additional plugins.

As for your question: this is known issue with Joomdle when using SSO (Single Sign On) with redirect, like the client has configured.
In that case, SSO is done by redirecting browser to a landing page in Moodle, and then redirecting it back to Joomla.
Problem with this is that the redirect back is limited and will not be able to redirect user to the page you configure in the Profile Type.

What I had thought as a limited help is to add a option in Joomdle plugin to select a URL where to redirect after login. This will help the general case where all users are redirected to the same page after registration/login.
This would not still not be able to redirect different profile types to the right place, as the SSO plugin is more general and does not know about Easysocial.
For the future, maybe the SSO plugin can be enhaced to use additional plugins for getting the URL from them, so we could have one for Easysocial that would return URL for the profile type being used at registration.
I will add it to my list, although I don't think it's critical, as most of the users will be able to use redirect-less SSO, which does not present this problem.


So we unable to do anything about it for that login redirection issue.
·
Tuesday, 24 January 2017 18:43
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Arlex

No worries.
Antonio very kindly helped me with this:

As I told you, what I did at your site in the meantime is to put a manual redirect to index page.
If you want to redirect to some place else, just tell me and I will change it in the file for now.
For next version, you'll be able to select which page to redirect to.


So everything is working perfectly now.

Many thanks

Paul
·
Wednesday, 25 January 2017 00:09
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

You are most welcome. Glad to hear that your issue has been resolved now.

As a gentle reminder, kindly start a new thread if you have any other issue in the future so it will be easier for us to manage your inquiry. I will lock and mark this thread as resolved.
·
Wednesday, 25 January 2017 10:24
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post