How To / General

User hooks interferes with CB logout module redirect

  • Phoenix
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
8 years 11 months ago #11 by Phoenix
Thanks, yes now it makes sense!

For new users that register, I am limiting the type of characters they can use in their username to only uppercase & lowercase letters, and numbers, no spaces or special characters. So for new accounts, it should not be a problem. I am using Community Builder for this, by the way (and use the CB plugins for Joomdle).

Please Log in or Create an account to join the conversation.

More
8 years 11 months ago #12 by Antonio Durán
Replied by Antonio Durán on topic User hooks interferes with CB logout module redirect
> they can use in their username to only uppercase & lowercase letters,

I think you should not allow uppercase, as Moodle does not allow it. Even if everything works fine now.... I am always a bit paranoid :)

Please Log in or Create an account to join the conversation.

  • Phoenix
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
8 years 10 months ago #13 by Phoenix
I think that for now, I will at least keep caps enabled for Joomla usernames :) Several years ago, I used Moodle as well to connect with Joomla. It was another bridge component then (I don't think that Joomdle existed yet?), I don't remember what it was called. But it was also able to bridge the caps/no caps problems, and so can Joomdle. So I trust that this is not likely going to become an issue :-) If it does, then I can still change it on Joomla afterwards, it's not like I don't have user accounts on there right now without special characters that need fixing too :)
Until now, I have been using eFront, with the JFusion bridge. But eFront is less user-friendly than Moodle, and JFusion stopped to exist after Joomla 2.5, so it was a good idea to move to Moodle with Joomdle.


I do have another question for you:
I want to make a copy of my current Joomla site + my current Moodle site (which are now connected with Joomdle).
The reason for this copy is that I have a "test copy" of both websites. These sites will not be live, but I want an exact copy so that I can use it to test upgrades to new versions of Joomla, Moodle, ... first, before doing it on the live site.

If I do this, will there be an issue with Joomdle? Because I noticed that there is a key in Moodle for Joomla to call on, and in Joomla for Moodle to call on. I think that, if I make an exact copy of Joomla & Moodle (on the same server, same domain name, just different map name), the keys will be copied over too, and if there are two installations with the same keys, will that not cause conflicts?
If yes, will it automatically generate a new key? Or is there a way for me to do this manually?

Thanks :)

P.S. Very pleased so far with the support on this Joomdle forum, thank you so much for all your help, it's much appreciated :)

Please Log in or Create an account to join the conversation.

More
8 years 10 months ago #14 by Antonio Durán
Replied by Antonio Durán on topic User hooks interferes with CB logout module redirect
Ok, thanks for the info. I know other users who also allow caps, and they reported no problems, sp you should be fine :)

> These sites will not be live, but I want an exact copy so that I can use it to test upgrades to new versions of Joomla, Moodle, ... first, before doing it on the live site.
Great. That's what I always recommend to minimize upgrade problems.

As for how to do it: you take a copy of files and databases, and set Joomla and Moodle on a new folder, right?
As you say, all Joomdle configuration wiill be kept, but you don't really need to worry about tokens. But you need to be careful to change URLs to use the new ones, or you will be connecting to live site from test site.
So, after setting up new joomla and moodle, you need to go to Joomdle in both of them and change live URL by test URL.

You could also change tokens if you want, although is not really needed. To do this you need to reset token in Joomla database directly, and re-create the token in Moodle.

Please Log in or Create an account to join the conversation.

  • Phoenix
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
8 years 10 months ago #15 by Phoenix
Hello,

Yes, I intend to copy all the files into a different map, like this:

If the original is:
/joomla/
/moodle/
Then the copy would be something like:
/clone/joomla/
/clone/moodle/

The paths and URL's would be adjusted in the configuration file of Joomla and Moodle.
And, of course, the SQL database settings will point to a MySQL database which is also an exact copy, but with a different name each time.

Thank you for letting me know that I need to change the URL in Joomdle on both Joomla and Moodle as well, as I might otherwise not have thought about that.

Please Log in or Create an account to join the conversation.

More
8 years 10 months ago #16 by Antonio Durán
Replied by Antonio Durán on topic User hooks interferes with CB logout module redirect
Changing tokens can also help you be more sure that you are not connecting live and test sites: if you generate new tokens in test site and use those, you would see an error in system check if you ever try to connect to live site, as token would be different.

Please Log in or Create an account to join the conversation.

  • Phoenix
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
8 years 10 months ago #17 by Phoenix
How do I do this, to generate new tokens?

For Joomla I need to go into the MySQL database, I think, but what do I need to look for there exactly, and what do I need to do then? Just make the token field empty?

And what do I need to do in Moodle?

Please Log in or Create an account to join the conversation.

More
8 years 10 months ago #18 by Antonio Durán
Replied by Antonio Durán on topic User hooks interferes with CB logout module redirect
In Joomla:
- Go to database, table extensions. Search bu name=com_joomdle
- Go to params field, and look inside for something like:
"joomla_auth_token":"oVhslG2zKHovJ4prJqYOMhXoc5Ca9HjF",
You can just remove oVhslG2zKHovJ4prJqYOMhXoc5Ca9HjF (your live key), and leave it as:
"joomla_auth_token":"",

Then you can go into Joomla backend, and save Joomdle config again. A new token will be generated.
Now that I explain it I see it is not a nice process, so I will add it to my TODO list: button to regenerate token :)

In Moodle:
- Go to Plugins -> Web services -> Manage tokens
- Delete token
- Create new token for joomdle web service

Then you just need to enter both new tokens in Moodle and Joomla.

Please Log in or Create an account to join the conversation.

  • Phoenix
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
8 years 10 months ago #19 by Phoenix
Hello,

I just made a copy of my Joomla & Moodle websites, and am working on configuring Joomdle for the copies.

I already adjusted the URL's in the configuration of Joomdle in both Joomla and Moodle. I also managed to delete the Joomla token in MySQL with your instructions. A new one was created.
I deleted the token in Moodle, and then went to authentication -> Joomdle.

But when I then go to Web Services -> Manage Tokens, there is no new token created there, the list is empty. So I don't have a token to enter in Joomdle's configuration in Joomla.

Please Log in or Create an account to join the conversation.

More
8 years 10 months ago #20 by Antonio Durán
Replied by Antonio Durán on topic User hooks interferes with CB logout module redirect
In that tokens page, you need to click Add to create a new token.
Then select Joomdle service and the joomdle_connector user, and save changes.

Please Log in or Create an account to join the conversation.