Search Results for 'wordpress'
-
Search Results
-
I am trying to create custom tabs with their own content in different groups.
Looking around the forum it seems this can be done using the Group Extension API.
According to this thread it should be possible to do it by adding the API code (copied below) into bp-custom.php.
However when I do this I get the following error:
Fatal error: Class ‘BP_Group_Extension’ not found in (directory)bp-custom.php
This appears to be because it is loading after Buddypress. The codex supplies information on how to fix this for building a plugin but I’m not sure how to adapt this for my code in bp-custom.php.
Can anyone help me do this?
Here’s the code I’m using in bp-custom.php which is as found on the Group Extension API page:
class My_Group_Extension extends BP_Group_Extension { function my_group_extension() { $this->name = 'My Group Extension'; $this->slug = 'my-group-extension'; $this->create_step_position = 21; $this->nav_item_position = 31; } function create_screen() { if ( !bp_is_group_creation_step( $this->slug ) ) return false; ?> The HTML for my creation step goes here. <?php wp_nonce_field( 'groups_create_save_' . $this->slug ); } function create_screen_save() { global $bp; check_admin_referer( 'groups_create_save_' . $this->slug ); /* Save any details submitted here */ groups_update_groupmeta( $bp->groups->new_group_id, 'my_meta_name', 'value' ); } function edit_screen() { if ( !bp_is_group_admin_screen( $this->slug ) ) return false; ?> <h2>name ) ?></h2> Edit steps here <?php wp_nonce_field( 'groups_edit_save_' . $this->slug ); } function edit_screen_save() { global $bp; if ( !isset( $_POST ) ) return false; check_admin_referer( 'groups_edit_save_' . $this->slug ); /* Insert your edit screen save code here */ /* To post an error/success message to the screen, use the following */ if ( !$success ) bp_core_add_message( __( 'There was an error saving, please try again', 'buddypress' ), 'error' ); else bp_core_add_message( __( 'Settings saved successfully', 'buddypress' ) ); bp_core_redirect( bp_get_group_permalink( $bp->groups->current_group ) . '/admin/' . $this->slug ); } function display() { /* Use this function to display the actual content of your group extension when the nav item is selected */ } function widget_display() { ?> <div class="info-group"> <h4>name ) ?></h4> You could display a small snippet of information from your group extension here. It will show on the group home screen. </div> <?php } } bp_register_group_extension( 'My_Group_Extension' );Incidentally, I note there is a plugin designed to achieve what I’m trying to do but as it’s only in beta I can’t use it on a live site yet.
I’ve just tried adding BuddyPress (v1.5.7) to an existing install of WordPress (v3.4.1) but ran into a problem. Basically because I’m running my install on a Windows box using IIS (v5) I can’t use .htaccess for pretty permalinks but I can’t work out how to stop BuddyPress from trying using them.
Is it possible to use BuddyPress without having pretty permalinks and if it is how can I do it ?
p.s. Unfortunately I’m stuck with using IIS5 on Windows (moving it on to a UNIX box isn’t an option).
Thanks,
There’s an old script available on code.google.com called “wordpress-to-bbpress-converter”. It generally does what I want it to do, only it works with the old standalone bbPress, which doesn’t even seem to be available on bbpress.org any more. I was wondering if there’s some more recent method of converting WP posts and comments into forum threads, ideally within BuddyPress?
Hello! I’ve done a pretty extensive search for a tutorial or relevant forum thread on my request, but I haven’t found one yet. Here’s what I need to do:
• When a new user registers, I want to store their email in a separate MySQL database.
>> Note: I am planning to forgo password retrieval on this site, which requires top-notch security.How can this be done, if at all? And if there’s a thread already about this, I would welcome a point in the right direction.
Also, BuddyPress is awesome. I’m delighted to be using it.
HUGE thanks in advance!
Version info:
Wordpress version 3.4.1
PHP version 5.2.17
BuddyPress version 1.5.7After install BuddyPress this empty blank line began to display. Frontend is clean.
I’ve tried to deactivate BuddyPress plugin and it vanishes.
Using last version of WordPress and BuddyPress and no more plugins, I’m just starting the site.
Topic: Dont know how to get started
Please help. I’ve installed BuddyPress as well as the template pack, but I dont know how to get started. I have a very basic (and silly) question. What kind of wordpress page do I need to create to associate it with the respective BP pages? Do I need to design my own forum, registration page etc?
Whenever I have Xdebug active, it either prevents anything from being displayed on the page or throws an Allowed memory size exhausted error on a buddypress site I am testing on my local server. Has anyone else encountered this with buddypress? Any suggestions? Let me know if there’s other info I should provide.
1. Which version of WordPress are you running?
3.4.1
2. Did you install WordPress as a directory or subdomain install?
subdomain localhost
3. If a directory install, is it in root or in a subdirectory?
root
4. Did you upgrade from a previous version of WordPress? If so, from which version?
no
5. Was WordPress functioning properly before installing/upgrading BuddyPress (BP)? e.g. permalinks, creating a new post, commenting.
yes
6. Which version of BP are you running?
1.5.6
7. Did you upgraded from a previous version of BP? If so, from which version?
no
8. Do you have any plugins other than BuddyPress installed and activated? If so, which ones?
BP Group Management
BP Profile Search
BuddyPress
BuddyPress Mandatory Groups
Import Users from CSV
Limit Groups per User
NextGEN Gallery
WP-FB-AutoConnect
WP Multibyte Patch
9. Are you using the standard BuddyPress themes or customized themes?
customised
10. Have you modified the core files in any way?
no
11. Do you have any custom functions in bp-custom.php?
no
12. If running bbPress, which version? Or did your BuddyPress install come with a copy of bbPress built-in?
not running it
13. Please provide a list of any errors in your server’s log files.
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 24576 bytes) in
DOCUMENTSCOMMSWEBDEV_htdocs***wp-contentpluginsbuddypressbp-membersbp-members-signup.php on line 586
Call Stack
# Time Memory Function Location
1 0.0153 689136 {main}( ) ..wp-login.php:0
2 0.0155 708728 require( ‘
DOCUMENTSCOMMSWEBDEV_htdocs***wp-load.php’ ) ..wp-login.php:12
3 0.0157 723912 require_once( ‘
DOCUMENTSCOMMSWEBDEV_htdocs***wp-config.php’ ) ..wp-load.php:29
4 0.0162 826992 require_once( ‘
DOCUMENTSCOMMSWEBDEV_htdocs***wp-settings.php’ ) ..wp-config.php:83
5 0.1859 25566512 do_action( ) ..wp-settings.php:212
6 0.1890 26231504 call_user_func_array ( ) ..plugin.php:403
7 0.1890 26231520 bp_loaded( ) ..plugin.php:403
8 0.1890 26231576 do_action( ) ..bp-core-hooks.php:97
9 0.1890 26232424 call_user_func_array ( ) ..plugin.php:403
10 0.1890 26232440 bp_include( ) ..plugin.php:403
11 0.1890 26232496 do_action( ) ..bp-core-hooks.php:47
12 0.2523 33274896 call_user_func_array ( ) ..plugin.php:403
13 0.2523 33274912 BP_Members_Component->includes( ) ..plugin.php:403
14 0.2524 33275968 BP_Component->includes( ) ..bp-members-loader.php:46
14. Which company provides your hosting?
none – localhost
15. Is your server running Windows, or if Linux; Apache, nginx or something else?
Apache
