1

我是buddypress的新手。buddypress中是否有任何预加载的注册表单。如果有请给出选项路径。我使用了插件“BuddyPress 注册选项”。但是当我安装插件时,它会显示一条错误消息,例如

    Warning: Missing argument 2 for wpdb::prepare(), called in /var/www/TantraProjects/Ranjit/Nettantra_Social/wordpress/wp-content/plugins/bp-registration-options/includes/admin.php on line 19 and defined in /var/www/TantraProjects/Ranjit/Nettantra_Social/wordpress/wp-includes/wp-db.php on line 990

    Warning: Cannot modify header information - headers already sent by (output started at /var/www/TantraProjects/Ranjit/Nettantra_Social/wordpress/wp-includes/wp-db.php:990) in /var/www/TantraProjects/Ranjit/Nettantra_Social/wordpress/wp-includes/option.php on line 568

    Warning: Cannot modify header information - headers already sent by (output started at /var/www/TantraProjects/Ranjit/Nettantra_Social/wordpress/wp-includes/wp-db.php:990) in /var/www/TantraProjects/Ranjit/Nettantra_Social/wordpress/wp-includes/o

ption.php on line 569

如何在 buddypress 中建立注册表单。

4

1 回答 1

0

看到这是不久前被问到的,但出于文档目的,我会回答。是的,有一个预加载的注册表单。BuddyPress 主要是 WordPress 注册顶部的包装器(即默认情况下的 About Me)

路径是 /your-theme/buddypress/members/register.php

要构建自定义注册表单,您可以使用它,将其放在主题的 functions.php 中:

    <?php
// hacks and mods will go here
/**
 * Disables BuddyPress' registration process and fallsback to WordPress' one.
 */
function my_disable_bp_registration() {
  remove_action( 'bp_init',    'bp_core_wpsignup_redirect' );
  remove_action( 'bp_screens', 'bp_core_screen_signup' );
}
add_action( 'bp_loaded', 'my_disable_bp_registration' );

add_filter( 'bp_get_signup_page', "firmasite_redirect_bp_signup_page");
    function firmasite_redirect_bp_signup_page($page ){
        return bp_get_root_domain() . '/wp-signup.php'; 
    }
?>
于 2015-03-17T06:21:38.620 回答