Search Results for 'buddypress'
-
Search Results
-
Hi guys
I’ve added a custom profile menu like told here: http://blog.maximusbusiness.com/2013/06/buddypress-profile-custom-bp-menu/
The code is outdated. So I changed this function
bp_core_load_template()to this
bp_get_template_partIt works so far and the template is included. But at the same time I get a 404 page and my included content is outside the content div. I would like to display the content of my template within the members/profile loop which is also not loaded.
Any suggestions?
The code:
function my_setup_nav() { global $bp; bp_core_new_nav_item( array( 'name' => __( 'Item One', 'buddypress' ), 'slug' => 'my-item-one', 'position' => 30, 'screen_function' => 'mb_author_posts', ) ); // Change the order of menu items $bp->bp_nav['messages']['position'] = 100; } add_action( 'bp_setup_nav', 'my_setup_nav' ); function mb_author_posts(){ add_action( 'bp_template_content', 'mb_show_posts' ); bp_get_template_part( apply_filters( 'bp_core_template_plugin', 'members/single/plugins' ) ); } function mb_show_posts() { echo '<h1>Test</h1>'; }I am working with buddypress, I have a two user roles, 1-student 2-faculty and i have set default user role as subscriber. when user registers and activates account by clicking on link sent through mail.User role changes to default(subscriber).
Any idea what is the issue? Below is the code assigning role to user on sign up.
add_action('bp_core_signup_user', 'ad_user_signup_usermeta', 10, 5); function ad_user_signup_usermeta($user_id, $user_login, $user_password, $user_email, $usermeta) { if(isset($_POST['signup_membership']) && !empty($_POST['signup_membership'])) update_user_meta($user_id, 'membership', $_POST['signup_membership']); $userdata = array(); $userdata['ID'] = $user_id; if(!empty($_POST['signup_usertype'])) { if($_POST['signup_usertype'] == 'student') { $userdata['role'] = 'student'; } if($_POST['signup_usertype'] == 'instructor') { $userdata['role'] = 'instructor'; } } if ($userdata['role']){ wp_update_user($userdata); } }Something weird happened with my site. When I create event, a new member register and so on, everything is double. I use Buddypress 2.2.0 and WordPress 4.1
Anyone has any idea what could cause this?
Thank you!I like to create a new group that has access to the Group and Activity Menu in the admin dashboard. Because BuddyPress does not use standard wordpress functionality when it comes to roles or capabilities i have not found any way to do this. It’s a right mess if you ask me and your documentation is lacking to say the least.
Even giving a Role the bp_moderate capability does not work.
Can you please provide a solution as to how i can give a new Role i created access to these 2 menu options in the dashboard/admin tool?
Thanks in advance.
Topic: Is this possible?
I am trying to create a site for a small preschool & kindergarten. We are trying to create:
1. Bbpress forums usable by the local geographic community at large, that any site visitor can register to post to, and,
2. A “student portal” only for enrolled families that allows them to post to the above forums plus
a. complete a more complex profile than the above users with some fields viewable only to other enrolled families logged in to the portal, some fields viewable only to admin, and some with visibility set by the user (this profile will function as an online student enrollment. The fields with visibility set by user will be the school directory)
b. access restricted content pages at the site…and, keep both sets of users out of the back-end/dashboard area.
Can this be done with BuddyPress?
Thanks so much in advance for your help!!!!!I am looking to change the label of “Username” on the registration page. I am using WordPress 4.1 along with BuddyPress 2.1.1. Here is a ink to my registration page: http://habbocia.x10host.com/habbo-cia-home/register/
Topic: Buddypress Multisite
Hi,
I’d like some advice about the feasibility of the following:
I’d like to use WordPress multisite and a suitable BuddyPress multisite plugin to create a network of social media sites, where a user becomes a member of the parent site upon sign-up and also a member of the child site based on the location they choose at sign-up.
So, if a user chooses London from the sign-up form they would become a member of mysite.com AND london.mysite.com, and I would serve content relevant to London.
However I would also like to retain the ability to have friendship connections between the sub-sites.
Essentially I’d like some content to be site specific but other content to be shared between sites – but also allow the members to switch to another location (sub-site) and view the content there – similar to how Craigslist works.
Hope this makes sense and thanks in advance for any advice!
Hello,
I want to add functionality in my site like there are two role for end user {company and employee}.
Is there any plugin or any custom code available for buddypress registration ?
Any help would be appreciate ๐
Thanks,
Topic: registration validation
hi,
i am trying to find how (if) BP is doing validation
using BP 2.1.1on buddypress plugin\bp-templates\bp-legacy\css\buddypress.css
there is section 3.5 forms
for example here are a few lines:
#buddypress .standard-form input[type=text],
#buddypress .standard-form input[type=text],
#buddypress .standard-form input[type=color],
#buddypress .standard-form input[type=date],this seems to coincide with wp-content\themes\test_theme\buddypress\register.php
the action bp_signup_username_errors<!– here is an an example of the action hook for username validation –>
<label for=”signup_username”><?php _e( ‘Username’, ‘buddypress’ ); ?> <?php _e( ‘*’, ‘buddypress’ ); ?></label>
<?php do_action( ‘bp_signup_username_errors’ ); ?>
<input type=”text” name=”signup_username” id=”signup_username” value=”<?php bp_signup_username_value(); ?>” />
<p class=”description”>Usernames must be all one word.</p>so my question is, buddypress seems to have validation for username, password, and email address. there will be a red error message box popping up when the data isn’t in the correct format.
where is this functionality passed, and how can i build on it to include other fields like Xprofile fields and WP user profile fields?
_________________________________________
for example:‘describe yourself in 25 words or less’
while this isn’t on the register page, its on where/how would i hook into this field with an action.. and can i use the same function page as the above validation.. just copy and modify the syntax to include the requirements for the data (25 words or less, no urls, etc)
thanks in advance
I currently have 4 sites with individual buddypress and paid membership pro allowing users to sign up. We would like to be able to offer each site the ability to pay a little extra and be able to either be a member of each one of the others or all of them using there same profile name that they currently have. what would be the best way to do this. I have read about using multi site but i would like others that have had more experience to give me there input on what they think would work out best in our case. we still want each site to have the ability to have users just sign up for that site or select all sites at there choice. Any input would be greatly appreciated.