Search Results for 'buddypress'
-
AuthorSearch Results
-
February 9, 2010 at 10:38 am #62833
In reply to: BuddyPress Links 0.3-beta released for testing
Anton
ParticipantThe RSS feed doesn’t work. If you click the RSS feed link from the /links directory you are routed to the home page. When clicking on “comments” on the feed, you are taken to the comment list but site wide activity stream is also viewable underneath the comments.
February 9, 2010 at 8:59 am #62831In reply to: Help with BuddyPress Friends Loop
Sarah Gooding
MemberAh, perfect. Thank you!
February 9, 2010 at 8:49 am #62830In reply to: Help with BuddyPress Friends Loop
Andy Peatling
Keymaster<?php if ( bp_has_members( 'user_id=' . bp_loggedin_user_id() ) ) : ?>February 9, 2010 at 8:17 am #62829In reply to: Help with BuddyPress Friends Loop
Sarah Gooding
MemberYes hardcoding works, but I am making a “My Friends” widget and I want to show the logged in user’s friends.
February 9, 2010 at 8:06 am #62828In reply to: Help with BuddyPress Friends Loop
Andy Peatling
KeymasterTry hardcoding with a user_id to begin with to see if that works:
<?php if ( bp_has_members( 'user_id=1' ) ) : ?>February 9, 2010 at 7:51 am #62826In reply to: Help with BuddyPress Friends Loop
Sarah Gooding
Memberuser_id=’ . $user_id . ‘&type=alphabetical&per_page=0’ doesn’t seem to filter it to only friends of that user … looks like it’s posting random members. Not sure what I’m doing wrong since I get no errors.
Code:<?php if ( bp_has_members( ‘user_id=’ . $user_id . ‘&type=alphabetical&per_page=0’ . $instance[‘max_members’] ) ) : ?>February 9, 2010 at 7:28 am #62825In reply to: Re: New Buddypress Release
Paul Wong-Gibbs
KeymasterWhen? Soon.
February 9, 2010 at 6:07 am #62819In reply to: Generating a fatal error
frenzi
Participantam trying on new realease buddypress 1.2rc2
February 9, 2010 at 6:02 am #62818In reply to: Brand new install of 1.2 with wpmu 2.9.1
frenzi
Participantthis is too happening with me if u just remove the buddypress plugin then wordpress is works fine
February 9, 2010 at 5:53 am #62816modemlooper
ModeratorNow that BP can be installed on user blogs can’t you use that + I coulda swore there was a plugin before that allowed people to use a different domain for their user blog. Or maybe I’m dreaming it all.
February 9, 2010 at 5:36 am #62815In reply to: BuddyPress for dummies book
@mercime
Participantlol, good one, @Modemlooper
February 9, 2010 at 5:29 am #62814In reply to: Make your own custom BuddyPress page
sweller
ParticipantI’d like to open this one back up. The project is for a local recycling program and I’m having trouble with a form for members to schedule pickups on the profile/index page. It calls XProfile address fields and tomorrow’s date for the default values, and should insert them into a custom table. The plugin creates a table and pulls the xprofile data fine, but nothing is reaching the database. I’ve tried every possible variation based on the bp-core and Travel-Junkie’s example above, but nothing is working.
Here’s the plugin:
<?php
/*
Plugin Name: Collection Records
Plugin URI: -
Description: Adds a table and page for listing and editing Recylable Collections.
Version: 1.0
*/
function collect_install_table() {
global $wpdb;
global $bp;
if ( !empty($wpdb->charset) )
$charset_collate = "DEFAULT CHARACTER SET $wpdb->charset";
$table_name = $wpdb->prefix . 'collections';
if($wpdb->get_var("show tables like '$table_name'") != $table_name) {
$sql = "CREATE TABLE " . $table_name . " (
id bigint(20) NOT NULL AUTO_INCREMENT PRIMARY KEY,
sched_date datetime NOT NULL,
post_date datetime NOT NULL,
user_id bigint(20) UNSIGNED NOT NULL,
address_line_1 varchar(150) NOT NULL,
address_line_2 varchar(150) NOT NULL,
town varchar(150) NOT NULL,
state varchar(150) NOT NULL,
zip_code varchar(150) NOT NULL,
amount bigint(20) DEFAULT '0' NOT NULL,
verified tinyint(1) DEFAULT '1' NOT NULL,
paid tinyint(1) DEFAULT '1' NOT NULL,
KEY user_id (user_id)
) {$charset_collate};";
require_once(ABSPATH . 'wp-admin/includes/upgrade.php');
dbDelta($sql);
}
}
/*Launch database*/
register_activation_hook(__FILE__,'collect_install_table');
function bp_collections() {
global $wpdb;
global $bp;
/* bp_is_home() Checks to make sure the current user being viewed equals the logged in user */
if ( !bp_is_home() && !is_site_admin() )
return false;
/* Check for new information*/
if( isset($_POST['go'] ))
{
/* Check the nonce */
check_admin_referer( 'schedule_collect' );
if( $_POST['sched_date'] && ! $_POST['address_line_1'] || ! $_POST['sched_date'] && $_POST['address_line_1'] )
{
bp_core_add_message( __( 'We need a time and a place!', 'buddypress' ), 'error' );
$error = true;
}
if( ! $error )
{
$user_id = $bp->loggedin_user->id;
if( isset( $_POST['address_line_2'] ) ) {
$address_line_2 = $_POST['address_line_2'];
}
$result = $wpdb->query( $wpdb->prepare("
INSERT INTO $wpdb->1_collections
( sched_date, post_date, user_id, address_line_1, address_line_2, town, state, zip_code )
VALUES ( %s, %s, %d, %s, %s, %s, %s, %s )",
$_POST['sched_date'], $_POST['post_date'], $user_id, $_POST['address_line_1'], $address_line_2, $_POST['town'], $_POST['state'], $_POST['zip_code'] ) );
/* Set the feedback messages */
if ( $errors )
bp_core_add_message( __( 'There was a problem calling your pickup, please try again.', 'buddypress' ), 'error' );
else
bp_core_add_message( __( 'Thanks for calling a recycling pickup.', 'buddypress' ) );
}
bp_core_load_template( apply_filters( 'xprofile_template_display_profile', 'profile/index' ) );
}
}
/* Function to call xprofile Address label */
function collections_xprofile( $field ) {
echo bp_collections_get_member_list_xprofile_data( $field );
}
function bp_collections_get_member_list_xprofile_data( $field ) {
global $bp, $site_members_template;
return xprofile_get_field_data( $field, $site_members_template->member->id );
}
?>And the form:
<?php if ( bp_has_profile( 'profile_group_id=' . bp_get_current_profile_group_id() ) ) : while ( bp_profile_groups() ) : bp_the_profile_group(); ?>
<form action="" method="post" id="oncall" class="oncall">
<label for="address">At</label>
<input type="text" name="address_line_1" id="address_line_1" value="<?php echo bp_collections_get_member_list_xprofile_data('Address Line 1') ?>" />
<input type="text" name="address_line_2" id="address_line_2" value="<?php echo bp_collections_get_member_list_xprofile_data('Address Line 2') ?>" />
<input type="text" name="town" id="town" value="<?php echo bp_collections_get_member_list_xprofile_data('Town') ?>" />
<input type="hidden" name="state" id="state" value="MS" />
<input type="" name="zip_code" id="zip_code" value="<?php echo bp_collections_get_member_list_xprofile_data('Zip Code') ?>" />
<br />
<label for="date">On</label>
<input type="text" name="sched_date" id="sched_date" value="<?php $tomorrow = mktime(0,0,0,date("m"),date("d")+1,date("Y")); echo date("Y/m/d", $tomorrow); ?>" />
<input type="submit" name="go" id="go" value="go"/>
<input type="hidden" name="post_date" id="post_date" value="<?php $my_t=getdate(date("U")); print("$my_t[weekday], $my_t[month] $my_t[mday], $my_t[year]"); ?> " />
<?php wp_nonce_field( 'schedule_collect' ) ?>
</form>
<?php endwhile; endif; ?>It has to be something simple but I’m lost. I’d really appreciate it if someone could take a minute and tell me what’s wrong with the code.
February 9, 2010 at 4:41 am #62812In reply to: BuddyPress for dummies book
modemlooper
ModeratorWho needs a book when the community here is so vibrant
February 9, 2010 at 4:37 am #62811In reply to: Theme with PODS and BuddyPress will it work???
Mike Pratt
ParticipantWas recently in the Pods IRC channel and was told by the devs that they don’t plan on addressing BP until WP 3.0 is out. I run Pods on my wife’s site and think you could force the issue but it might not be worth it
February 9, 2010 at 3:52 am #62809In reply to: BuddyPress for dummies book
@mercime
Participantspeaking of book releases, WordPress Bible by Aaron Brazell with Mark Jaquith came out yesterday — now that’s a keeper.
February 9, 2010 at 3:38 am #62808In reply to: BuddyPress for dummies book
paulhastings0
ParticipantI’d much rather BP upgrade (i.e. get better) faster than a book can keep up with. I’ll have to check into it though.
February 9, 2010 at 3:05 am #62804In reply to: Re: New Buddypress Release
danbpfr
ParticipantFebruary 9, 2010 at 2:24 am #62802In reply to: Re: New Buddypress Release
abcde666
Participantwhen its ready
February 9, 2010 at 1:47 am #62800In reply to: BuddyPress for dummies book
David Lewis
ParticipantWell it takes about 6 months to a year to write a book. I think this book started sometime last summer. Basically, BuddyPress has been changing faster than you can write a book. There may be a 1.2 book in the works from another publisher that I was in contact with.
February 9, 2010 at 1:25 am #62798In reply to: BuddyPress Classifieds Component 1-beta released !
February 9, 2010 at 1:20 am #62797sakthig
ParticipantDear Swing Jazz
I am having issues with viewing your website , some of your website components are not loaded correctly
I am using Firefox version 3.6 with windows Vista
I think the problem will be the result of wider content which is not supported by your theme
One more thing, Being a fan of Jazz music I am registered with your website
February 9, 2010 at 1:17 am #62796In reply to: BuddyPress Links 0.3-beta released for testing
paulhastings0
ParticipantI would definitely ask that BP Links support the classic theme.
February 9, 2010 at 12:20 am #62795In reply to: Theme with PODS and BuddyPress will it work???
Windhamdavid
ParticipantYeah, you can do that. It will take some work. Just add in all the profile fields you’d like to use for the ‘business listing’ and then display those fields in a directory of sorts using custom template files. Or you could style up a member ‘blog’ theme that is formatted as a ‘listing’ with maybe some edit in place ajax functionality that’ll allow a member to enter their business info and restricts them from doing anything else. That way you could use sitewide queries to build a directory of these ‘listings’. I can’t say there’s a cut and paste sorta plugin to achieve this, but the best place to start would be here and here.
February 9, 2010 at 12:12 am #62793abcde666
ParticipantI am also wondering how I can run WPMU + buddyPress across 5 different domains with just 1 user-table ?
I guess I would need 5 separate installs and 1 common user-table ?
Is this possible ?
February 9, 2010 at 12:05 am #62792In reply to: BuddyPress Links 0.3-beta released for testing
geoffm33
Participantdefine ( ‘BP_LINKS_THEME’, ‘bp-links-default’ );
That seems to fix a lot for me!
-
AuthorSearch Results