Forum Replies Created

Viewing 15 replies - 76 through 90 (of 101 total)
  • Thread Starter Christian Freeman (codelion)

    (@takinglife2themax)

    I’m making progress here. As of now, I’ve mdified my function to replace the the bp_get_root_domain(), and the bp_get_signup_slug() parts of the URL using str_replace(), as you suggested. But somehow, I’m still getting the 404 error.

    I have no issues accessing my custom registration page when I remove the
    /accept-invitation/takinglife2themax%40gmail.com part of the URL. What I’m trying to figure out is, what’s different about the Buddypress registration form that enables this URL to work? I understand that the urlencode( $email ) portion of the URL is read as an action variable, but I don’t understand what makes the /accept-invitation/ part a viable URL.

    Could you please shed some light on this for me?

    Thread Starter Christian Freeman (codelion)

    (@takinglife2themax)

    I’d be happy to provide the URL.
    The address that I need to pass through is:
    http://teamextremesupport.com/member-center/join

    Thanks Bob, you’re a life saver.

    Thread Starter Christian Freeman (codelion)

    (@takinglife2themax)

    Sounds good Bob, but I’m kind of pressed for time now. I’m going to be launching my site for beta testers within the next few days, and I need to be able to invite the email subscribers to join on launch day. The challenge is, I need to be able to keep the coming soon page active while I allow the beta testers to register. The beta period is going to last for about 3 months, and your plugin is looking like the best solution for me right now.

    Can you think of a quick fix way that I can modify the plugin to allow access to the registration pages?

    I really appreciate your help with this.

    Thread Starter Christian Freeman (codelion)

    (@takinglife2themax)

    Ideally, I would like the accept url filter to appear like this:
    apply_filters( 'invite_anyone_accept_url', get_permalink($M_options['registration_page']) . '/accept-invitation/' . urlencode( $email ) );
    With the added query argument for the referral.

    My function looks like this:

    function ia_add_aff_ref( $email ) {
    	global $wpdb;
    	global $bp;
    	global $M_options;
    
    	$url = get_permalink($M_options['registration_page']);
    	$inviter_id = bp_loggedin_user_id();
    	$inviter_aff_ref = get_user_meta($inviter_id, 'affiliate_reference', true);
    
        return add_query_arg( 'ref', $inviter_aff_ref, $email );
    }
    add_filter( 'invite_anyone_accept_url', 'ia_add_aff_ref' );

    I’m just not sure how or where to use str_replace() within this function. Or would I need to create another function to swap out the bp_get_root_domain(), and the bp_get_signup_slug() parts of the URL?
    And what do you mean by rebuild the link?

    Thread Starter Christian Freeman (codelion)

    (@takinglife2themax)

    Thanks again Boone.
    I’m still a bit new to action hooks and filters and the info you provided helped clear a few things up.

    I just modified the filtering function so that the inviter’s affiliate id (the max-32 part) is dynamically added based on the logged in user. That’s working smoothly, but I’m still getting the 404 error. I followed bridieamelia’s instructions and set the register and activate pages in my buddypress settings and the only way to bypass the 404 error is to use the Buddypress registration form.

    This is a problem for me, because as I said previously, my membership plugin uses a different registration form. I do see that the accept URL is generating the link to the form for my membership plugin via bp_get_signup_slug(). The URL appears like this: http://teamextremesupport.com/member-center/join/accept-invitation/takinglife2themax%40gmail.com?ref=max-63

    I also tried changing the slug for my membership signup form from join to register, but it still returns the 404 error, unless I set the page in buddypress. Do you know of any way that I can trick the system to use the form from my membership plugin instead of the one set in buddypress?

    Your help is much appreciated, and I’m quite impressed with your support. Keep up the good work.

    Thread Starter Christian Freeman (codelion)

    (@takinglife2themax)

    Thanks Boone!
    The response you provided was an amazing help. Especially the function for filtering invite_anyone_accept_url. I see that the filter originally looks like this: $accept_link = apply_filters( 'invite_anyone_accept_url', bp_get_root_domain() . '/' . bp_get_signup_slug() . '/accept-invitation/' . urlencode( $email ) );
    With the accept url filtering function that you provided, will bp_get_root_domain(), bp_get_signup_slug(), and the /accept-invitation/ parts of the URL be added as well? Ideally, I would like to replace bp_get_root_domain() and bp_get_signup_slug() with my own url. Is that possible without changing the invite anyone core files?

    Thread Starter Christian Freeman (codelion)

    (@takinglife2themax)

    Hi Boone,
    I have a quick question regarding the invite_anyone_wildcard_replace() function. It appears to me that this is the function that creates the accept url. This is what I want to modify to interface with the affiliate’s referral link.(http://www.mydomain.com.au/register/accept-invitation/john%40gmail.com?ref=max-32)

    The ?ref=max-32 passes the referring affiliate’s id to link the referral to them. My question is, will the url encoded email address confilct with the ref?

    And as far as the invite_anyone_activate_user() function is concerned, I see that the action has been added to bp_core_activated_user(). My membership plugin does hook into buddypress, but it has its own registration form. In theory, would it be possible to simply call the bp_core_activated_user() function during my membership plugin’s registration process? And will I need to create an add_action for the invite_anyone_register_screen_message() function, in order to validate the invitation when the user clicks the accept link (before they arrive at the registration page)?

    Thread Starter Christian Freeman (codelion)

    (@takinglife2themax)

    Hi Bob,
    I figured out what’s causing the issue. I’m going to email you w/ the solution so that you can incorporate it into further updates if you like.

    Thanks for getting back to me on this.

    Thread Starter Christian Freeman (codelion)

    (@takinglife2themax)

    Hi guys,

    Thanks for your help. To answer your question Boone, I have a Membership plugin with an integrated affiliate system and I’m trying to replace the accept invite url with the affiliate referral link from my affiliate system. I am able to do this by swapping it out manually every time, but I want my users to be able to trigger the invite acceptance for WP-Achievements to recognize it.

    My Membership plugin has its own registration process, which excludes activation also. I’m just wondering if the invite_anyone_activate_user() function will conflict with the plugins normal user activation functions.

    But I’ll take a look at the file.

    Thanks again.

    Thread Starter Christian Freeman (codelion)

    (@takinglife2themax)

    Is there a file or a specific function that I may be able to modify to get this to work? I really need to unblock this page. Any help would be much appreciated.

    Thread Starter Christian Freeman (codelion)

    (@takinglife2themax)

    Ok great, thanks.

    I also have an idea about linking the quiz results from a site visitor to a member once they register. I’m going to start working on this within the next couple of days, and your input would be extremely helpful.

    Hi guys,

    I’m in the process of styling my quiz and I added some CSS selectors to the quiz results variables from within the plugin itself. IF I had seen this post beforehand, I may not have done it. But I figured that you could easily add these selectors into the plugin for future versions if you like.

    Frank, I’m not sure if you received my email, but I sent you a message with the modified mlw_quiz.php file and a matching css file that contains the css classes. I added css classes for every variable in the system for maximum flexibility.

    Thread Starter Christian Freeman (codelion)

    (@takinglife2themax)

    The landing pages are working smoothly for me now.

    Thanks again Frank

    Thread Starter Christian Freeman (codelion)

    (@takinglife2themax)

    Hi Frank,

    I’m glad that you like my ideas on the stats and the infographic. The thing is, I’m planning on launching my site within the next 3 days, and your quiz plugin is really a key element to my overall system. I need to find a way to show these stats by launch time. I would love to purchase your Premium Support package, but being as though I’m just launching, it’s a bit outside of my budget at the moment.

    Is there a workaround that I can use to display the stats via a template tag or something? As I said earlier, I’m not afraid to roll up my sleeves and do some coding on this myself. I just need an idea of the best way to make this happen.

    Once again, thanks for your help and keep up the good work

    Thread Starter Christian Freeman (codelion)

    (@takinglife2themax)

    Hi Frank,

    Great news, it WORKS! I think it was caused by the bug where the pass page must be listed at the top.

    Regarding the quiz stats, I would definitely prefer a shortcode, which would afford me the flexibility to use it within a post, page, or php widget. These are the stats that I want to create:

    # of People who’ve Passed the Quiz
    # of People who’ve Failed the Quiz
    # of people who’ve gotten X Question Wrong
    # of People who’ve taken the Quiz
    The Average Score (Total)

    My end game with these stats is to be able to create a live infographic with this data. This would definitely take Quiz Master Next to a whole new level.

    GREAT WORK, and thanks again.

Viewing 15 replies - 76 through 90 (of 101 total)