Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'theme'

Viewing 25 results - 5,801 through 5,825 (of 31,072 total)
  • Author
    Search Results
  • #240900
    danbp
    Participant

    Hi,

    not clear what is your issue.

    First screenshot is related to Core bp-xprofile folder. No interest for this case, we have already BP installed.

    Please read Getting Started guide and ensure anything is correctly setup first.
    Use one of WP built-in theme while installing/testing BP.

    As of 2.2.3, BP use a new feature for users profile phot, so you can’t find much related informations about this feature on Google or elsewhere…

    Also, note that users can modify their photo on front-end from their profile page, whithout accessing WP’s dashboard.

    Getting Started

    #240894
    Doctor Psyringe
    Participant

    Would “Theme My Login” work with BuddyPress if only enabled for the Root Site and BP’s Primary was a SubSite?

    Here’s a link to that; https://wordpress.org/plugins/theme-my-login/

    Just spit-balling. More to come, I imagine, until the Ticket is Resolved.

    #240890

    In reply to: Buddypress Messaging

    shanebp
    Moderator

    Since the issue is in your theme, your best bet is to ask the theme author.

    #240881

    In reply to: Buddypress Messaging

    jourdesign
    Participant

    So I am using WordPress 4.2.2 running Cinematix theme and I am using Buddypress Version 2.3.2.1. As you suggested I changed the theme and it worked perfectly any ideas on how to fix it ?

    #240870
    danbp
    Participant

    Hi @thesmartone,

    I even changed wp_config.php, variable WPLANG
    This is no more necessary since WP 4.0

    If your WP is in portugese, BP should be in same language automatically (except if you deactivated this feature)

    BP translation can be found on GlotPress. pt_BR is translated to 96% (see here)
    The po/mo files goes to wp-content/languages/plugins/buddypress-pt_BR.mo

    Your comment is awaiting moderation, is a default WP string. In many cases, it can also be in theme. To ensure this, activate 2013 or 2015 and test all translations for WP and BP.
    Deactivate all other plugins while doing this.

    And before claiming about buggypress, check for PBCK. Or better, read the doc before installing something. 😉

    r-a-y
    Keymaster

    This should work:

    function my_remove_secondary_avatars( $bp_legacy ) {
        remove_filter( 'bp_get_activity_action_pre_meta', array( $bp_legacy, 'secondary_avatars' ), 10, 2 );
    }
    add_action( 'bp_theme_compat_actions', 'my_remove_secondary_avatars' );

    Untested, but let me know if it works!

    shanebp
    Moderator

    You’re talking about the value of $this in the filter call in class BP_Legacy extends BP_Theme_Compat ?
    add_filter( 'bp_get_activity_action_pre_meta', array( $this, 'secondary_avatars' ), 10, 2 );

    Good question.
    And I’d be interested in the answer.

    There must be a simple way to disable secondary avatars…
    You might want to ask about this on Slack.

    Meanwhile, this works, not very efficient ‘tho.
    Hook is in bp-activity\bp-activity-template.php

    function remove_secondary_avatar( $item_id ){
    	
    	$item_id = '';
    	
    	return $item_id;
    }
    add_filter( 'bp_get_activity_secondary_avatar_item_id', 'remove_secondary_avatar' );

    And this works, but I don’t know why :<

    function remove_activity_secondary_avatars( $action, $activity ) {
        
        if ( $activity->component = NULL ) {
    	// don't do anything
        }
    
        return $action;
    }
    add_filter( 'bp_get_activity_action_pre_meta', 'remove_activity_secondary_avatars', 10, 2 );
    #240861

    In reply to: Buddypress Messaging

    shanebp
    Moderator

    Please use the code tag. Edited to remove full path.

    What versions of WP and BP are you using?

    Have you tried switching to a theme like WP 2013 to confirm that the issue is not in your theme?

    #240854
    BurkeKnight
    Participant

    I’m working on another site, and did as did on the first site. However, different theme (child).

    Added: wp-content/themes/flat-child/buddypress/members

    Now, whatever I do to register.php should show, but does not.
    Could this be due to having to set the child theme up this way:

    Enqueue both parent and child stylesheets
    Select this option if stylesheet link tags are hard-coded into the header template (common in older themes). This enables the child stylesheet to override the parent stylesheet without using @import.

    shanebp
    Moderator

    afaik, The ‘Upload Image’ is not part of BuddyPress.
    So it is in your theme or some other plugin.

    #240837

    In reply to: Activity Stream

    The Majestic One
    Participant

    Hi,

    The theme is okay, it was working fine until the last update after 2.2

    I am using Sweetdate from 7th Queen.

    Thanks again

    #240836
    shanebp
    Moderator

    Please don’t double post. Your other thread has been deleted.

    Unless you are specifically using the bp-default theme, you should create a template overload of this file:
    buddypress\bp-templates\bp-legacy\buddypress\members\activate.php
    And make your changes there.

    #240833
    shanebp
    Moderator

    So instead of a listing of all the groups, you want a dropdown?

    Create a template overload of this file:
    buddypress\bp-templates\bp-legacy\buddypress\groups\groups-loop.php
    And replace the listing layout with a dropdown.

    #240828

    In reply to: SEO issues

    Henry Wright
    Moderator

    The W3C validator is saying you can’t have an empty form action attribute. So instead of:

    <form action=""

    you will need to provide a value like this:

    <form action="some-script.php"

    You could open a ticket on Trac or alternatively you could solve the problem by providing a value yourself. Check out the BuddyPress Template Hierarchy article for details on how to override templates.

    #240825
    ct25
    Participant

    Today I found there was a member-loop.php added to my theme files. Could this be part of the problem? Should I add the member template file to the theme as well?

    <?php
    
    /**
     * BuddyPress - Members Loop
     *
     * Querystring is set via AJAX in _inc/ajax.php - bp_dtheme_object_filter()
     *
     * @package BuddyPress
     * @subpackage bp-default
     */
    
    ?>
    
    <?php do_action( 'bp_before_members_loop' ); ?>
    
    <?php if ( bp_has_members( bp_ajax_querystring( 'members' ) ) ) : ?>
    
    	<div id="pag-top" class="pagination">
    
    		<div class="pag-count" id="member-dir-count-top">
    
    			<?php bp_members_pagination_count(); ?>
    
    		</div>
    
    		<div class="pagination-links" id="member-dir-pag-top">
    
    			<?php bp_members_pagination_links(); ?>
    
    		</div>
    
    	</div>
    
    	<?php do_action( 'bp_before_directory_members_list' ); ?>
    
    	<ul id="members-list" class="item-list" role="main">
    
    	<?php while ( bp_members() ) : bp_the_member(); ?>
    
    		<li>
    			<div class="item-avatar">
    				<a href="<?php bp_member_permalink(); ?>"><?php bp_member_avatar(); ?></a>
    			</div>
    
    			<div class="item">
    				<div class="item-title">
    					<a href="<?php bp_member_permalink(); ?>"><?php bp_member_name(); ?></a>
    
    					<?php if ( bp_get_member_latest_update() ) : ?>
    
    						<span class="update"> <?php bp_member_latest_update(); ?></span>
    
    					<?php endif; ?>
    
    				</div>
    
    				<div class="item-meta"><span class="activity"><?php bp_member_last_active(); ?></span></div>
    
    				<?php do_action( 'bp_directory_members_item' ); ?>
    
    				<?php
    				 /***
    				  * If you want to show specific profile fields here you can,
    				  * but it'll add an extra query for each member in the loop
    				  * (only one regardless of the number of fields you show):
    				  *
    				  * bp_member_profile_data( 'field=the field name' );
    				  */
    				?>
    			</div>
    
    			<div class="action">
    
    				<?php do_action( 'bp_directory_members_actions' ); ?>
    
    			</div>
    
    			<div class="clear"></div>
    		</li>
    
    	<?php endwhile; ?>
    
    	</ul>
    
    	<?php do_action( 'bp_after_directory_members_list' ); ?>
    
    	<?php bp_member_hidden_fields(); ?>
    
    	<div id="pag-bottom" class="pagination">
    
    		<div class="pag-count" id="member-dir-count-bottom">
    
    			<?php bp_members_pagination_count(); ?>
    
    		</div>
    
    		<div class="pagination-links" id="member-dir-pag-bottom">
    
    			<?php bp_members_pagination_links(); ?>
    
    		</div>
    
    	</div>
    
    <?php else: ?>
    
    	<div id="message" class="info">
    		<p><?php _e( "Sorry, no members were found.", 'buddypress' ); ?></p>
    	</div>
    
    <?php endif; ?>
    
    <?php do_action( 'bp_after_members_loop' ); ?>
    
    #240812
    danbp
    Participant

    Base field name can be modified (from Name to Whatever), you’re right there are no visibility settings for this (required) group.

    If you made some custom work, (in bp-custom or theme’s functions.php) it’s important to revert back to original code first.

    You use Profildetails as group title. Is this the modified Base name ?
    On Boss live demo, Name is appearing.

    Have you tested with another theme like 2015 ?

    #240809
    Antipole
    Participant

    PS and I have switched to theme 2013.

    #240806
    shanebp
    Moderator

    Template overloads go in the theme dir, not the plugins dir.
    Remove your changes to BP plugin and re-read the codex article.

    #240801
    shanebp
    Moderator

    Create a template overload of this file:
    buddypress\bp-templates\bp-legacy\buddypress\members\register.php
    and adjust the layout.

    #240789

    In reply to: Activity Stream

    shanebp
    Moderator

    Looks like a problem in your theme.
    Try switching to a theme such as WP 2015 to confirm.

    #240768
    pihla
    Participant

    Yes, this is exactly the case, it does not create the second group, because the id is 0 so the auto-increment is not working (and the first one created a row in the database, but does not show in the front end)

    Yes, there is nothing wrong with the id 0 with the forum, I was just wondering why does it give duplicate entry warning with this:
    WordPress database error: [Duplicate entry ‘0’ for key ‘PRIMARY’]
    INSERT INTO wp_bp_groups ( creator_id, name, slug, description, status, enable_forum, date_created ) VALUES ( 22, ‘Vanhat talot’, ‘vanhat-talot’, ‘Vanhat talot’, ‘public’, 0, ‘2015-06-16 08:25:16′ )

    and the only 0 in this insert is the enable_forum which should not be primary, but well this might just refer to the group_id field that is not auto incremented.

    I even updated the themes Buddy Press and bbPress files (Kleo-theme) and updated again Buddy Press, even though it was in version 2.3.1, did not help…


    @shanebp
    where did you find the information about the non-BP reports where WP 4.2.2 $wpdb->insert_id returns 0? I could try to find the info from there.

    #240755
    oliver_rub
    Participant

    @danbp
    Thanks for your suggestion Dan.
    I already tried that. There are two problems with that snippent. The first being that the is_bbpress() is returning false when i access bbpress forums in a buddypress group (theme: firmasite). Thats easy to solve through eliminating that check.
    The second problem is that currently the @mentions system isn’t working for the visual tab in tinyMCE, it works only for the text tab. Also discussed briefly between Paul Gibbs and Unsal Korkmaz here: https://buddypress.org/support/topic/buddypress-2-1-patsy/ (see comments)

    One of the requirements for our platform is that users can use those fancy buttons in the visual tab, but having the mentions autocomplete only in the text tab is a little bit ..you know…unexpected for users 😉
    Thus i hoped i can somehow manage to reproduce the approach of OakCreative, but I havent been successful.
    Maybe also updating the at.js is a way to go, but the jump from the used version (0.5.2) to the current (1.3.0) seems to be to big to work just with replacing the script.
    So this is my current knowledge about this topic. Does anyone know how to proceed? Or should i create a ticket for this, so that the devs can have a look into this in future releases? I havent found any ticket dealing with exactly this.

    #240747
    VentureCore
    Participant

    OK, so here’s the solution…

    <?php /* Querystring is set via AJAX in _inc/ajax.php - bp_dtheme_object_filter() */ ?>
    <?php do_action( 'bp_before_members_loop' ) ?>
    
    <?php
    if ( bp_ajax_querystring( 'members' ) ==""){
    $queryString = "type=alphabetical&action=alphabetical&page=1";}
    else {$queryString = bp_ajax_querystring( 'members' );}
    ?>
    
    <?php if ( bp_has_members( $queryString) ) : ?>

    Depending on how/if your theme developer has written their members-loop.php you will want to replace these two entries…

    <?php do_action( 'bp_before_members_loop' ); ?>
    
    <?php if ( bp_has_members( bp_ajax_querystring( 'members' ) ) ) : ?>

    This not only gives you the ability to have buddypress default to listing names Alphabetically, it also maintains your ability to sort ‘Last Active’ and ‘Newest Registered’. This should be the default way to display the members directory. IMOP

    Now, if you want to then change the alphabetical listing default to return names by the lastname of your members you would add the following code to your theme’s function.php file. Preferably to the child theme’s function.php file.

    /** Sort alphabetical name listings by lastname */
    function alphabetize_by_last_name( $bp_user_query ) {
        if ( 'alphabetical' == $bp_user_query->query_vars['type'] )
            $bp_user_query->uid_clauses['orderby'] = "ORDER BY substring_index(u.display_name, ' ', -1)";
    }
    add_action ( 'bp_pre_user_query', 'alphabetize_by_last_name' );

    Good luck!

    #240732
    David Cavins
    Keymaster

    Hi Pihla-

    I can’t reproduce the problem you’re having. Can you add a tracer to your theme’s functions file or to bp-custom.php then try to create a group?

    https://gist.github.com/dcavins/a9197f21d7f31b6594bc

    I added this to my theme’s functions.php and the file that it created (groups_group_after_save_args.txt) ended up at the root of my site. It looked like this:

    
    newly created group args: BP_Groups_Group Object
    (
        [id] => 8
        [creator_id] => 4
        [name] => Number 5
        [slug] => number-5
        [description] => Will this be recorded?
        [status] => public
        [enable_forum] => 0
        [date_created] => 2015-06-15 14:59:00
        [admins] => 
        [mods] => 
        [total_member_count] => 
        [is_member] => 
        [is_invited] => 
        [is_pending] => 
        [last_activity] => 
        [user_has_access] => 
        [args] => Array
            (
                [populate_extras] => 
            )
    
    )
    

    Please let me know if you can do this test and what the results are.

    #240709
    Dr.Raven0
    Participant

    @danbp
    Yes everything is setup the right way as it was for months before the update, every thing was working before the update.

    It’s not the theme, it does the same thing with the default theme and ever theme I’ve tried.

    ByteHost uses a Linux OS and yes it’s the latest PHP.

    There is only one group function, why don’t you sign up to my site and see for your self. And I’m only going to write this one last time beore I lose my temper. I’ve given you all the details of the problem, I’ve already gone thru the damn process of deactivating the all the plugins and it still does the same thing. It was working fine for months before the update. What more do you want from me. I’ve already wrote that it in the post that it work fine before the update, that alone should have told you that it’s not a fresh install of either.


    @shanebp

    No I can’t create groups on the backend, it does the same thing.

Viewing 25 results - 5,801 through 5,825 (of 31,072 total)
Skip to toolbar