Well, it seems my hard work (on and off, of course!) has finally paid off. While it doesn't integrate directly with Facebook, I have successfully created a registration engine that allows new users to create their own username on my Madsonic server.

Pre-requisites: 1) A server running MySQL (can be the same server you are running Madsonic from)2) A server with Sendmail or PostFix installed and configured to send email (does not need to "receive" email)3) The registration script, which can be downloaded here: http://www.html-form-guide.com/files/ph ... onForm.zip

Instructions:1) Unzip the downloaded files into your main website folder, so all of the files are under a subfolder called "Source".2) Edit the "source/include/membersite_config.php" file in a text editor or whatever you use (I use Dreamweaver). 2a) Set the "website name" to the name of your site - don't use the URL for your site, just the name. 2b) Set the administrator's email address. 2c) Enter the hostname (or IP address), username, password, database name, and table name for your MySQL server (table name can be anything you want - the script will create the table the first time it is run) 2d) (optional) Create a "random" key.3) Edit the "source/include/fg_membersite.php" file. 3a) Change "$this->sitename" to your site, without the http:// in front. 3b) Copy the "random" key from the previous file and paste it here, under "rand_key" 3c) Scroll down to almost the bottom of this file, to around line 790 or so, or where you find the lines:

If you don't have an account, click {link:HERE|http://yoursite.com/source/register.php} to create an account. You will be able to login after clicking the link in the confirmation email that will be sent to you.

Save these settings, and then logout and you will see this link on your login screen.

Please post up any issues you run into, and I'll see what I can do to resolve them for you.

Last edited by gurutech on 10 Jul 2013, 03:41, edited 1 time in total.

It took me about an hour to get everything working, but that included finding the source script online, modifying it to meet my system specs, troubleshooting a mailflow issue (I forward my mail through smtp.gmail.com, and I had the wrong port # assigned, and no SSL certificate!), and typing up the tutorial.

I'm sure following my instructions should only take 15-20 mins, unless I messed up somewhere!

Hi there, I am having a slight problem getting this to work. I have the latest Beta build of Madsonic on a Ubuntu 12.04 Lts. I tested the script in Apache and it does populate in SQL, once moved to the jetty/xxxx/webapp/ folder it will not redirect. My site page?. Any ideas of what might be causing it?

edit: removed url

Last edited by kleverbear on 25 Jul 2013, 02:42, edited 1 time in total.

Thank you gurutechSo as i stated before i did test it in Apache and it works to an extent, it will populate SQL but nothing goes into Sonic list of users. I just retested again to make sure and it still does the same it wont populate in to MadSonic, any additional pointers?

I figured out my error, i forgot to take of the parentheses out of this line

If i place the curl-command at the position you mentioned, the confirmation mail is useless, because the account is created with submitting the data. This means everyone can register his account on madsonic, you just see it happening. I tried to set the curl-command at a other part of the code, but there is no chance to geht the pw, because it's stored as md5-checksum (which is the correct way to do it).

But if you look in the MySQL database, you can see who hasn't "confirmed" their registration, and I periodically go through Madsonic and delete those users. And the bonus to that is they can't re-register using the same email address because they are still in the MySQL database, but not in Madsonic.

very nice, i will give this a try. an even better idea would be to switch the entire controlfeatures to a MySQL based db. all the music stuff can remain as is, but the rest would be a great thing to have it outside xD

I'm sure the coding could be altered to save user info into an LDAP directory, and then use LDAP for authentication in Madsonic, but I'm not that experienced as a coder, so I wouldn't know how to do that.