Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 12 replies - 1 through 12 (of 12 total)

  • koendb
    Participant

    @koendb

    Got it 🙂

    All you need is the value of the checkbox.
    <input id="nieuwsbrief" type="checkbox" value="newsletter"
    You can find/set this value in the users –> profile fields page

    Then just set the value of $newsletter to ‘newsletter’ when the box is checked or any other value if it’s not and use:
    $meta_update = xprofile_set_field_data( '<em>name or id of field</em>', $user_id, $newsletter);

    Glad to answer any questions


    koendb
    Participant

    @koendb

    Nope 🙁
    Any help is still appreciated.


    koendb
    Participant

    @koendb

    Thanks! I got some studying to do… 😉


    koendb
    Participant

    @koendb

    Thanks a lot! This really helped!
    But I can’t get the groupname out of the array 🙁
    Tried things like var_dump($group["name"]);
    and
    echo $group["name"];

    I know this isn’t really a bp question, but hope you can help anyway.


    koendb
    Participant

    @koendb

    If is_page(page-id-of-registration-page) doesn’t return true on the registration page I wouldn’t know how to check for that page. Anybody else?


    koendb
    Participant

    @koendb

    I don’t know the exact solution, but why don’t you check your if-statements first?
    change your code into:
    if( !is_page( array( ‘landingpage’, ‘registration’, ‘activation’)) ) {
    echo ‘Do redirect’;
    }

    and check if that message appears on the landing/registration page. That will probably happen and you’ll know you need to change that part. Maybe use the ID’s of those pages instead.


    koendb
    Participant

    @koendb

    Should I be able to figure this out myself or is this really a hard question? Would be glad with every pointer, thnx!


    koendb
    Participant

    @koendb

    Friendships need to be accepted by both parties. It could be easier for you to make all the bands ‘groups’. That way bands could invite members to become a fan and when the groups are open to accept every members, any member can become a fan with 1 click.

    Next to that, fans can see other fans of the same band and become friends with each other and every band could have their own forum.

    Maybe an option for you?


    koendb
    Participant

    @koendb

    Could for instance add dropdown boxes with categories to users extended profile pages.
    Get the value of those profile fields from your home template and use it in a query.


    koendb
    Participant

    @koendb


    koendb
    Participant

    @koendb

    Anybody?


    koendb
    Participant

    @koendb

    What button? Could you provide a link?

Viewing 12 replies - 1 through 12 (of 12 total)
Skip to toolbar