Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'wordpress'

Viewing 25 results - 7,201 through 7,225 (of 32,678 total)
  • Author
    Search Results
  • #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

    #248807
    Hastig
    Participant

    This plugin may be of help to you..

    https://wordpress.org/plugins/buddypress-xprofile-custom-fields-type/

    This plugin add more fields type to Buddypress extension: Xprofile. The fields type added are: Birthdate.. Image.. Number within min/max values..

    #248787
    mcpeanut
    Participant

    @rlfstars So did you build the website yourself? If you did you should sort of be able to retrace some of the steps you took before Buddypress suddenly quit as you have described, can you explain what you mean a little better about Buddypress suddenly quiting? do you mean certain parts of Buddypress stopped working or didn’t work as it was before? or do you mean Buddypress somehow got deactivated? there must of been something that triggered what you are describing for it to happen in the first place, I am just finding it very strange the way you are describing Buddypress as suddenly quiting.

    First off, try to ask yourself a few of these questions below and think back:

    Did you install any new plugins after you had set Buddypress up and had it working?
    Did you by any chance have Buddypress working with your current theme and plugin configuration or was it all working correctly when it was on another theme?
    How much memory does your wordpress install have allocated to it?
    Did you do a WordPress version update recently? the newer versions of WordPress since 4.0 are known to have broke quite a few older plugins that are outdated or don’t have much support. maybe this could be causing a clash…I dunno?

    I know your site is live and you don’t want to mess things up and maybe you are worried about deactivating some of your plugins, but have you yet tried deactivating plugins one at a time and then with each deactivation tried to reactivate Buddypress?

    In future it may be better for you to also have some form of testing environment too (preferably a local install), this will allow you to test as many different plugins/theme combinations and tweak things such as combining scripts etc before doing the changes to your live website. (This will ensure everything works how it should and nothing is broken). Also please note, I would not recommend you diving into the combining of JS and CSS files etc on a live site as you can often break things and it can be trial and error to get right depending on what plugins/features you are using (this is also a different issue than what you have, I only mentioned it to give you an heads up on the shear amount that your website loads on a per page basis whilst I was looking at your source).

    Other than the above steps it really is hard to help out any more from this end without being able to check it out pal. Like shane said maybe you need to hire someone in to take a look at it all.

    #248786
    Henry Wright
    Moderator

    Just an idea: if you have no success finding a shared BuddyPress calendar, try searching for shared WordPress calendar. In BuddyPress, members are actually WordPress users so in theory things should work. You’ll need to test though, as always.

    #248785
    rlfstars
    Participant

    mcpeanut,thank you for your observations and insights. Buddypress was working fine, and then suddenly quit. i tried reactivating, but each time, it would crash the dashboard of wordpress. i had go daddy walk me through resetting it. since i couldnt get bp to work, i found peepso as a quick fix so that something was there. but i lost all the posts, groups etc.

    i’m looking for a “web dude” lol, whose coding acumen can weave together the vision i have.

    i’ll look into your suggestions based on the yslow report.

    i don’t know how to do much of this, but am willing to learn.

    thank you.

    #248783
    AlexanderCnb
    Participant

    WordPress Version: 4.4.1
    BuddyPress Version: 2.4.3.
    Site link: still building it offline

    For the website I’m working on I’ve chosen to go with WooThemes Canvas. It has turned out that some features of BuddyPress don’t work with the theme, but I do not know why. As I’m not familiar with coding, I’ll try to explain as good as possible.
    Problem: in the BuddyPress group forums the forum title and topic title aren’t displayed. The links itself are there, but the text isn’t rendered. When inspecting in Chrome I can see the link is there, but the topic title between the <a> tags isn’t there.
    What I assume is this line of code in loop-single-topic.php

    <a class="bbp-topic-permalink" href="<?php bbp_topic_permalink(); ?>"><?php bbp_topic_title(); ?></a>
    shows as:

    <a class="bbp-topic-permalink" href="http://mysite.com/community/groups/admins/forum/topic/instructions/"></a>

    When I switch to one of the default WordPress theme it shows just fine.

    I can add that another plugin (MyCred) that is supposed to show additional information in the BuddyPress profile header doesn’t perform what it’s supposed to do. Again when switching to a default theme it works.

    Is the theme just incompatible and that’s that? Or are there steps I can take to get to the bottom of the issue?

    dianamoreno82
    Participant

    Thank you! I followed the login trouble WordPress suggestions and I fixed it by changing the name of the plug in folder via FTP and the site is showing again :). Apparently Edume template is not compatible with this plug in.

    Hastig
    Participant

    Here’s a partial buddypress template files to theme folder listing here

    I don’t have activity streams activated so I can’t help you with your original problem, though I’m sure you’ve since figured it out.

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