Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 20,776 through 20,800 (of 94,541 total)
  • Author
    Search Results
  • #235606
    barodscheff
    Participant

    Hi!

    I would like to filter the members loop after clicking on a link. The filtering itself isn’t the problem because its well documented (https://codex.buddypress.org/developer/loops-reference/the-members-loop/). I just don’t know how to apply the filter and where to write the code.

    For instance my members have the xprofile fields gender and pet. On my homepage I have the following:
    <a href="#">All male members who have poodles</a>
    After clicking on this a new page should be opened which displays all male members with poodles.

    My questions:
    1. How can I tell the new page what should be filtered?
    2. How can I filter for more than one field. In the doc there’s this
    <?php if ( bp_has_members( my_custom_ids( $field_name, $field_value ) ) ) : ?>
    Can I enter more than one $field_name and $field_value (male and poodle)?
    3. Which template do I have to use for the custom members loop?

    Thanks in advance!

    rosyteddy
    Participant

    Thanks @danbp for the detail write-up.
    This problem happened with “Categories” only, and nothing else as far as I tested. Not just on localhost, but in live site too which I need to test more.

    I will follow your words.
    One thing if “Before installing BuddyPress, activate pretty permalinks to what you want, EXCEPT default. Save.” is a strict requirement, the BP installer pages should say this, force me to do this before proceeding. Our goal should be solve everything programmatically 🙂
    Still better, WP installer should by default set permalink to such protocol that does not interferes or gets disturbed by BP ( since BP is just no other plugin but an important part of WP family – infact it is one of 3 major-most flavors of WP – WP, WP Multisite, WP+BP)

    Thanks again.

    danbp
    Participant

    hi @rosyteddy,
    guess the mytery sit here: http://localhost/wordpress/userA/

    Multisite (subdomain or subdirectory) need that wordpress stays at the site root. At least for a default install.

    SSite: hxxp://my_site.com
    MS: hxxp//my_site.com

    MS subdomain: hxxp//wouah.my_site.com
    MS subdirectory: hxxp//my_site.com/wouah/

    A local install (wamp, mamp or xamp) is mostly in a ‘www’ folder at your hard disk root C://
    (recommended path) Refer to your software documentation for more details about installing Wamp/Mamp/Xamp – at least about localhost in URL. In the latest version (wamp 2.5), this is no more used. In my case, the local URL is http://my_site/wp-admin/&#8230;.

    C://www represent the private part of the site path. The equivalent of /var/your_account/htdocs/ on a production server.

    The same path scenario goes localy
    C://www/my_site (avoid confusion and don’t use WordPress as site name)
    My_site folder contains all WP directories and files:

    My_site/wp-admin
    My_site/wp-content
    My-site/wp-include
    My_site/wp-config.php and so on…

    At the end of the install, you got a htaccess file containing:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress

    The important things here are rewrite engine on and rewrite base /, where the slash means “start to manage site URL’s form this point”, which is /…/…/var/your_account/htdocs/<- from here !!!

    Before installing BuddyPress, activate pretty permalinks to what you want, EXCEPT default. Save. I do this before, because WP likes also pretty permalinks, and so i don’t forget to do it after i finished with a BP install.

    Install BP and setup (or at least control if they exist) the choosen component page(s).

    If you do this, you won’t have 404 or other issues, no matter if you use MS or subdirectories or subdomain. WP alone will work, and BP too.

    The most important advice if you want to work localy, is to setup correctly apache (mod_rewrite is not activated for ex.). And if you use it with windows, to double-check anything, including HOST file where you have to declare manually each of your local sites (since wamp 2.4 – don’t remember exactly)

    # localhost name resolution is handled within DNS itself.
    127.0.0.1       localhost
    ::1             localhost
    
    127.0.0.1       my_site
    ::1             my_site
    
    127.0.0.1       my_other_site
    ::1             my_other_site
    #235599
    Anonymous User
    Inactive

    Hi @svenl77,

    It’s the case, just tested it and the function does what it intends to do : remove the group-avatar && the delete-group manage tabs.

    I don’t manage to reproduce your issue. If i go to groups/GROUP-SLUG/adminthen i’m automatically redirected to groups/GROUP-SLUG/admin/edit-details so no 404.

    My config is :
    fresh install
    WordPress latest trunk
    BuddyPress latest trunk
    twentytwelve

    I don’t think we’ve played in this area since 2.2.1

    FYI : if i add the edit-details to the list of restricted tabs, then the group admin cannot access to any manage page without knowing the url of the allowed tabs. So i’d say the edit-details should always be there.

    #235597
    rosyteddy
    Participant

    @svenl77 Thanks for the link. Its nice.

    Does it work on Multisite? The form can deposit posts to individual blog? and not one central blog or blog 1? Any demo of that please?

    Specific settings I am asking about:
    WP 4.1.1, BP 2.2.1 – default installs
    define( ‘WP_ALLOW_MULTISITE’, true );
    define(‘MULTISITE’, true);
    define(‘SUBDOMAIN_INSTALL’, false);
    Registration Settings : Both sites and user accounts can be registered.

    If it does work with the above settings has it solved this category problem?

    Thanks.

    rosyteddy
    Participant

    WP 4.1.1, BP 2.2.1 – default installs

    define( ‘WP_ALLOW_MULTISITE’, true );
    define(‘MULTISITE’, true);
    define(‘SUBDOMAIN_INSTALL’, false);
    Registration Settings : Both sites and user accounts can be registered.
    Using default Twenty-Fifteen theme
    Using Apache server

    When an userA registers both a site and account he gets a blog, suppose
    http://localhost/wordpress/userA/
    Now his categories do not work, when http://localhost/wordpress/userA/category/uncategorized/
    or any other category is clicked it gives a “Page not found Error”

    This gets corrected if Permalink Settings is made Default [http://localhost/wordpress/?p=123]
    UserA can now click on ‘uncategorized’ and get to the uncategorized page or any category page properly.

    However now the Buddypress links like Activity, Groups, Members do no work !
    These lead to non-existent or blank pages.
    At this stage admin panel shows “BuddyPress is almost ready. You must update your permalink structure to something other than the default for it to work.”
    If “something other” is now selected BP works fine again BUT the Category links in the sidebar of the userA’s blog fail to work again. This happens for all users and fresh categories added via the admin page do not show up in the theme side-bar.

    There are several threads in wp org forum but are 2 year old or so and some I tried are not working (links here) – may be I have missed, if you know one please post.

    Any permanent solution that will survive future upgrades? What settings do I need to do? Thanks a lot for your help.

    Sven Lehnert
    Participant

    Hi @imath,

    In this topic you write that the function you provided should work with BuddyPress Version 2.2
    https://buddypress.org/support/topic/how-to-remove-tabs-from-group-admin-nav/#post-230995

    
    function turker_remove_group_admin_tab() {
    	if ( ! bp_is_group() || ! ( bp_is_current_action( 'admin' ) && bp_action_variable( 0 ) ) || is_super_admin() ) {
    		return;
    	}
    
    	// Add the admin subnav slug you want to hide in the
    	// following array
    	$hide_tabs = array(
    		'group-avatar' => 1,
    		'delete-group' => 1,
    	);
    
    	$parent_nav_slug = bp_get_current_group_slug() . '_manage';
    
    	// Remove the nav items
    	foreach ( array_keys( $hide_tabs ) as $tab ) {
    		bp_core_remove_subnav_item( $parent_nav_slug, $tab );
    	}
    
    	// You may want to be sure the user can't access
    	if ( ! empty( $hide_tabs[ bp_action_variable( 0 ) ] ) ) {
    		bp_core_add_message( 'Sorry buddy, but this part is restricted to super admins!', 'error' );
    		bp_core_redirect( bp_get_group_permalink( groups_get_current_group() ) );
    	}
    }
    add_action( 'bp_actions', 'turker_remove_group_admin_tab', 9 );
    

    There is still one issue with the manage link like named from @danbp

    The normal link is groups/GROUP-SLUG/admin/ and it will become a 404

    groups/GROUP-SLUG/admin/edit-details/ will work.

    How can I change the manage link to groups/GROUP-SLUG/admin/edit-details/

    or better do you have a working solution? Hope you can help.

    Cheers,
    Sven

    #235593
    Yassin Bey
    Participant

    Great! thank you, found the solution in https://buddypress.org/support/topic/change-the-default-activity-tab/.

    Here’s the solution by @paulhastings0 and it also works with the Buddypress Follow plugin:

    1. Make sure that you’re working on a child theme of the BP Default theme.
    2. Copy/paste the contents of bp-default/activity/index.php into your child theme’s activity/index.php folder
    3. Find the line <li class=”selected” id=”activity-all”> and delete class=”selected”
    4. Scroll down a few lines further to <li id=”activity-friends”> and insert class=”selected” just after id=”activity-friends”

    🙂

    #235592
    rosyteddy
    Participant
    #235591
    peter-hamilton
    Participant

    Brajesh makes great plugins, I use a few of his, I seem to remember that buddyblog is multisite only, and I had lots of issues making multisite function the way I intended my site to function.

    I did have a look and tried Buddyblog, but I found in my case the FEP plugin did what I needed just a bit better/easier, and without multisite.

    And I think it should be possible to get the posts to show on the plugin.php buddypress template, on my thngs to do list.

    P.H.

    #235586
    nomad48
    Participant

    I looked at this post, I do not quite understand what should I do? Do I understand correctly that the fix will be in the next release of BuddyPress? With Respect!

    #235581
    rosyteddy
    Participant

    @ubernaut

    hmmm… so I missed some info 🙁
    WP 4.1.1 Multisite, Buddypress 2.2.1, Bp-checkins.1.2.2 – plain, simple, default install, nothing else, Theme is default Twenty Fifteen

    Steps to reproduce ( you can test it in localhost in 3 seconds flat)
    Install WP 4.1.1, enable Multisite, BP 2.2.1
    Enable Bp-checkins.1.2.2 – some links in sidebar as shown in the above picture vanishes
    Disable Bp-checkins.1.2.2 – they come back
    Most funny is Mr. WordPress on Hello World! – Hello World! disappears but Mr. WordPress remains 🙂

    Thanks

    #235580
    Ben Hansen
    Participant

    good to provide more info such as other plugins WP version theme etc:

    https://buddypress.org/support/topic/when-asking-for-support-2/

    🙂

    #235579
    @mercime
    Participant
    rosyteddy
    Participant

    This is not exactly a BP problem – so remove if necessary. Just posting, to see if any user has the same problem and solved it. Thanks.

    When I activate Buddypress 2.2.1 and BPcheckins latest version by Imath, and no other plugins – Theme default Twenty Fifteen) the link texts in side-bar disappear – some remain and some disappear. Please see the picture

    Thanks for your help.

    danbp
    Participant

    @tinabeansy,

    first of, required pages for buddypress such as registration cannot use custom template as an usual WP page.

    “Create an Account” can be modified by using the language file, even if the site is in english.
    Read here

    BP comes with a pot file where you find ALL strings used by the plugin AND the file/line where they are used. Very handy for searching “create an account”. 😉

    For now:
    bp-core/bp-core-filters.php:487 bp-members/bp-members-screens.php:517

    Also found scratchhouse.co Is this your site ? BP seems to not be installed.
    Have you setup the pretty permalinks ? Could explain why you have trouble with some pages.

    And don’t forget: codex is your friend. 😉

    #235574
    danbp
    Participant

    hi @tennaki,

    did you searched a little before asking ? 😉
    This subject was handled many times in the past.
    https://buddypress.org/support/search/notifications+counter/

    #235573
    danbp
    Participant

    Sorry, i can’t help you for best practice in that domain.
    They’re many things BP related on GitHub.
    https://github.com/boonebgorges/wp-cli-buddypress

    Or contact one of the dev on their blog:
    https://bpdevel.wordpress.com/

    Tennaki
    Participant

    I’m curious if there’s any way I could have the notification number that is on the admin bar moved to a page link on the menu bar on my website.

    I’m trying to get my BuddyPress-enabled website to a point where our registered users do not need to see the admin bar, but having the notifications counter is something I’d like to keep.

    #235569
    danbp
    Participant
    arandomgirl
    Participant

    I’m creating a community of bloggers.

    I would like for the bloggers to add their most recent blog posts (or a few of them) to their profiles in buddypress. I don’t care if it’s an extra tab that says ‘blog posts’ or just on the first page of their profiles. I would really like if the post had a thumbnail along with the title and possibly and excerpt but I’m not too picky. I would assume this would either be a list or pinterest style. I’m not sure what the best way to do this is. Maybe there is a plugin that I’m not aware of?

    Any help would be greatly appreciated.

    #235562
    jreeve
    Participant

    Hi @danbp,

    I’m familiar with how BuddyPress tests work in general, and so I’ve read https://codex.buddypress.org/developer/automated-testing/ and https://codex.buddypress.org/developer/automated-testing/writing-automated-tests-for-buddypress-dependent-plugins/, but what I’m asking is, what’s the best-practices way of writing an automated setup for automated tests, in the style of install-wp-tests.sh, so that tests will run on any machine, and not just my own development box (i.e. Travis, etc.)? If you look at that file, you’ll see that it installs WordPress in /tmp so that it can test against it, using the function install_wp(). I figure I also need a function install_bp() that would do something similar with BuddyPress. Simple enough. But I was wondering whether someone already has a setup like this in their install-wp-tests.sh, so that a) I didn’t have to go about the process of writing my own, and b) I can take advantage of whatever optimizations experienced BP developers may have made in this process, which I might be unaware of. Do you know of a setup like that? For instance, what do you use to set up your Travis box so that it can automatically run tests for your plugins?

    tinabeansy
    Participant

    I need some help. I’m trying to customize the template around the registration page. Here’s what I’ve done:

    – copied over the template inside /plugins/buddypress/bp-templates/bp-legacy/buddypress/members/register.php to my child template folder
    – opened register.php
    – searched for the words “Create an Account”
    – didn’t find it in the file. Try another tactic…
    – went into Buddypress settings in the WordPress admin page
    – under the Pages tab, changed the page for Register to a page I created that uses a custom template
    – changed the title of this page to “Sign Up”
    – refresh – nothing is different (custom template also not being used)

    What am I doing wrong? How do I change the title of the “Create an Account” page?

    Here are some screenshots to illustrate what I mean:
    https://dl.dropboxusercontent.com/u/1448411/Screen_Shot_2015-03-06_at_2_01_50_PM.png
    https://dl.dropboxusercontent.com/u/1448411/Screen_Shot_2015-03-06_at_2_03_33_PM.png
    https://dl.dropboxusercontent.com/u/1448411/Screen_Shot_2015-03-06_at_2_03_47_PM.png

    #235560
    tse11
    Participant

    I know that this plugin is very old and hasn’t been maintained but it still works in Buddypress 2.2/

    https://wordpress.org/plugins/buddypress-activity-stream-bump-to-top/

    The dilemma I am having is that I’d like to change the date and time formatting on the activity streams, and I can do this, however, when Bump to Top is activated, it only shows the updated date; making it look like the post was just made- when really only a comment was made.

    For example:
    User 1 posted an update March 1 2015 12:30pm, User 2 commented March 5 2015 at 6am, the activity meta shows: User 1 posted an update March 5 2015 at 6am which obviously is user 2’s activity comment date.

    How to rectify this?

    #235559
    rosyteddy
    Participant

    These may help

    wordpress.org/plugins/export-user-data/
    wordpress.org/plugins/wp-users-exporter/
    buddypress dot org/support/topic/exporting-xprofile-fields-to-csv-etc/

    [ My previous reply here had many more links, and it just vanished on hitting submit without any alert message, probably was caught as spam]

    Thanks

Viewing 25 results - 20,776 through 20,800 (of 94,541 total)
Skip to toolbar