Forum Replies Created
-
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 pageThen 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
Nope 🙁
Any help is still appreciated.Thanks! I got some studying to do… 😉
Thanks a lot! This really helped!
But I can’t get the groupname out of the array 🙁
Tried things likevar_dump($group["name"]);
and
echo $group["name"];
I know this isn’t really a bp question, but hope you can help anyway.
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?
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.
Should I be able to figure this out myself or is this really a hard question? Would be glad with every pointer, thnx!
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?
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.Found my answer here https://codex.buddypress.org/themes/theme-compatibility-1-7/theme-compatibility-2/
Anybody?
What button? Could you provide a link?