Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'wordpress'

Viewing 25 results - 7,201 through 7,225 (of 32,685 total)
  • Author
    Search Results
  • #249083
    kalico
    Participant

    Having a small issue with registration redirects. No matter what changes I make, BuddyPress seems to “take over” registration on my multisite.

    If I try to go to http://mysite.com/wp-login.php?action=register (the main site) it pushes me to http://mysite.com/subsite/register (the subsite where BuddyPress is defined).

    I have BuddyPress (lastest version) enabled in one site of my multsite network, per option B on this page (e.g., ‘BP_ROOT_BLOG’ is defined in wp-config.php). It is not a multiblog.

    Is this the expected behavior for this setup scenario? Or is it more likely that I have some “helpful” plugin taking over here? Or…did I force this somewhere in the code or settings (and forget to make a note to self)?

    Thanks in advance…

    #249070
    starwindeu
    Participant

    Hello 😉

    Ive been thinking for a while it would be nice with a plugin that makes it so when people register at my world of warcraft guild site and fill out character name and server the plugin would pull profile picture from the battle.net api. and use that on the persons profile

    but having no clue what so ever with coding im wondering if this would be hard to do?

    I know for a fact the api allows this as ive seen several other websites with this feature on, not wordpress obv

    https://dev.battle.net/

    Anyone knows?

    #249065
    shanebp
    Moderator

    ‘WordPress database error: [Unknown column ‘user_id’ in ‘field list’]’

    There is no user_id field in bp_xprofile_fields.
    The correct table is bp_xprofile_data.

    value is a text field, so you need quotes: AND value = '45'";

    Instead of AND value !empty"; try AND value != ''";

    $wpdb->get_var returns a single value. Try $wpdb->get_col.

    Your issues could have been solved by examining the table structure and reading reference docs like https://codex.wordpress.org/Class_Reference/wpdb.

    #249063
    Leo
    Participant

    Hello,

    I am trying to get user_ids of users that have field a certain filed in their profiles to show only them in a custom members loop.


    global $wpdb;
    $db_query = "SELECT user_id FROM wp_bp_xprofile_fields WHERE field_id = 2 AND value !empty";
    $match_ids = $wpdb->get_var($db_query);
    $get_these_members = '&per_page=20&type=newest&include=' .$match_ids;
    if ( bp_has_members($get_these_members) ) :

    I think there’s a syntax error, and !empty is not the correct way for this, I tried a lot of options non of the works.
    To test it, I tried this line:

    $db_query = "SELECT user_id FROM wp_bp_xprofile_fields WHERE field_id = 2 AND value = 45";

    where 45 is the value of the filed for one of the members, but it still doesn’t show any member.

    I found that I need to implode the user_ids list from the forum, but it doesn’t help neither.

    It returns ‘Sorry, no members were found.’
    when I enable wp_debug appears this error
    ‘WordPress database error: [Unknown column ‘user_id’ in ‘field list’]’

    Could you please help me?

    Thanks,
    Leo

    #249055

    In reply to: Error 404

    mervinpearce
    Participant

    *** Resolved ***
    All I had to do is create a Register and Activate page under WordPress. As simple as that.

    Suggestion, can activation of BuddyPress Plugin not check for Register and Activate pages and if not found create default ones?

    regards & thanks

    #249048

    Topic: Error 404

    in group forum Installing BuddyPress
    mervinpearce
    Participant

    My register does not work and I have in General Settings under WordPress as active.
    In BuddyPress there is no Active and Register page to configure. I reinstalled BuddyPress to no avail.

    #249045

    In reply to: BP pages trigger 404

    mervinpearce
    Participant

    Created two WordPress sites with buddy press. I am using a Bossbuddy theme and it is just annoying that a register will trigger a 404. This problem is scattered all over the postings. Is there a single source for solving this??

    It goes to http://webaddress/register

    #249038
    Hellbounds
    Participant
    <?php
    
    /**
     * BuddyPress - Users Profile
     *
     * @package BuddyPress
     * @subpackage bp-default
     */
    
    ?>
    
    <?php if ( bp_is_my_profile() ) : ?>
    
    	<div class="item-list-tabs no-ajax" id="subnav" role="navigation">
    		<ul>
    
                <?php bp_get_options_nav(); ?>
    
    		</ul>
    	</div><!-- .item-list-tabs -->
    
    <?php endif; ?>
    
    <?php do_action( 'bp_before_profile_content' ); ?>
    
    <div class="profile">
    
    	<?php switch ( bp_current_action() ) :
    
    		// Edit
    		case 'edit'   :
    			bp_get_template_part( 'members/single/profile/edit' );
    			break;
    
    		// Change Avatar
    		case 'change-avatar' :
    			bp_get_template_part( 'members/single/profile/change-avatar' );
    			break;
    
    		// Change Cover Image
    		case 'change-cover-image' :
    			bp_get_template_part( 'members/single/profile/change-cover-image' );
    			break;
    
    		// Compose
    		case 'public' :
    
    			// Display XProfile
    			if ( bp_is_active( 'xprofile' ) )
    				bp_get_template_part( 'members/single/profile/profile-loop' );
    
    			// Display WordPress profile (fallback)
    			else
    				bp_get_template_part( 'members/single/profile/profile-wp' );
    
    			break;
    
    		// Any other
    		default :
    			bp_get_template_part( 'members/single/plugins' );
    			break;
    	endswitch; ?>
    
    </div><!-- .profile -->
    
    <?php do_action( 'bp_after_profile_content' ); ?>
    #249031
    Hellbounds
    Participant

    not working ..

    /*
    Theme Name: Sweetdate (shared on themelot.net)
    Description: More than a WordPress dating theme
    Author: SeventhQueen
    Author URI: http://themeforest.net/user/SeventhQueen
    Version: 2.9.2
    Tags: dating, clean, responsive, creative, minimal, modern, landing page, social
    Text Domain: kleo_framework
    License: GNU General Public License
    License URI: license.txt
    */
    @import url("assets/styles/app.css");
    
    /*
    * DO NOT EDIT THIS FILE
    * 
    * If you want to edit/add styles you need to enable the child theme and add your custom styles there.
    */
    
    #buddypress .profile h4{display:none !important}
    #249007
    Andrew Tibbetts
    Participant

    Thought I had found the silver bullet here:

    https://buddypress.org/support/topic/need-to-disable-the-user-access-to-wordpress-admin-panel/#post-183537

    which includes a check for ! ( defined( 'DOING_AJAX' ) && DOING_AJAX )…still has a redirect loop when performing the ajax actions.

    The search continues…

    #248997
    danbp
    Participant

    Community members and wp users are the same thing and are stored in an unique DB table: xx_users which is the one you can bulk import/export.

    I invite you to read through the Codex about members and what it does when it extend WP users.

    #248981
    danbp
    Participant

    This is a basic WordPress question.
    You can do that via phpmyadmin if you’re confortable with mysql or use a plugin. Search on plugin repo for CSV importer or similar keywords.

    #248972
    Slava Abakumov
    Moderator

    What about default WordPress cropping? Does it work? Maybe the problem is in the access permissions to /uploads directory.

    Other possible issue – do you have PHP image manipulation modules installed and activated?

    #248971

    In reply to: new user emails

    Slava Abakumov
    Moderator

    You can try this plugin: https://wordpress.org/plugins/bp-disable-activation-reloaded/
    But you should not do this – anyone will be able to register with fake emails.

    #248955
    shanebp
    Moderator

    wp_create_user returns the user id if there are no errors.
    https://codex.wordpress.org/Function_Reference/wp_create_user

    So try:

    $user_id =  wp_create_user( // etc );
    
    if( is_wp_error( $user_id) ) 
        echo $user_id->get_error_message();
    else
        bp_update_user_last_activity( $user_id, bp_core_current_time() );
    ch1n3s3b0y
    Participant

    Hi

    I have adjusted my registration form to not display the username field. I only want users to be able to login with their email and so the username field is essentially redundant; however it is still required for WordPress/Buddypress.

    I have found script to autogenerate a random string which is fine. What I am having trouble with, is how do I intercept the registration, before it actually registers the user so that I can randomly generate the username? I don’t want to insert a randomly generated username into the form and simply hide it, as a savvy user could view the source and change the value of the username field.

    Also, is anyone aware of a simple way to check whether the username is available or not? I know that if I use a random string of 10 characters that it is unlikely that it will exist, but it is better to be safe rather than sorry.

    Thanks

    #248940
    michaelnewsomejr
    Participant

    I’ve been having a problem getting the profile image and cover image to work. When I attempt to crop the image, it give me the “there was an error cropping your profile image” error and doesn’t post.

    The site is hosted on a dedicated server.

    I have deactivated all plugins except Buddypress and activated the 2015 theme, and it still gives the same error.

    PHP version: 5.6
    Buddypress version: 2.4.3
    Wordpress version: 4.4.1

    The file I’m trying to uplaod and use is 9.7kb, titled X.png, and 300px by 375px

    Any help or advice would be appreciated/

    #248911

    In reply to: Error Posting Comments

    Manoj Chacko
    Participant

    I did check the theme before with twenty fifteen and the error was still there, we currently using a studiopress theme. But I checked it again with twenty fifteen and the issue remains.

    1. Which version of WordPress are you running?
    WordPress 4.3.2

    2. Did you install WordPress as a directory or subdomain install?
    Directory

    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?
    Yes, don’t remember which version it was 4.2.* I think

    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?
    BuddyPress 2.4.3.

    7. Did you upgraded from a previous version of BP? If so, from which version?
    yes, I think it was buddypress 2.2.*

    8. Do you have any plugins other than BuddyPress installed and activated? If so, which ones?
    Yes,
    Akismet; BuddyPress; BuddyPress Docs; BuddyPress Group Email Subscription; BuddyPress Sitewide Activity Widget; CustomPress; Google Analytics +
    ImageInject; Jetpack by WordPress.com; More Privacy Options; Multisite Plugin Manager; New Blog Templates; Site Categories; TinyMCE Advanced
    Ultimate Branding; User Role Editor; WordPress Importer; WP Author Slug; WPMU DEV Dashboard; WPMU Ldap Authentication;

    9. Are you using the standard WordPress theme or customized theme?
    Studiopress theme (Tested with twenty 15 as well)

    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?
    BBpress Version 2.5.8

    13. Please provide a list of any errors in your server’s log files.
    Under the windows event viewer is an error
    “Faulting application name: httpd.exe, version: 2.4.16.0, time stamp: 0x55a22a64
    Faulting module name: php5ts.dll, version: 5.6.12.0, time stamp: 0x55c3b699”
    Happens whenever this error occurs.
    Nothing related within the apache logs That I can see.

    14. Which company provides your hosting?
    University Hosted (Temple University)
    15. Is your server running Windows, or if Linux; Apache, nginx or something else?
    Windows running Xampp

    Xtremefaith
    Participant

    I have a custom registration form that tweaked the registration.php template to include a couple additional inputs. The form works as expected, being processed through the buddypress channels

    bp_core_screen_signup()

    Then I hook into the bp_core_signup_user like so:

    # Capture registration form's metadata fields
    add_action('bp_core_signup_user', array( $this, 'add_registration_metadata' ),10 ,1);

    Through my custom add_registration_metadata() method I store the $_POST meta to the user_id like so:

    public function add_registration_metadata($user_id){
    	$type = isset($_POST['team_type']) ? $_POST['team_type'] : FALSE;
    	if ($type){
    		# Make sure that the post value matches the available options
    		if (($type == "type1") || ($type == "type2"))
    			# Save the value as user meta
    			add_user_meta( $user_id, 'team_type', $type);
    	}
    	/* Save username to metadata */
    	$username = isset($_POST['signup_username']) ? $_POST['signup_username'] : FALSE;
    	/* Save first name to metadata */
    	$fname = isset($_POST['signup_fname']) ? $_POST['signup_fname'] : FALSE;
    	/* Save last name to metadata */
    	$lname = isset($_POST['signup_lname']) ? $_POST['signup_lname'] : FALSE;
    
    	/* Update WordPress Details */
    	$userdata = array (
    		'ID' => $user_id,
    		'first_name' => $fname,
    		'last_name' => $lname,
    		'nickname' => $username,
    		'user_nicename' => DIV_Helper::slugify($username)
    	);
    	wp_update_user( $userdata );
    }

    As expected all the values are set in the usermeta table. I would think this is all that is left to do but its not and there is some confusion as to what is happening next.

    So now the user attempts to activate their account through their email obviously passing the activation key. This works! BUT my metadata values are gone. For some reason BuddyPress wipes the values stored in the usermeta table. So then I try to hook into the bp_core_activate_signup like so:

    add_action('bp_core_activated_user', array( $this, 'setup_registration_metadata') );

    This custom method attempts to re-update the user information but for some reason no combination seems to work, here’s what I have at the moment:

    public function setup_registration_metadata($user){
    	if (! empty( $user ) ) {
    		if ( is_array( $user ) ) {
    			$user_id = $user['user_id'];
    		} else {
    			$user_id = $user;
    		}
    	
    		if ( ! empty( $user_id ) ) {
    			$usermeta = get_user_meta($user_id);	
                                
                                // This doesn't seem to work as expected	
    			$type = $usermeta['team_type'];
                                // But this does...
                                $type = get_user_meta($user_id, 'team_type' TRUE);
    
    			# Make sure the value matches the available options
    			if (($type == "type1") || ($type == "type2"))
    				# Set the member type
    				bp_set_member_type($user_id, $type);
    
    			# Setup username
    			$username = $usermeta['username'][0];
    			# Setup first name
    			$fname = $usermeta['first_name'][0];
    			# Setup last name
    			$lname = $usermeta['last_name'][0];
    			
    			/* Update WordPress Details */
    			$userdata = array (
    				'ID' => $user_id,
    				'first_name' => $fname,
    				'last_name' => $lname,
    				'nickname' => $username,
    				'user_nicename' => DIV_Helper::slugify($username)
    			);
    			wp_update_user( $userdata );
    
                      ...
    }

    Any clues as to how I can update the first & last names (not using some xprofile field that redundantly stores the same information), as well as any other custom fields I may add in the future. It’s seems I’m on the right track, this just is working right now.

    Thank youl

    #248870
    Slava Abakumov
    Moderator

    Separate languages – no, because all the plugins (and BuddyPress is a plugin) use the same language as the system. Because of the amount of hooks/filters in WordPress it’s nearly impossible (or very time and/or resources consuming) to create a reliable solution, that will switch language for plugins, but will not for WordPress.

    The easiest way is to have /wp-admin in one language, and front-end – in another.
    Here is the solution: https://wordpress.org/support/topic/different-languages-for-front-end-and-back-end?replies=5

    #248855

    In reply to: Error Posting Comments

    Manoj Chacko
    Participant

    Hi,

    I am running WordPress 4.3.2 and BuddyPress 2.4.3. BBpress Version 2.5.8 . Issue started happening couple of versions back. Installed in the root (using Xampp) It was working fine before wordpress/buddypress upgrade past summer.

    Issue is whenever user post a comment, it think for a second and gives out an error.
    Error, sometimes on some browser is just a error page, sometimes it s shows duplicate post error.

    But when I go back refresh the page. The comment was published. So something is happening after comment gets published and it has to redirect to the page.

    I have a bunch of plugins installed, but as rule of elimination I tried different combination. by removing and putting in plugin one by one.
    Conclusion issue is with WordPress/Buddypress/Akisment combo. with just wordpress and akismet it worked. just wordpress and buddypress it worked. With all three issue reappears, I have been troubleshooting it with Akismet first, But does not look like they are causing the issue.

    I can give access to my site to one of the moderators or developer if it helps.This issue is kind of becoming critical now.

    Thanks
    Manoj

    #248840
    sr3
    Participant

    1) I already added a new tab to the profile with bp_core_new_nav_item. But how can I define it’s content? I want to display a page, that I created with wordpress.

    2) How can I change the name of a subnav-slug?

    3) Can I move the subnavs of “settings”-tab to the “profile”-tab, so that it will all be displayed in the profile tab?

    #248814
    Hastig
    Participant

    Plugins are the best way to go if you want to save yourself from developing something from scratch.

    Here’s one of many comparison reviews between two possible options.

    Hugo Ashmore
    Participant

    @hastig While it is genuinely appreciated that you are trying to help people, some of what you are describing as template files is a little confused and will mislead people into thinking they have to use the advanced taxonomy template hierarchy which isn’t necessarily the case.

    I’d urge you check our codex pages again to best understand how overloading files works.

    The stackoverflow page would be better removed or at least edited to better reflect how the BP template hierarchy works.
    http://wordpress.stackexchange.com/questions/214774/is-there-a-list-of-what-buddypress-template-files-go-where-and-what-theyre-to-b

Viewing 25 results - 7,201 through 7,225 (of 32,685 total)
Skip to toolbar