Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 25 replies - 326 through 350 (of 358 total)
  • @dcavins

    Keymaster

    I’ve found that BP Humanity helps with spam robots but not human spammers.
    https://wordpress.org/extend/plugins/buddypress-humanity/

    For human spammers, you may need to approve each user.
    https://wordpress.org/extend/plugins/bp-registration-options/

    @dcavins

    Keymaster

    I think a better bet is to collect that info on the BP registration page and then not display it on the user profile (that way you’ll still be able to use it in other ways). With BP 1.6. you can change the visibility of each xprofile field to friends only, logged-in users, or public (and force that level or allow the user to override your selection). (Visible to admin only is coming in BP 1.7, btw, which would totally fix you up.) At the moment, you can modify your theme template file (themes/yourtheme/members/single/profile/profile-loop.php) to hide some fields like this:
    `about line 17:

    <?php $no_display_fields = array( // Enter the field name of any field that you don't want to appear on the user profile.
    ‘E-mail’,
    ‘Name of Field Hide’,
    ‘Another’
    );

    if ( bp_field_has_data() && !in_array( bp_get_the_profile_field_name(), $no_display_fields ) ) : ?>`

    It’s a hack, but it works for me (until BP 1.7).

    @dcavins

    Keymaster

    Bump?

    @dcavins

    Keymaster

    Since registration involves a redirect to another page, why not attach your function to init, which is fired when a WP page is starting to load?

    function get_member_ID() {
    global $current_user;
    get_currentuserinfo();
    $ID = $current_user->ID;
    // Do stuff with user ID.
    }
    add_action('init', 'get_member_ID');

    Or you could do something when the user logs in:

    function get_member_ID_login() {
    global $user;
    $user->ID;
    // Do stuff with user ID.
    }
    add_action('wp_login', 'get_member_ID_login', 100, 3);

    There are some hooks in the registration process, too, I’m just not familiar with them.

    @dcavins

    Keymaster

    I made changes to the WP Admin Bar by adding this snippet to my theme’s functions.php file:

    // Customize WP Toolbar
    function change_toolbar($wp_toolbar) {
    $wp_toolbar->remove_node('my-account-forums');
    }
    
    add_action('admin_bar_menu', 'change_toolbar', 999); 

    You can remove any individual li by getting the id of it (in your case the li has the id wp-admin-bar-my-account-forums) and dropping the prefix wp-admin-bar-. The part where you remove the prefix is odd and makes it kind of a secret, but it works. I got the original idea here: http://www.sitepoint.com/change-wordpress-33-toolbar/

    @dcavins

    Keymaster

    To display extended profile fields in the members directory, it’s easiest to add a function to your theme’s functions.php file. My theme is based on the bp-default theme, so in my file /wp-content/themes/theme-name/members/members-loop.php, there’s this action at the end of each member’s entry that we can hook into:

    Open up your functions.php file and add something like this:

    function add_member_custom_extended_profile() {
    if ( $xprofile_tele = bp_get_member_profile_data( 'field=Telephone' ) ) {
    echo 'Telephone:' . $xprofile_tele . '
    ';
    }
    }
    add_action('bp_directory_members_item', 'add_member_custom_extended_profile'); 

    You can get the exact field name to use by looking at a member’s profile page and copying the text in the left-most column.

    I originally got this idea from here: http://premium.wpmudev.org/forums/topic/bp-add-profile-field-data-to-members-directory-with-links

    @dcavins

    Keymaster

    Any ideas?

    @dcavins

    Keymaster

    A popular way to do this is with a plugin:
    https://wordpress.org/extend/plugins/search.php?q=search+bbpress

    Some integrate the bbPress search with the WP search, some keep them separate; both ways make sense on different sites.

    @dcavins

    Keymaster

    Go to BuddyPress > Pages in your WordPress Admin menu. You should have a page selected (dropdown menus) for each line. If nothing is selected next to “Activity”, and there’s not a good page to use in the dropdown, use the “New Page” button. All you need to do is name the page and save it; it doesn’t need to have any content. Then, go back to BuddyPress > Pages and select the page you want to use. BP takes care of almost everything, including creating the correct activation link, if you tell it which page to use. :)

    @dcavins

    Keymaster

    The link should be http://www.myswayspot.com/activate/?key=5fe52bf2f614ef393d2cef3e44765415 by default. Do you have an activate page set up (BuddyPress>Pages)? Are you using permalinks in WP? Which setting? Maybe try disabling permalinks and making a new user…

    @dcavins

    Keymaster

    @djpaul WP pages are fine ( look like /members ). Group creation is fine ( /groups/(group name)/ )
    Accept group invitation links look like `/members/(member name)/groups/invites/accept/4(this is the correct id for the group I’m trying to join)?_wpnonce=(nonce removed by me because it seems like bad security to share?)`
    Working local version link looks like `/members/(member name)/groups/invites/accept/4(correct id)?_wpnonce=(hidden)`
    They seem to be identical, but MAMP knows how to handle it where IIS fails.

    Site is here: http://members.communitycommons.org/

    Thanks for any advice you can give.

    @dcavins

    Keymaster

    @mercime It’s been a little frustrating because everything works perfectly in MAMP and on my testing server (Linux), then there are problems on the production server. I think the problem is in the redirect module, but I don’t know the first thing about fixing that kind of problem on IIS. Thanks for your reply.

    @dcavins

    Keymaster

    Hi @mercime

    Thanks for your reply.

    Latest versions of BP/WP (3.3.1/1.5.3.1). The problem install is Windows hosted (MAMP install is Linux, of course). New install. I set the db up on the server fresh, and only imported posts to it, not settings. As part of troubleshooting, I imported the server install db into an empty MAMP install, and everything worked fine. It only seems to fail on the Windows server.

    Thanks,

    -David

    @dcavins

    Keymaster

    Member can change avatars by going to their user profile > Profile tab > Change Avatar.

    When you say no profile content, do you mean the tab is empty? There are no tabs? Can you be more specific? If you haven’t added any extended profile fields, the only data that will display is their name, I believe.

    @dcavins

    Keymaster

    No ideas? One other thing doesn’t work: activation. Could these be redirect failures?

    @dcavins

    Keymaster

    Yes, compare this part of wp-config (not real values):
    `define(‘DB_NAME’, ‘wordpress’);
    /** MySQL database username */
    define(‘DB_USER’, ‘root’);
    /** MySQL database password */
    define(‘DB_PASSWORD’, ‘root’);
    /** MySQL hostname */
    define(‘DB_HOST’, ‘localhost’);`

    to the similar section in bb-config. Is bb-config at the root level of your web space?

    Can you access your db to make sure the tables are where they should be and have the correct names?

    @dcavins

    Keymaster

    Oh, and it also fails if I use the BP Default theme, not just my custom theme.

    @dcavins

    Keymaster

    If these are in-group forums, check that `bb-config.php` is at the root level of your install and the database connection values in it match the values in your `wp-config.php` file. I had this same problem, and completing bb-config did the trick; your forums can’t communicate with the db at the moment.

    @dcavins

    Keymaster

    If these are in-group forums, check that `bb-config.php` is at the root level of your install and the database connection values in it match the values in your `wp-config.php` file. I had this same problem, and completing bb-config did the trick; your forums can’t communicate with the db at the moment.

    @dcavins

    Keymaster

    Sounds like you’re having a jQuery conflict causing the AJAX calls to fail. If you’re using other plugins, deactivate them one by one to find it. Also disable any jQuery code you’ve added.

    @dcavins

    Keymaster

    Are you using the BuddyPress Template Pack plugin? (https://wordpress.org/extend/plugins/bp-template-pack/) I used that and followed the procedure for adding BP compatibility to my theme that the plugin provides.

    @dcavins

    Keymaster

    Is bbPress activated? (From the WP admin interface, can you see new buttons on your dashboard for forums, topics & replies?) Can you add a new forum?

    What’s your “forums base” & “single slug” at Settings > Forums?

    @dcavins

    Keymaster

    My working setup for a site-wide forum is:
    Disable the BuddyPress Forum component altogether (BuddyPress>Components)
    Install the bbPress plugin for WordPress.
    Don’t create a “Forum” page within WordPress. If one exists, I got odd behavior, even if it was in Draft status. (Definitely don’t make a Forums page and add the bbPress shortcode.)
    Enable bbPress plugin.
    Create a new forum via the admin menu Forums > New Forum.
    Go to the dashboard menu Settings > Permalinks and Save. (This flushes your permalinks.)

    Now, when you go to your bbPress default slug, it should take over and build the page. If you have other forum-related weirdness, like “Please pick the group forum where you would like to post this topic” or “Can’t create topic”, check for the existence of bbconfig.php at the root of your web space. If it exists, open it and make sure that it has the correct database info entered in it. (The host, user and password should probably match what is entered in wp-config.php.)

    @dcavins

    Keymaster

    Or, your bbconfig.php file doesn’t have the right info in it.

    @dcavins

    Keymaster

    You’d b better off disabling the buddybar and customizing the wordpress bar. There’s lots on the web about that, and the buddy bar is slated to go away, I believe.

    Add this line to wp-config.php to re-enable the WP bar:
    `define ( ‘BP_USE_WP_ADMIN_BAR’, true );`

Viewing 25 replies - 326 through 350 (of 358 total)
Skip to toolbar