Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • in reply to: Input profile information into a link #4164
     jward2090
    Participant
    This reply has been set as private.
    in reply to: Input profile information into a link #4093
     jward2090
    Participant

    For some reason I can’t edit my post. I used code and it didn’t display right…I had to take out the anchor tags and just replaced theme with “a” and “/a”. Here’s my edited post:

    Hi,

    This is a fairly complicated question. I have a profile field that I want users to fill out and then on their profile a button is displayed like this:

    add_action(‘kleo_bp_after_profile_name’, ‘my_profile_button’);
    function my_profile_button()
    {
    echo ‘a href=”#” class=”success button radius show-for-small” rel=”nofollow” My button’ /a ;
    }

    I need to make a specific profile field show up in the href=”#” spot. I tried doing this but it “broke” my theme:

    add_action(‘kleo_bp_after_profile_name’, ‘my_profile_button’);
    function my_profile_button()
    {
    echo ‘ a id=”link” href=”<?php echo $_POST[‘field’];?>”>My button /a’;
    }
    }

    Basically I need to change the link to whatever the user inputs in the profile field. Do you know a way to do this? If you want I can reply with the specific profile field I need added into the href=”#” spot, but I need it to be private.

    Thanks!

    in reply to: How to add button on profiles #3906
     jward2090
    Participant

    Thank you!

    in reply to: How to add button on profiles #3887
     jward2090
    Participant

    Awesome! You guys are great. One last question, what class do I use for styling? Thanks!

    in reply to: Getting a 404 error for Reasons To Join and Contact Page #3850
     jward2090
    Participant

    It seems to be working now. Please disregard this.

Viewing 5 posts - 1 through 5 (of 5 total)

Log in with your credentials

Forgot your details?