Support Center

Using playthru with a buddypress registration form.

Last Updated: Sep 28, 2012 10:37AM EDT
O'Ryan McEntire
 

Using playthru with a buddypress registration form. 

 
I have a wordpress install with buddypress enabled. 

I would love to be able to use playthru with my buddypress registration process. 

Currently enabling the plugin for registration does not appear to work. 

there is a hook set up in the perfect place for it but I'm unfamiliar with setting something up like this to work in this situation. 

do_action( 'bp_before_registration_submit_buttons' 

I know I could hook into this call and probably pull playthru into the form here but that would not automatically set up the check to see if the game has validated. 

Any ideas?
  • Adam (Director of Roboanalytics) 5 months ago
    Hi O'Ryan, 

    I'm trying to duplicate your problem, can you provide me with some additional information? 

    1. What wordpress theme are you using? 
    2. What is the url of the site where you see the problem? 
    3. Can you describe the problem more fully? Are you able to see Playthru and play it, but it fails on validation? 

    Thanks for contacting us! 
    Adam
  • O'Ryan McEntire
    The game never shows up, when the registration page is selected in the settings. Buddypress has it's own registration page. It's not the usual wordpress signup page. 

    I run a very heavily customized buddypress install. I was hoping I could use the base install to figure out how to enable it on my custom install, but I was unable to get it to work on either. 

    I suppose I was looking for a little information on how to integrate/validate in a custom situation.
  • Andrew Herron (Official Rep) 5 months ago
    Evening O'Ryan, 

    If you'd like to get an idea of how to integrate it into BuddyPress, please check out our latest WordPress plugin. It should show how we hook into the WP actions and handle form submissions. 

    Given that BP is different, you might have to change the arguments that are passed into the function and how they are returned. 

    The nitty gritty is that you'll probably have two hooks, one for the form, and one for the post, as we do in our plugin. For the first, you just need to instantiate the AYAH object and then use getPublisherHTML, for the second you'd again instantiate and then call scoreResult. 

    Let me know if this is helpful or if there is something more we can provide. 

    Thanks, 
    Andrew
  • Danny Lehrer
    I s there any way to integrate this into a buddypresss installation with out changing code?
  • Pet Alliance
    I don't mind editing code, please explain what AYAH and getPublisherHTML are and where they are to be changed.
     
    • If you don't know what those two things are you may be over your head with code in this instance. 

      AYAH = Are You A Human 
      getPublisherHTML = a PHP function that dumps the html for the game into your form 

      Then after you have those things you still need to capture the validity of the test on submit. 

      If you look at the code of the plugin you should get a good idea of what's going on. If it makes no sense to you, then it might be worth it to find someone to help. 

      I ended up going a different route because the game size did not fit aesthetically or size wise with my registration form. Instead I am using Cloudflare and a few behind the scenes tricks to test eligibility for sign up. So far no bots or spammers have made it through and my users never have to deal with annoying captchas or hoops just to sign up.
http://assets01.desk.com/
false
areyouahuman
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
false
Invalid characters found
/customer/en/portal/articles/autocomplete