Other PAID: User Registration Via API (From DAP)

jjeeffff

Member
I would like someone to write a plugin for Digital Access Pass (DAP) membership software that will register users on my XenForo installation via the Xenforo API.

DAP has a plugin system that can be activated when a user is added to a product (when they buy) and also when a user is removed from a product (when their access lapses due to cancellation or non-payment). It ships with plugins already for GetResponse and MailChimp - that adds a users name and email address to those mailing list services. I need an equivalent written for XenForo that registers the user with their name and email address.

If the user cancels their membership via DAP - the user should be moved to a specified usergroup in XenForo.

I've had a look at the GetResponse plugin that DAP ships with. I'm not a programmer, but it doesn't look overly complicated. Its only 132 lines long including comments - but I suppose the 'difficulty' of the project would be more determined by the XenForo API.

If you can quote me for this work I'd appreciate it. Similarly, I think this would be a popular product if someone wanted to develop it themselves to sell. Currently DAP only integrates with VB - XenForo integration would be really useful. Otherwise I'd consider paying for the time it takes to develop.

Please let me know if you can help or if you want more info on the plugins that ship with DAP and see how it all works.

Thanks
 
Hey jjeeffff.

I still have a couple of things I have to add to my XenAPI before I can implement user registration, although I'm planning to do so within a week or so. What you are requesting will be fully supported by my XenAPI, I'll just have to look into DAP before I tell you if I'm capable of creating what you're requesting.

I already have a couple of requests for a XenForo <=> Wordpress bridge, I was planning on starting with that after I get all the features I need implemented.

If you can show me an example of a DAP plugin, that'd be great.

- C
 
Thanks a lot for updating your plugin to allow this :)

Here is an example of the GetReponse plugin (I hope its ok to post it like this - its useless to non-DAP owners):
http://pastebin.com/hgFdgKnA
Just by glancing through the code I can see that I should be able to create something once I get the functions added to my API.
Are you by any chance able to set me up with a testing environment once I get there?
 
Here is a bit more info that might be helpful...

In the product settings page of DAP, there is a text box where you can add parameters to pass to the plugin. So for example, one of my products has the "user add notification" box looking like this:
getresponse:xxx-myAPIkey--:yesnotrickowners

This seems to tell DAP to use the getresponse plugin, provides the API key for getresponse and finally the name of the email list the user should be added to - in this case owners of my "Yes/No Trick".

So could something similar be done with XenForo - maybe something like:
xenforo:MyXenforoAPIKey:UsergroupUserShouldBeAddedTo

The plugin itself will need to transmit user specific data from the DAP database. You can see in the GetResponse plugin example how the Users name and email is transmitted. This would need to be the case with the XenForo plugin so that a username can be created based on the users name in DAP and a password created. I'm hoping XenForo could then send an email to the new user with their login details. There would need to be some sort of duplicate checking. Often I'll tag a months trial forum access to my other products. So if someone buys "Product A" they might get a forum account free. If they then buy "Product B" - I don't want them to have a second forum account made.

There is one complication as far as I can see - the "Name" stored in DAP for a user is taken from their PayPal. Users might not want to post on the forum with the full real name. So I want to give them the ability to change their username. I'm wondering some unique piece of data from the DAP database can be added to a user profile field in XenForo. So if the users full name was used intially as the username in XenForo, but also recorded in another field - this field could be checked to guard against duplicate accounts.
 
Here is a bit more info that might be helpful...

In the product settings page of DAP, there is a text box where you can add parameters to pass to the plugin. So for example, one of my products has the "user add notification" box looking like this:
getresponse:xxx-myAPIkey--:yesnotrickowners

This seems to tell DAP to use the getresponse plugin, provides the API key for getresponse and finally the name of the email list the user should be added to - in this case owners of my "Yes/No Trick".

So could something similar be done with XenForo - maybe something like:
xenforo:MyXenforoAPIKey:UsergroupUserShouldBeAddedTo

The plugin itself will need to transmit user specific data from the DAP database. You can see in the GetResponse plugin example how the Users name and email is transmitted. This would need to be the case with the XenForo plugin so that a username can be created based on the users name in DAP and a password created. I'm hoping XenForo could then send an email to the new user with their login details. There would need to be some sort of duplicate checking. Often I'll tag a months trial forum access to my other products. So if someone buys "Product A" they might get a forum account free. If they then buy "Product B" - I don't want them to have a second forum account made.

There is one complication as far as I can see - the "Name" stored in DAP for a user is taken from their PayPal. Users might not want to post on the forum with the full real name. So I want to give them the ability to change their username. I'm wondering some unique piece of data from the DAP database can be added to a user profile field in XenForo. So if the users full name was used intially as the username in XenForo, but also recorded in another field - this field could be checked to guard against duplicate accounts.
It looks quite straight forward and easy to do, we can work something out, let me know in a private conversation once you've setup the testing environment.

I'll see if I can get the required actions added to my API this week.
 
Hey jjeeffff.

I still have a couple of things I have to add to my XenAPI before I can implement user registration, although I'm planning to do so within a week or so. What you are requesting will be fully supported by my XenAPI, I'll just have to look into DAP before I tell you if I'm capable of creating what you're requesting.

I already have a couple of requests for a XenForo <=> Wordpress bridge, I was planning on starting with that after I get all the features I need implemented.

If you can show me an example of a DAP plugin, that'd be great.

- C


Tell us more about your wordpress to xenforo bridge? Will this allow wordpress to handle the user registration then create an account in xenforo, with single sign on ability and matching user avatars?
 
@jjeeffff @Contex
I've just attempted to do this, but I'm not sure if I've succeeded.

When the user logs in through DAP, does it automatically log them in xenforo? If it's meant to, that's the bit that's not working for me.
 
Back
Top Bottom