Hi everyone, I am quite new to Amember Pro so there is a chance there is something like that mentioned in the manual and I simply haven't found it yet... When a new user subscribes to my product, I'd like Amember to "trigger" / run an external PHP script. The external script could, for example, add the user info into a separate database (beside the Amember one, not instead) etc. What's the best way to accomplish this with Amember? I'd like to use a solution that is not wrecked after upgrade. Thanks! Tomas
Please have a look http://manual.amember.com/Using_site.inc.php_and_hooks#finish_waiting_payment.28.24payment_id.29
I'll read the whole page, but it seems to be easy to understand for me and well written. By the way, you have a coding error in the first example. Some missing brackets and the strlen function is missing an argument. I know I know... Tomas
Making a specific plugin would do it, but the question to ask is that aMember already has the details why flip them somewhere else? You can easily check whether someone has a subscription current or am I missing something?
jenolan, Amember already has *some* of the details I need for my "external" script to work. For example I need the user password in crypted MD5 format and then add the username together with the crypted password (by "crypted", in this case, I mean created with the PHP crypt() function although it will be one way hashed in fact) into a text file. Of course, this is just one way to do it. Another way would be to set Cron to periodically "scan" the Amember database and extract the necessary info. It's just that the first way seems to be somewhat "cleaner" to me. Tomas
Yah but this sounds as though you are building a user file (svn?) for access to something. What happens when you cancel access in aMember that's why I suggested a plugin as the add/remove is part of a plugin and does all the work. If you are building a secondary user access widget the cron might be the way to go if you do not want to go the plugin way. To help more I would need to understand more of the backend, ie non-aMember, stuff you want to do so I could make a reasoned reply. Cheers .. Larry