Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'wordpress'

Viewing 25 results - 5,626 through 5,650 (of 32,690 total)
  • Author
    Search Results
  • lesanis
    Participant

    Hello,

    How could I make a custom Members Directory in a new template with members that have chosen a specific value of an xprofile field?

    Here is what I have done. I have created a new template members-loop-london.php (copy of members-loop.php) in the members folder and I would like to display there only members that have chosen at the xprofile field City the value London. Then according to this link about “bp_parse_args()” https://buddypress.trac.wordpress.org/browser/tags/2.2.1/src/bp-members/bp-members-template.php#L461 I added in the template the function:

    function mine_bp_has_members( $args = '' ) {
    	        global $members_template;
    	
            // Default user ID
            $user_id = 0;
    	
    	       
    	        $r = bp_parse_args( $args, array(
    	                
    	                'search_terms'    => 'London',     // Pass search_terms to filter users by their profile data
    	
    	        ), 'has_members' );
    
    	        // Pass a filter if ?s= is set.
    	        if ( is_null( $r['search_terms'] ) ) {
    	                if ( !empty( $_REQUEST['s'] ) ) {
    	                        $r['search_terms'] = $_REQUEST['s'];
    	                } else {
    	                        $r['search_terms'] = false;
    	                }
    	        }
    	
    	     
    	        // Query for members and populate $members_template global
    	        $members_template = new BP_Core_Members_Template(
    	               
    	                $r['search_terms'],
    	               
    	        );
    	
    	   
    	        return apply_filters( 'mine_bp_has_members', $members_template->has_members(), $members_template );     
    }

    but nothing changed. Still my custom directory was showing all the members of website..What am I doing wrong?

    #259734
    danbp
    Participant

    You posted another question on Buddypress Profile Search support, where it appears that you try to remove the member search form.

    In regard of the BuddyPress support forum, you use at least two third party plugins aside BP and perhaps proceeded to template customization !

    You have to isolate the culprit: one of your plugins or your theme customization. BuddyPress is not concerned. Sorry.

    #259711
    danbp
    Participant

    @djpaul ‘s advice is wise !
    But you could try following which doesn’t compromise your security and will avoid the sky falling on your head !

    First remove the filter hack, we don’t need it.

    Then built your drop-down list and add only the site name instead the whole URL.

    For example,
    – create a new field
    – call it Test drop down
    – enforce visibility
    – disallow clickable
    – add some options: buddypress.org, wordpress.org
    – save
    Go to your profile > edit and choose buddypress.org. Save.
    You see now buddypress.org on your profile

    Now we have to make this text clickable and linked to bp.org

    For this, you can use this snippet, placed in bp-custom.php

    
    function bpfr_set_checkbox_output( $field_value ) {
    
    // ensure xprofile is activated
    if ( bp_is_active( 'xprofile' ) )
    
    // call the field
    $bp_this_field_name = bp_get_the_profile_field_name();
    
    	// field name (case sensitive)
    	if( $bp_this_field_name == 'Test drop down' ) {	
    	// here we change site name to url
    		$field_value = str_replace('buddypress.org' ,'http://buddypress.org', $field_value);	
                    $field_value = str_replace('wordpress.org' ,'http://wordpress.org', $field_value);			
    	}
    
    	// fire the result!
    	return $field_value;
    }
    add_filter( 'bp_get_the_profile_field_value', 'bpfr_set_checkbox_output' );
    #259697
    danbp
    Participant

    Hi,

    that’s a wordpress question (related to wp_nav_menu_items).

    See WP Codex for answers:

    wp_nav_menu_items

    wp_get_nav_menu_items()

    wp_nav_menu_objects

    Many similar related topics also on BuddyPress forum. Ie. :
    https://buddypress.org/support/topic/how-to-get-notification-count-code/

    #259687

    In reply to: Online Status

    danbp
    Participant

    Hi,

    check the code you used for “16 minutes ago”. You will find it in the buddypress-de_DE.po file. Normally, you should have %s ago -> vor %s. If you omit % or s, the string won’t be translated.

    If it’s not a typo error of yours:
    – where is this untranslated “ago” string showing ? Site activity, profile, widget, other ?

    – do you use a specific “buddypress” theme ?

    – does the issue remain when using the “official” translation file ? If not, download it here (po & mo). Don’t forget to remove your version before adding the original one into wp-content/languages/plugins/

    #259685

    In reply to: Online Status

    Venutius
    Moderator

    How about setting the theme to 2015? IF that fails then there must be something up with your basic WordPress install.

    #259669
    danbp
    Participant

    @r083r7,
    glad you got it to work ! 😉
    Not sure if it is a theory or simply how it works, but deactivating/reactivating (plugins, themes) will in most case recalculate the permalinks.

    #259656
    giuseppecuttone
    Participant

    I will be your savior,
    for same rasons, wordpress decided not show admin bar like default in mobile.
    It is so,maybe, because when user log in in mobile device, a lot of menu will be showed… really I dont know why…
    But if you dont have this problem, and want show admin bar for log in an log out users, you must add in CSS the following codec:

    @media screen and (max-width:782px) {
        #wpadminbar {
            display:block;
        }
        html {
            position:absolute;
            top:-46px;
        }
    }

    The codec where say html position absolute is for delete noise black bar located in the up side zone.
    If you want, you can also show the notification icon (I think it is named budlle notification) into the admin mar, adding the following codec in CSS zone:

    /* Show only default top level items */
    	#wp-toolbar > ul > li {
        		display: block;
    	}

    I have gone mad to find the solution, but now we have it.
    If you dont want show menu in admin bar to the suscriptors, colaborator and authors, you can use the AG CUSTOM ADMIN plugin. It hide them and help you in a clean design. (you can also hide wordpress logo, and so much things…)

    Now, I have only a litlle / big problem:
    the drop down menu, when I click in the “notification icon” in the admin bar, is not showed correctly… It is showed from the “notification icon” to the right zone, so in mobiles user can red the title of the notification.
    The solution is show the dropdown menu from the “notification icon” to the left zone. So, also in mobiles users can red the title of the notification.
    Can you help me for to make that?
    I have helped you, now I hope someone can help me 😉
    Thank for your support and have funny

    403laura
    Participant

    I have wordpress version 4.6.1. I have buddypress version 2.2.2 (child theme in use). I also have bbpress 2.5.10. My website is http://getjobhelp.ca

    I am having issues with the activity stream…I am unable to see any activity posted by other people in my forum, regardless of what dropdown menu I use. I am able to only see my own activity. I hope the following example is specific enough, asI don’t really know how else to describe this.

    ***Example 1: when I am logged in as the “adminsitrator/keyholder”, I am able to see what I have posted in the activity stream but I cannot see anyone elses posts, no matter what dropdown menu I use i.e.; everything, updates, friendship, group updates, group memberships, posts, comments topics, replies, new docs, doc edits, doc comments.***

    ***Example 2: when I am logged in as a “User” I can see my own activity but I cannot see what anyone else has posted, regardless of which dropdown menu I use. (Same as above example but as a user) So in other words, the posts I made as the “administrator/keyholder” do not show up on my activity stream as a “user.”***

    After reading through this help section to get help with seeing the activity feed, someone suggested to deactivate the “buddyboss wall” plugin…I did that and was finally able to see my own activity stream but still having the above issues.

    I then installed the buddypress activity plus” plugin so users could interact through comments, videos and links…which appears and seems to work just fine. But When you cant see what anyone other than yourself posts in the forum, what use does it really serve? I would like for the members to be able to interact with each other but they wont know if someone else posted in the forum if the activity stream doesn’t work. (When I say forum, I do mean the whole site…not an individual forum)

    Lastly, I really do not know anything about code or where to put it or how to find where to insert it into the css or php or whatever, as I am not a developer, I am just a networking forum owner looking for some help please. 🙂 Thank you.

    #259619
    randricks
    Participant

    Hello,

    This is my first time using BuddyPress and I’m pretty new to WordPress and don’t know how to assign my “Register” and “Activate” page to a blank page correctly. I’ve looked at my “Members” and “Groups” pages and they both seem to be blank when editing but when I go to the page url they have dynamically loaded content. I’m not sure where this content is being generated from and how to get “Register” and “Activate” to do the same. Any help would be much appreciated!

    Thanks!

    #259612
    Slava Abakumov
    Moderator

    Try WordPress SEO plugin AND this hack:
    https://github.com/Yoast/wordpress-seo/issues/1971#issuecomment-227008322

    That will fix titles. There is no solution for meta descriptions, unfortunately.

    Slava Abakumov
    Moderator

    AFAIK, installing BuddyPress on a subdomain of WordPress MultiSite won’t give you BP widgets (and other content) on a main site, thus you won’t be able easily (without coding) display BuddyPress content on any site in the network, excerpt the BP-site.
    So BuddyPress content will be available only on site where you activated BuddyPress.

    I hope I’ve answered your question.

    #259606
    Slava Abakumov
    Moderator

    So bp.example.com is the subdomain, that you use for BuddyPress. Does it have separate WordPress installation (not related to example.com)?
    Is WordPress on your example.com MultiSite or ordinary?

    #259602

    In reply to: Activity BuddyPress

    Slava Abakumov
    Moderator

    That’s quite a lot of custom code.
    All that activities are not related to BuddyPress directly. Although you can store them in activity directory when that action was performed using bp_activity_add() function.

    But as everything you described is not a default WordPress and BuddyPress functionality – I strongly advice you to find some developers, that will implement all that.

    #259601
    danbp
    Participant

    Hi @kida18,

    i would suggest to use this premium plugin:

    WordPress Restrict Email Domains


    For < 20$, i think it’s worth ! 🙂

    #259596
    darklord236
    Participant

    I’m currently using wordpress version 4.6.1, and buddypress version 2.6.2. I am using the Gmail SMTP plugin. I have configured it correctly, and I can send test emails already. My problem is, Buddypress still won’t send activation emails. My question is, what is causing this problem, and how do I fix it?

    #259590

    In reply to: Groups on Buddy press

    jillparks
    Participant

    Very helpful. Yes, I use Yammer now, and I can have my post (not a blog post, more like a FB post) email everyone in the group.

    Sounds like https://wordpress.org/plugins/groups-members-mail/ will work. Thank you!

    #259589

    In reply to: Groups on Buddy press

    danbp
    Participant

    Hi,

    if you mean mailing blog posts to members and if you use BuddyPress only for it’s group component, you have better to use WP Groups plugin. You don’t need BP.

    if you mean group notices, you can code something yourself or use this plugin or this one and send the post permalink to the group users.

    Not exactly what you asked for, but i have no better idea.

    For the phone question, i’ve never heard about such an app.

    #259583
    danbp
    Participant

    hi @sherissa_r,
    i asked on Slack where @hnla answered that “clearly something is wrong”. I opened a ticket, just in case of.

    Now we’ve to wait a little moment the time a dev can investigate this.

    mdarcangelo66
    Participant

    Hi, I need to know if there is a code or anything to advise the user after that he submit the registration ( so past the complete registration step ) that an email with a confirmation link has been sent in order to activate the account ect. because at this stage once the registration has complete it is usually redirect to the main page without further notice, as a confirmation email can go into the spam ect. so a text to remind of what to do or to check would be beneficial and so common really…

    Thanks

    Wordpress 4.5.4 | Buddypress 2.6.2

    #259554
    danbp
    Participant

    Hi,

    you’re on the BuddyPress support forum where we can’t help for third party plugins.
    If you have questions related to bbPress (if you use this plugin), you have to ask on their support.

    For BuddyPress for Sensei plugin or WC Sensei, you can check the doc and/or ask on the plugin support too.

    danbp
    Participant

    Hi,

    by reading the first topic, it sounds like you try to use more than one child theme !

    I already have activated my other child theme

    If it is the case, it’s not the way to proceed. 😉

    1) You should have only one child-theme activated.
    2) in this child, you add a folder called buddypress.
    3) if you need to modify some BP templates, you copy the original from wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/ into the child BP folder.

    Example of what you should have:
    wp-content/themes/XYZ theme
    wp-content/themes/XYZ-child/

    Let’s say you want to modify BP’s register page.
    wp-content/themes/XYZ-child/buddypress/members/register.php
    or you want to modify the profile header template
    wp-content/themes/XYZ-child/buddypress/members/single/member-header.php

    And that’s it ! The only thing you have to do is to pick the right file and add it to the child by respecting the original path who starts at: /buddypress/path/to/file.php

    Inside the template file, yo can manipulate html tags and find different action hooks ( do_action( 'something' ); ). Take care to not rename or remove the existing class/ID names whithout knowing what you do.

    In bp-custom.php, you can manipulate BP’s behave by adding custom functions.

    In the child-theme style.css, you manipulate whatever related to your theme layout – for the entire site, including BP or other plugins.

    And as all this is done via the child, anything will remain after any update of BuddyPress, your original theme, WordPress or plugins.

    Reading actively the forum will bring you other answers, tips and tricks.

    #259547
    danbp
    Participant

    Hey, do you mean this ?

    #259545
    ankesh95
    Participant

    The “change profile picture” option not working for my website suddenly (maybe after upgrading wordpress and buddypress to the latest version).
    Whenever an user tries to change his profile picture…..the green msg saying upload successful does pop up but the avatar does not change……and the previously uploaded avatars are not deleted either….I have tried out every possible thing i could from the backend…..but in vain…..

Viewing 25 results - 5,626 through 5,650 (of 32,690 total)
Skip to toolbar