Search Results for 'buddypress'
-
AuthorSearch Results
-
April 23, 2009 at 5:39 pm #43342
In reply to: No CSS – Member & Home Theme
Magi182
ParticipantI haven’t tested this, but you should probably be able to edit
/wp-content/themes/buddypress-home/style.css
delete the @import directive that is there and instead add:
@import url(css/base.css);
@import url(css/custom.css);
This might hose some of the functionality added by loader.php, but should be the easiest place to make the change.
April 23, 2009 at 4:18 pm #43335In reply to: Defualt member theme not working
Jeff Sayre
ParticipantStill thinking here, but a few more questions:
Are you using the new wp-config.php file that comes with WPMU 2.7.1? Or, did you use and older version?
If so, there is an additional define line added to WMPU’s config file:
define('SITE_ID_CURRENT_SITE', 1);Also, before installing BuddyPress, but after upgrading WPMU to 2.7.1, did you got to Site Admin > Upgrade in site admin and finish the upgrade?
April 23, 2009 at 3:54 pm #43330In reply to: Defualt member theme not working
chriscarter
ParticipantJust installed trunk 1401 and the problem persists. I feel like the answer is either right under my nose or far beyond anything I would understand. Either way, I’m clueless.
Again, for the record:
BP 1.0 RC 2, trunk 1401
WPMU 2.7.1
Standard BP member theme at /wp-content/bp-themes/buddypress-member/
Standard BP home theme at /wp-content/themes/buddypress-home
.htaccess is in the root
No errors in log.
When going to the URL /members, /groups, /blogs, I get the message:
You do not have any BuddyPress themes installed.
Please move “/wp-content/plugins/buddypress/bp-themes/” to “/wp-content/bp-themes/” and refresh this page. You can download more themes here.
If it matters, I’m running WPMU in the subdirectory, not subdomain, way.
I think that’s all the information I know.
April 23, 2009 at 3:29 pm #43327In reply to: Plugin: PmWiki in Buddypress.
Timschmi
ParticipantHello,
our PmWiki-plugin is now working under:
http://www.elloandfriends.uni-osnabrueck.de
You can sign up and test it. Please use hidden wikis, if you are not interested in english linguistics.
April 23, 2009 at 3:14 pm #43326In reply to: Translating BuddyPress
bohdaq
ParticipantHi!
I translated BuddyPress in my own Ukrainian language

The post on my blog: http://arys-my.name/?p=445
The files: http://arys-my.name/wp-content/uploads/2009/04/buddypress-uk-lang-rc1.zip
April 23, 2009 at 3:03 pm #43323thebigk
Participant@John: I’m in a fix now. I already have 1700 user data. I’m running RC1 with WPMU 2.7.
I’m not able to backup the database because of timeouts …and upgrading without backup is going to be a HUGE risk

I also found out that backups restored through phpMyadmin don’t work!
Shall I start repainting my decision to use buddypress? Or is there any ray of hope?
April 23, 2009 at 2:59 pm #43322Jeff Sayre
ParticipantJJJ-
The party was great! But, it ended last night.
April 23, 2009 at 2:33 pm #43318In reply to: Defualt member theme not working
John James Jacoby
KeymasterMake sure you have a .htaccess file in the root of your install.
Make sure which ever theme you’re using as your home theme has the functions.php from the buddypress-home theme. It’s responsible for doing some funky routing of some pages.
I’m going to check the trunk out now on a fresh install and see if I can duplicate anything.
April 23, 2009 at 2:11 pm #43316John James Jacoby
KeymasterI missed this party somehow, but wanted to offer my support.
Wherever this party moves to, I’m there.
April 23, 2009 at 1:58 pm #43315In reply to: Defualt member theme not working
chriscarter
ParticipantPugins page says I am running BuddyPress 1.0-RC2. /plugins/buddypress/bp-themes/ no longer exists and /bp-themes/buddypress-member/ is confirmed.
An edit to my initial message: I’m running trunk 1387, not 1381.
April 23, 2009 at 1:38 pm #43311In reply to: Defualt member theme not working
chriscarter
ParticipantThanks Jeff but none of that seemed to help. No error messages in the log, no other plugins running, everything is where it should be. I didn’t say before but everything was running fine when I was on an older trunk and WPMU 2.7. It was after the upgrade when the problem started. I’m running everything stock and am still getting this message:
You do not have any BuddyPress themes installed.
Please move “/wp-content/plugins/buddypress/bp-themes/” to “/wp-content/bp-themes/” and refresh this page. You can download more themes here.
April 23, 2009 at 11:50 am #43307In reply to: buddypress + p2 theme
Andy Peatling
KeymasterUse the latest trunk, I believe this was a bug I fixed.
April 23, 2009 at 11:27 am #43306Burt Adsit
ParticipantI thought about the actual utility of pasting it there. One thing it does is get me thinking about the difference between programming for wpmu and wp.
April 23, 2009 at 10:29 am #43304In reply to: buddypress + p2 theme
tomaszg
ParticipantIn user blog is OK post + comment (ex tom3.jatymy.eu). In main site (jatymy.eu) in Site Wide Activity post appears really after writing comment in user blog.
April 23, 2009 at 9:49 am #43302In reply to: buddypress + p2 theme
Paul Wong-Gibbs
KeymasterI can’t understand what you are saying. I believe p2 uses posts for each update even thought they look like comments so I think this is working correctly.
April 23, 2009 at 8:59 am #43295In reply to: Dashboard skin
takuya
Participantdashboard? wp and wpmu has the same dashboard design…
If u want social networking funtion within the dashboard, there’re wpmu plugins to enable friends and messages rather than using buddypress.
April 23, 2009 at 7:35 am #4527Topic: buddypress + p2 theme
in forum How-to & TroubleshootingApril 23, 2009 at 5:32 am #4525thebigk
ParticipantI’m currently running WPMU 2.7 with Buddypress RC1. The upgrade link on the top of my installation is bit irresistible.
Shall I go ahead and hit the upgrade link? Or wait …
April 23, 2009 at 5:27 am #43282In reply to: Limit Blog Creation to Admins
squattingturnip
ParticipantThank you, thank you, thank you.
Your code works like a charm, and you have taught me a great deal about how BuddyPress (and WPMU) works. I really, really appreciate it.
Incidentally, the changes I made are as follows, in case your or anyone else is curious:
global $current_user;
if ( isset( $roles['administrator'] ) || isset( $roles['editor'] ) || isset( $roles['contributor'] ) || is_site_admin() )was added to the “my_can_user_create_a_blog” function. Kind of an odd set of conditions, but, well…whatever. I\’m going to do a little bit of digging around later on, and see if I can condense that down a little (initially I’d planned to have it as a sort of “if user level is great than x” thing, but my cursory examination didn’t turn that up, so this is a decent stopgap for now).
I also added an if statement that draws on the “my_can_user_create_a_blog” function for the “my_blogs_setup_nav” function, so that now everything it does is wrapped thusly:
if (my_can_user_create_a_blog()==true) {
...
}and changed “is_user_logged_in” in the “my_adminbar_blogs_menu” function to call “my_can_user_create_a_blog” instead.
Again, I can’t thank you enough. I only hope some day I can help someone out the way you’ve helped me.
April 23, 2009 at 4:51 am #43278In reply to: FAQ: How To, Code Snippets and Solutions
Burt Adsit
ParticipantLimiting the creation of blogs to certain user roles such as Site Admin
This thread describes how to modify the both the admin bar and the member theme navigation functions using bp-custom.php. No core mods needed. It can give you an idea of how to modify any bp function that responds to an action.
April 23, 2009 at 4:30 am #43277In reply to: How to: Modify the bp admin bar
Burt Adsit
Participant@Tutsie, upgrade to RC2/trunk. That feature was added some time ago.
@Hyrxx, you’d have to move the logo into the actual
<ul><li>structure of the menu itself. Right now it sits outside of that. It’s not really part of the menu as of now. I just finished doing a tutorial on altering the admin bar as part of this thread: https://buddypress.org/forums/topic.php?id=2283Believe it or not I’m getting kinda burned out on the admin bar. I know it’s one of the most visible aspects of bp. It is also one of the easiest ways to allow your users to navigate to important areas of your site. I just don’t have time to tackle that right now. I have a project I’m working on that needs attention.
April 23, 2009 at 4:04 am #43276In reply to: adding new field to group
isuru
Participantsry, this is the source code. i have mentioned the functions which i modified only.
the screen “create new group” appears with added field, the error is given when saving.
what are the other files to be modified????????
<?php
/**********************
bp-group.php
**********************/
function groups_install() {
/*some code goes here*/
$sql[] = “CREATE TABLE {$bp->groups->table_name} (
…………..
author varchar(50) NOY NULL,
………….
) {$charset_collate};”;
/*some code goes here*/
}
function groups_check_installed() {
if(is_site_admin()){
if ( !$wpdb->get_var(“SHOW TABLES LIKE ‘%” . $bp->groups->table_name . “%'”) || ( get_site_option(‘bp-groups-db-version’) < BP_GROUPS_DB_VERSION ) )
groups_install();
}
/*some code goes here*/
}
function groups_screen_group_admin_edit_details() {
/*some code goes here*/
if ( $bp->current_component == $bp->groups->slug && ‘edit-details’ == $bp->action_variables[0] ) {
if ( $bp->is_item_admin || $bp->is_item_mod ) {
if ( isset( $_POST[‘save’] ) ) {
if ( !groups_edit_base_group_details( $_POST[‘group-id’], $_POST[‘group-name’], $_POST[‘group-desc’], $_POST[‘group-news’], $_POST[‘author’], (int)$_POST[‘group-notify-members’] ) ) {
bp_core_add_message( __( ‘There was an error updating group details, please try again.’, ‘buddypress’ ), ‘error’ );
} else {
/*some code goes here*/
}
/*some code goes here*/
}
do_action( ‘groups_screen_group_admin_edit_details’, $group_obj->id );
bp_core_load_template( ‘groups/admin/edit-details’ );
}
}
}
add_action( ‘wp’, ‘groups_screen_group_admin_edit_details’, 4 );
function groups_create_group( $step, $group_id ) {
/*some code goes here*/
if ( is_numeric( $step ) && ( 1 == (int)$step || 2 == (int)$step || 3 == (int)$step || 4 == (int)$step ) ) {
if ( !$group_obj )
$group_obj = new BP_Groups_Group( $group_id );
switch ( $step ) {
case ‘1’:
if ( !check_admin_referer( ‘groups_step1_save’ ) )
return false;
if ( $_POST[‘group-name’] != ” && $_POST[‘group-desc’] != ” ) {
/*some code goes here*/
$group_obj->author = stripslashes($_POST[‘author’]);
/*some code goes here*/
if ( !$group_obj->save() )
return false;
/*some code goes here*/
}
break;
/*some code goes here*/
}
}
function groups_screen_create_group() {
/*some code goes here*/
if ( isset( $_POST[‘save’] ) || isset( $_POST[‘skip’] ) ) {
/*some code goes here*/
if ( !$group_id = groups_create_group( $create_group_step, $_SESSION[‘group_obj_id’] ) ) {
/* error message*/
} else {
/*some code goes here*/
}
/*some code goes here*/
}
/*some code goes here*/
bp_core_load_template( ‘groups/create’ );
}
function groups_edit_base_group_details( $group_id, $group_name, $group_desc, $group_news, $group_author, $notify_members ) {
/*some code goes here*/
if ( !check_admin_referer( ‘groups_edit_group_details’ ) )
return false;
if ( empty( $group_name ) || empty( $group_desc ) )
return false;
/*some code goes here*/
$group->news = $group_news;
/*some code goes here*/
if ( !$group->save() )
return false;
if ( $notify_members )
groups_notification_group_updated( $group->id );
/*some code goes here*/
}
function groups_screen_group_admin_edit_details() {
/*some code goes here*/
if ( $bp->current_component == $bp->groups->slug && ‘edit-details’ == $bp->action_variables[0] ) {
if ( $bp->is_item_admin || $bp->is_item_mod ) {
if ( isset( $_POST[‘save’] ) ) {
if ( !groups_edit_base_group_details( $_POST[‘group-id’], $_POST[‘group-name’], $_POST[‘group-desc’], $_POST[‘group-news’], $_POST[‘author’], (int)$_POST[‘group-notify-members’] ) ) {
/*error message*/
} else {
/*some code goes here*/
}
/*some code goes here*/
}
/*some code goes here*/
}
}
}
//add_action();
/**********************
bp-groups-classes.php
**********************/
class BP_Groups_Group {
/*some code goes here*/
var $news;
function populate( $get_user_dataset ) {
/*some code goes here*/
if ( $group ) {
/*some code goes here*/
$this->author = stripslashes($group->author);
/*some code goes here*/
}
}
function save() {
/*some code goes here*/
if ( $this->id ) {
$sql = $wpdb->prepare(
“UPDATE {$bp->groups->table_name} SET
author = %s,
WHERE
id = %d
“,
/*some code goes here*/
$this->author,
/*some code goes here*/
);
} else {
$sql = $wpdb->prepare(
“INSERT INTO {$bp->groups->table_name} (
news,
) VALUES (
%s
)”,
/*some code goes here*/
$this->author,
/*some code goes here*/
);
}
/*some code goes here*/
}
}
/**********************
bp-groups-filters.php
**********************/
add_filter( ‘bp_group_author’, ‘wptexturize’ );
add_filter( ‘bp_group_author’, ‘convert_smilies’ );
add_filter( ‘bp_group_author’, ‘convert_chars’ );
add_filter( ‘bp_group_author’, ‘wpautop’ );
add_filter( ‘bp_group_author’, ‘make_clickable’ );
/**********************
bp-groups-templatetags.php
**********************/
/*some code goes here*/
function bp_group_author() {
global $groups_template;
echo apply_filters( ‘bp_group_author’, stripslashes($groups_template->group->author) );
}
function bp_group_author_editable() {
global $groups_template;
echo apply_filters( ‘bp_group_author_editable’, $groups_template->group->author );
}
/*some code goes here*/
function bp_group_create_form() {
/*some code goes here*/
?>
<form action=”<?php echo $bp->displayed_user->domain . $bp->groups->slug ?>/create/step/<?php echo $create_group_step ?>” method=”post” id=”create-group-form” class=”standard-form” enctype=”multipart/form-data”>
<?php switch( $create_group_step ) {
case ‘1’: ?>
<label for=”author”>* <?php _e(‘Author’, ‘buddypress’) ?></label>
<textarea name=”author” id=”author”><?php echo ( $group_obj ) ? $group_obj->author : $_POST[‘author’]; ?>
</textarea>
<?php do_action( ‘groups_custom_group_fields_editable’ ) ?>
<p><input type=”submit” value=”<?php _e(‘Create Group and Continue’, ‘buddypress’) ?> »” id=”save” name=”save”/></p>
<?php wp_nonce_field( ‘groups_step1_save’ ) ?>
<?php break;
/*some code goes here*/
}
}
?>
April 23, 2009 at 3:54 am #43275In reply to: How to: Modify the bp admin bar
hyrxx
Participantis it possible to have the admin menu start on the buddypress image, rather than my account,
i plan to rewrite all the menu items when i redesign my site, and i want to attach a menu to the buddypress ‘home’ link
April 23, 2009 at 3:35 am #43274In reply to: Limit Blog Creation to Admins
Burt Adsit
ParticipantBack from break. Since I\’ve been creating this stuff out of thin air and it might be a good time to test this. brb.
Well, something went right today. This seems to work. I had to add a hook for the \’wp_footer\’ action that actually triggers the admin menu. The code in a copy/paste format is available here:
http://buddypress.pastebin.com/fce770ad
Copy and paste that into your bp-custom.php file. You can then alter the minimal logic in the function my_can_user_create_a_blog() to determine who and when people can see the \’create a blog\’ menu items scattered throughout bp.
Let me know how this works for you or if I’ve missed anything.
April 23, 2009 at 2:51 am #43273In reply to: Problem with News CSS
Tutsie
ParticipantI am using the orange “Download” version of BuddyPress, I tried switching back to the default theme and it didnt fix it, I deactivated the WP-Forums plugin and that fixed it……I would like to continue to use WP-Forums so why is that plugin affecting it?
-
AuthorSearch Results
In users’ blog I applied p2 template. Interesting because in Recent Posts new post appears immediately and in Site Wide Activity really after writing to him comment (jatymy.eu). This is some mistake?