I have already posted this in another topic, but I decided to create a new thread. We really need help with these so we'd appreciate it very much.
I am part of team who's working on a social networking e-learning website. We already have a social networking site of our own, developed pretty well, and what we now want is to add moodle to it.
We managed to implement it through iframe, and now we want single login (using moodle's external login).
We have merged two databases, and we're also using external login option, so that we can log on to moodle with our site's username and pass, which is working quite well.
What we now want is to enable login at one place (cause right now we have to log in with same user and pass first on our site and then on moodle). We want to login on our index page (social site's first page), and then automatically login to moodle.
We tried using "Alternate login URL" which states that "the page should contain a form which returns fields username and password". This means that we should input credentials and go directly to moodle, which is unacceptable for us, because we have login.php file of our own. So what we had in mind is to include "moodle/login/index.php" in our login.php file, hoping that it would work. Unfortunately, it doesn't - we manage to log on to our site, but we still need to log on to moodle separately.
Any idea how to solve this problem? If you need any additional information, I'd be happy to provide it.