Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 20,176 through 20,200 (of 68,967 total)
  • Author
    Search Results
  • #167155

    In reply to: Create Group

    mgrmn
    Participant

    Not sure which file, however you should look in these directories look for div id subnav, it should be somewhere is my best guess for manual adding what you want.

    /bp-templates/bp-legacy/buddypress/groups || /bp-themes/bp-default/groups

    If you have it installed locally, I suggest you give that a try before editing online files.

    If you are using linux you can use a command like below to see which files have the subnavigation menu.

    sudo grep -lir “subnav” /var/www/wp-content/buddypress/
    or
    sudo grep -ir “subnav” /var/www/wp-content/buddypress/ (this will show you relevant code.

    If Windows, I suggest you use something simple like EditPlus open up all files, and use search function (If I remember correctly, check search all open files or something like that

    #167153

    In reply to: Creating New Plugins

    bp-help
    Participant

    @hnla @mercime @modemlooper
    I agree there needs sorting out and consistency in how to check for BP etc.
    I just got an email from Mika E one of the plugin reviewers and she says

    But … why?

    BuddyPress has loader actions you can hook into: https://plugins.trac.wordpress.org/browser/buddypress/trunk/bp-core/bp-core-actions.php#L34

    (I’m sitting next to JJJ right now and he pointed this out). So you don’t have to call loader.php, which is slower in the long run, and instead you hook into BP at the appropriate point.

    The whole thing it looks like you’re doing is adding this action:

    add_action( ‘admin_notices’, ‘private_community_for_bp_lite_install_buddypress_notice’ );

    And you want to only add that notice IF BuddyPress is loaded, right? So why not the smaller check? If you do that, you won’t have to call bp-loader, because you’re hooking in after it’s loaded.

    Why would I want my install buddypress notice to display if they have buddypress installed and the requirement for BP is met? That makes no sense. Right now it is setup to display only if someone using wordpress does not have BP installed and activated which is what it does and should do correct?
    I don’t get it! Any of you guys have advice?
    Thanks again!

    mik.e245
    Participant

    @mercime: Hmm, okay, I’ll post there. Thanks for the help!

    #167151
    @mercime
    Participant

    @nanaimomen The problem is more like the theme is using a proprietary templating system. BuddyPress works in nearly all WordPress themes. Regular WP tags like the_title() and the_content() should be in the theme’s page.php file for the BP Theme Compatibility magic to work, i.e., you no longer need to revise 16 template files manually like before.

    To resolve your issue, open up your theme’s page.php file and Save As > buddypress.php and ask the theme author to replace theme’s corresponding tags with the_title() and the_content(). Upload that updated buddypress.php file into your theme’s folder in server and you should be good to go.

    #167146
    @mercime
    Participant

    @forallatlantis Have you gone through basic troubleshooting like changing to Twenty Twelve theme and/or deactivating plugins batch by batch except BuddyPress to check what’s causing the issue?

    #167143

    In reply to: Create Group

    mgrmn
    Participant

    @dran2013 What you can do is this.

    FILES:
    /wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/members/single/member-header.php
    /wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/groups/single/group-header.php

    Add below <span class=”activity”><?php bp_last_activity( bp_displayed_user_id() ); ?></span>
    something like Create Group

    Enjoy

    @mercime
    Participant

    all content and users are mirrored/shared across the networks/sites


    @mike245
    Strange. Only users not the content should be shared across the network for that plugin as far as I know. Have only used the other BP Multinetwork plugin, so don’t quite know why that’s happening in your installation. Recommend that you post at plugin’s support forums https://wordpress.org/support/plugin/bp-multi-network

    #167140
    crashy11
    Participant

    Hey, can you please tell where I should place that code you posted?

    I am trying to exclude one username from activity stream since with that account I will make posts that are based on different membership levels. Or as I wrote on beginning just exclude all blog posts from activity stream.

    I tried to do it with custom post types, it doesn’t show up in activity stream, which is good, but posts are not showing in category they supposed to show. I read that it is also necessary to post some code somewhere for custom post type.

    mik.e245
    Participant

    @mercime Sorry, I forgot to mention that I’m already using BP Multi Network and Networks for WordPress! Unfortunately, they’re doing the wrong thing: while each network/site now has Buddypress working, all content and users are mirrored/shared across the networks/sites. Instead I need to have Buddypress working on all networks/sites, with *separate* content but *shared* users. Is there any way to do this?

    Thank you!
    Bill

    #167133

    In reply to: Create Group

    dran2013
    Participant

    I was wondering this too. The “create group” tab shows up if I directly go to my link: http://durhamregionactionnetwork.com/groups/ (same with Forums with bbpress) but how do users find the link when it isn’t appearing in their profile? I have everything enabled in settings for both plugins.So once a person is logged in they see this on their page:

    Activity
    Profile
    Messages
    Friends
    Groups
    Forums
    Events
    Settings

    But when you click on Groups from there, there is no link to create a group. Same with Forums. Maybe BuddyPress doesn’t have that option? I wanted to improve usability by adding the links to the user’s dashboard, it seems to make sense it would be there but it’s not. I hope I am explaining this OK 🙂 Thank you for any help you can provide!

    #167130

    In reply to: Creating New Plugins

    modemlooper
    Moderator

    It all depends on how the plugin functions. if you have WP options saved and then use bp_include to load plugin your settings won’t load fast enough for BuddyPress to use options.

    bp_include is used for code that accesses BuddyPress code. So you know that BuddyPress is loaded before you execute code. It should not be used to detect if BuddyPress is active.

    you can use https://codex.wordpress.org/Function_Reference/is_plugin_active

    or check if ( class_exists( ‘BuddyPress’ ) )

    #167129

    In reply to: Create Group

    @mercime
    Participant

    @mgrmn There should be a “Create a Group” button beside the page title in the Groups Directory page. https://codex.buddypress.org/user/buddypress-components-and-features/groups/#groups-directory

    If the “Create a Group” button doesn’t show up in your theme, that’s because the_title tag of page template is not within the WordPress loop. To resolve this issue, you can create your own link to the Create Groups page, just append /create to the URL of your groups directory page
    e.g.
    groups page -> http://example.com/groups
    groups create page -> http://example.com/groups/create

    Alternatively, if you prefer, you can instead add the patch to include the groups/create link in BP MyAccount section of the WP Toolbar https://buddypress.trac.wordpress.org/ticket/1838 – coming out in BP 1.8

    #167128
    mgrmn
    Participant

    Not sure, but I believe you need to add get_currentuserinfo(); for the part getting user info.

    Try something like this to debug and see if you get any reponse at all.

    function debug_userinfo() {
    	global $current_user;
          	get_currentuserinfo();
    	echo 'Username: ' . $current_user->user_login . "\n";
          	echo 'User email: ' . $current_user->user_email . "\n";
          	echo 'User first name: ' . $current_user->user_firstname . "\n";
          	echo 'User last name: ' . $current_user->user_lastname . "\n";
          	echo 'User display name: ' . $current_user->display_name . "\n";
          	echo 'User ID: ' . $current_user->ID . "\n";
    }

    See wp codex https://codex.wordpress.org/Function_Reference/get_currentuserinfo

    @mercime
    Participant

    @mike245 by default, there’s only one instance of BuddyPress per WordPress (single or multisite) installation. What you want – multiple BuddyPress installations in one Multisite install – is not possible without a BP multinetwork plugin. There are two plugins available and of those two, since you want a shared userbase, you would need https://wordpress.org/plugins/bp-multi-network/

    #167126

    In reply to: Create Group

    mgrmn
    Participant

    Yes, they are all checked / enabled

    BuddyPress -> Components & BuddyPress -> Settings

    Can not add groups, not as Admin , Not as User. Neither can I as Admin via Admin panel Groups.
    Only direct insert DB

    #167117
    crashy11
    Participant

    I tried to add this code to bp-custom.php but it seems that doesn’t work, does anyone maybe have new code?
    Code is used to exclude one user activity from buddypress activity stream.

    <?php
    add_action(“plugins_loaded”,”bpdev_init_sm_mode”);
    function bpdev_init_sm_mode(){
    global $current_user;
    if(is_user_logged_in()) {
    get_currentuserinfo();
    if(“username” == $current_user->user_login) {
    remove_action(“wp_head”,”bp_core_record_activity”);//id SM is on, remove the record activity hook
    }
    }
    }
    ?>

    #167108
    crashy11
    Participant

    I think I can do it with custom post type, but now I have problem that posts from custom post type are not showing in category.

    #167106
    Ben Hansen
    Participant

    yeah the hostile trick is a good way to “trick” your computer thinking a domain exists somewhere its doesn’t thus allowing you to not need to change the domain in the first place. that being said as Hugo mentions the codex pages tend to try to address the entire learning curve of any particular process meaning that they are giving you a bunch of options on that page you don’t need to be able to follow the entire thing to employ one of the listed techniques.

    Another thing you may want to consider (depending on the amount of content your site will have prior to going public) is to simply build out on a dummy domain then reconstruct on a fresh install as soon as you are able to grab the domain. Regular wordpress content can even be exported from the construction site and then imported into the new site. Unfortunately no such process exists for buddypress data (groups, non post creating users and activity) but generally speaking those things shouldn’t take all that long to recreate unless your community section is going to be gigantic.

    #167105
    shanebp
    Moderator

    >is that hard to make?

    Not if you understand S2, mysql and pre-query BP filters

    #167104
    crashy11
    Participant

    Hi, is that hard to make? Can I do that by myself maybe?

    David Cavins
    Keymaster

    Shuklaamar- Be aware that if you edit core files as that web page suggests, you’ll have to make that same edit every time you update WordPress.

    Honestly, my experience with WordPress on IIS hasn’t been that great. The rewrite/redirects are one thing, but the FastCGI implementation is not very robust, which can cause grief.

    Polly- Your problem doesn’t appear to be related to the original question. I think you’re right that the problem is the theme, so contacting the theme author would be a good start.

    -David

    #167100
    shanebp
    Moderator

    You need to apply a filter to the activity sql.

    You can contact me via PhiloPress

    Or post at Jobs

    shuklaamar1509
    Participant

    I Solved the Issue. Please follow the link : http://webloggerz.com/how-to-remove-index-php-from-wordpress-url/

    #167094
    shuklaamar1509
    Participant

    I Solved the Issue. Please follow the link : http://webloggerz.com/how-to-remove-index-php-from-wordpress-url/

    Prolet
    Participant

    This problem is NOT RESOLVED!
    Anybody with a solution, please? ( to switch to a BP theme is not a solution!)
    Thanks!

Viewing 25 results - 20,176 through 20,200 (of 68,967 total)
Skip to toolbar