Forum Replies Created
-
In reply to: Set checbox value with xprofile_set_field_data
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
In reply to: Set checbox value with xprofile_set_field_dataNope 🙁
Any help is still appreciated.In reply to: Getting group name from idThanks! I got some studying to do… 😉
In reply to: Getting group name from idThanks 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.
In reply to: Text in bp_adminbar_notifications_menu()Should I be able to figure this out myself or is this really a hard question? Would be glad with every pointer, thnx!
In reply to: Different types of friendshipsFriendships 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?
In reply to: Custom Homepage. Please helpCould 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.In reply to: [Resolved] Template structureFound my answer here https://codex.buddypress.org/themes/theme-compatibility-1-7/theme-compatibility-2/
In reply to: Set checbox value with xprofile_set_field_dataAnybody?
In reply to: Chage the "Like" button textWhat button? Could you provide a link?