Search Results for 'buddypress'
-
Search Results
-
Hello,
I’m looking for a shortcode to insert inside a widget to show a “Search Groups” for buddypress.
Thanks
SimoneTopic: Help request for a Newbie
Hello Everyone,
I am brand new to BuddyPress and completely without skills. I recently had a new website built like the fiverr type. Where persons can list their servise and fill requests made from buyers.
I thought this might be a way for creating a social network around my new website. I’m not all all sure how to start, or even if this forum is the right vehicle for what I needed, which was exposure. I don’t even know how to install BuddyPress to begin.
Any advice would be greatly appreciated.
Hello,
Just letting you know we’ve found some “sketchy” code in BP that could be improved. Probably won’t affect 80% of users, but here it is…
Version: 1.7.1
File: bp-core/admin/bp-core-schema.php
Lines: 308-309`
if ( !$wpdb->get_var( “SELECT id FROM {$bp_prefix}bp_xprofile_fields WHERE id = 1” ) )
$insert_sql[] = “INSERT INTO {$bp_prefix}bp_xprofile_fields ( group_id, parent_id, type, name, description, is_required, can_delete ) VALUES ( 1, 0, ‘textbox’, ” . $wpdb->prepare( ‘%s’, stripslashes( bp_get_option( ‘bp-xprofile-fullname-field-name’ ) ) ) . “, ”, 1, 0 );”;
`Symptoms:
When we first installed BuddyPress, we removed the “name” field in favour of using a combination of FirstName/LastName. Now, any time we do a major upgrade, BP creates a new required “Name” field in the database.The Problem:
You are searching for a field with “id=1” but when you create it, you don’t give it an ID of 1. This code makes the assumption that it is running on a new install, and therefore the database table must be empty. In our situation above, it is creating a new “Name” field but uses the auto-increment ID so the field never does have ID = 1. A similar problem appears to exist in the preceding lines as well when creating the group.The Solution:
Many possible solutions exist. One might be to create the field with an ID of 1 hardcoded. Another might be to test for the existence of a field where name = ‘Name’.Thanks,
JamesEDIT: typo.
WordPress Multisite 3.5.1
BuddyPress 1.7.1
Tetris ThemeI’m trying to create a login widget and have copied and pasted the following code into a widget text box:
<div id="sidebar"> <?php do_action( 'bp_inside_before_sidebar' ) ?> <?php if ( is_user_logged_in() ) : ?> <?php do_action( 'bp_before_sidebar_me' ) ?> <div id="sidebar-me"> <h3>You are logged in as:</h3> <ul id="members-list" class="item-list"> <li><div class="item-avatar"> <a href="<?php echo bp_loggedin_user_domain() ?>"><?php bp_loggedin_user_avatar( 'type=thumb&width=60&height=60' ) ?></a></div> <div class="item"><h4><?php echo bp_core_get_userlink( bp_loggedin_user_id() ); ?></h4> </h4><a class="button logout" href="<?php echo wp_logout_url( bp_get_root_domain() ) ?>"><?php _e( 'Log Out', 'buddypress' ) ?></a></div> <?php do_action( 'bp_sidebar_me' ) ?> </div></li> </ul> <?php do_action( 'bp_after_sidebar_me' ) ?> <?php if ( function_exists( 'bp_message_get_notices' ) ) : ?> <?php bp_message_get_notices(); /* Site wide notices to all users */ ?> <?php endif; ?> <?php else : ?> <?php do_action( 'bp_before_sidebar_login_form' ) ?> <p id="login-text"> <?php _e( 'Please log in to start connecting.', 'buddypress' ) ?> <?php if ( bp_get_signup_allowed() ) : ?><br /> <?php printf( __( ' You can also <a href="%s" title="Create an account">create an account</a>.', 'buddypress' ), site_url( BP_REGISTER_SLUG . '/' ) ) ?> <?php endif; ?> </p> <form name="login-form" id="sidebar-login-form" class="standard-form" action="<?php echo site_url( 'wp-login.php', 'login_post' ) ?>" method="post"> <label><?php _e( 'Username', 'buddypress' ) ?><br /> <input type="text" name="log" id="sidebar-user-login" class="input" value="<?php echo esc_attr(stripslashes($user_login)); ?>" tabindex="97" /></label> <label><?php _e( 'Password', 'buddypress' ) ?><br /> <input type="password" name="pwd" id="sidebar-user-pass" class="input" value="" tabindex="98" /></label> <p class="forgetmenot"><label><input name="rememberme" type="checkbox" id="sidebar-rememberme" value="forever" tabindex="99" /> <?php _e( 'Remember Me', 'buddypress' ) ?></label></p> <?php do_action( 'bp_sidebar_login_form' ) ?> <input type="submit" name="wp-submit" id="sidebar-wp-submit" value="<?php _e('Log In'); ?>" tabindex="100" /> <input type="hidden" name="testcookie" value="1" /> </form> <?php do_action( 'bp_after_sidebar_login_form' ) ?> <?php endif; ?> <?php get_sidebar() ?> </div> </div>I have played around with it (it originally was encased in tables), added and subtracted the last few div tags, encased it in a p tag …
I end up with this whether I am logged in or not:
You are logged in as: create an account.', 'buddypress' ), site_url( BP_REGISTER_SLUG . '/' ) ) ?>Any pointers? Code corrections?
Hi everyone,
We are working on a local social network project and using buddypress to build our website.
I have a question. We have a function like Facebook, cover photos. We want to put 40 default cover photos for every user, but we couldn’t make it. Is it possible? How can we figure this out?
Topic: Load More option problem….
Warning: Division by zero in ……/wp-content/plugins/buddypress/bp-activity/bp-activity-template.php on line 566
It is showing after 3+ load more option clicking in sitewide activity in everything filter….but load more option working fine with the filter updates….
What does it mean….?Please help anyone…
I am using Buddypress 1.7.1