Search Results for 'buddypress'
-
AuthorSearch Results
-
February 9, 2010 at 6:02 am #62818
In 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!
February 8, 2010 at 11:59 pm #62791Windhamdavid
Participantinteresting? you can use sunrise.php to support multiple domains with one user table, but I’m not sure how site_url() (BuddyPress) would react to it. Search for wpmuguru. He’s really good with configuring multiple domains/databases on multi-user. It would be interesting to test and with enough custom code, you could make almost anything happen
ps.. you should mark the topic as resolved since this really isn’t a direct support question.
February 8, 2010 at 11:58 pm #62790In reply to: BuddyPress for dummies book
r-a-y
Keymasterlol @ designodyssey!
February 8, 2010 at 11:52 pm #62788In reply to: BuddyPress for dummies book
designodyssey
ParticipantCouldn’t resist commmenting on premature release.
Back to scheduled programming.
February 8, 2010 at 11:50 pm #62787In reply to: BuddyPress for dummies book
modemlooper
Moderatoryeah seems like a premature release considering the 1.2 update.
February 8, 2010 at 11:49 pm #62786In reply to: BuddyPress Links 0.3-beta released for testing
MrMaz
ParticipantI think get_blog_option() is not working the way I expect it to. Can you try adding this line to wp-config.php and see if it helps?
define ( ‘BP_LINKS_THEME’, ‘bp-links-default’ );
February 8, 2010 at 11:43 pm #62785In reply to: BuddyPress Links 0.3-beta released for testing
Bowe
ParticipantI now have:
WPMU 2.9.1
BP 1.2 RC2
BP Default 1.2 (loaded from the plugin dir)
the template is loading fine for the profile page but I get a error: no links found
and I can not add new links. If I go to the links page I get a page not found error.
Hope this helps
February 8, 2010 at 11:32 pm #62784In reply to: BuddyPress Links 0.3-beta released for testing
MrMaz
ParticipantThanks to everyone who tested so far. I am going to work on these issues tonight and tomorrow. I hope the single WP support doesn’t hurt too much, argh.
Question: Can somebody please test with MU 2.9.1 or higher, bp-default theme activated, and NO child theme? This is what I have working in my sandbox with none of the above reported issues.
February 8, 2010 at 11:08 pm #62783In reply to: BuddyPress Links 0.3-beta released for testing
r-a-y
KeymasterAlso if you’re using a child theme of bp-default, the stylesheet URL links to:
/wp-content/plugins/buddypress-links/themes/bp-links-custom/style.csswhich doesn’t’ exist.
But the actual location of it is:
/wp-content/plugins/buddypress-links/themes/bp-links-default/style.css
—
[EDIT]
Looks like the magic happens here:
/wp-content/plugins/buddypress-links/buddypress-links.php
There’s a couple of defines here that can be overriden in bp-custom.php.
Will play with this a bit more when I have some time.
-
AuthorSearch Results