Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 19,826 through 19,850 (of 68,967 total)
  • Author
    Search Results
  • #168334
    jetkappu
    Participant

    so many error when i try it..

     function custom_bp_adminbar_login_menu() { global $bp; global $wp; remove_action('bp_adminbar_menus', 'bp_adminbar_login_menu', 2); if (is_user_logged_in()) return false; echo '•' . __('Log In', 'buddypress') . '
    '; // Show "Sign Up" link if user registrations are allowed if (bp_get_signup_allowed()) { echo '•' . __('Sign Up', 'buddypress') . '
    '; } } add_action('bp_adminbar_menus', 'custom_bp_adminbar_login_menu', 1);
    Warning: Cannot modify header information - headers already sent by (output started at /home/...../public_html/wp/wp-content/plugins/bp-custom.php:14) in /home/....../public_html/wp/wp-login.php on line 368
    #168332
    lenasterg
    Participant

    You can try the following.
    Into your /plugins folder create a file bp-custom.php.
    Into the file put the following code:

    
    function custom_bp_adminbar_login_menu() {
        global $bp;
        global $wp;
        remove_action('bp_adminbar_menus', 'bp_adminbar_login_menu', 2);
        if (is_user_logged_in())
            return false;
        echo '<li class="bp-login no-arrow"><a href="NEW_LOGIN_URL">' . __('Log In', 'buddypress') . '</a></li>';
        // Show "Sign Up" link if user registrations are allowed
        if (bp_get_signup_allowed()) {
            echo '<li class="bp-signup no-arrow"><a href="' . bp_get_signup_page(false) . '">' . __('Sign Up', 'buddypress') . '</a></li>';
        }
    }
    
    add_action('bp_adminbar_menus', 'custom_bp_adminbar_login_menu', 1);
    

    Bests,
    Lena

    Hugo Ashmore
    Participant

    You have raised this on bbpress support and John has responded so let that thread run.

    prikid
    Participant

    B/wp-content/plugins/bp-groupblog/bp-groupblog-classes.php on line 58

    #168324
    Hugo Ashmore
    Participant

    The docs can always take improvement, and I think no one involved with them would claim they are anywhere close to covering all that’s required, but writing them can be very time consuming . The theme compat ones that exist, I thought pretty much covered the detail necessary, but as in all things can always stand reviewing and improving.
    In your opening post it struck there was a possible level of confusion between the older approach to custom themes using template pack plugin and theme compat as of 1.7. ?

    Essentially if allowing BP to run with the newish theme compatibility ( i.e you do not select bp-default theme, or you do not have any bp directories in the theme root e.g /my-theme/members/index.php ) then BP component screens should fit to match a themes content area. In this sense one doesn’t need now to worry about the markup structure as BP uses what exists in page.php (or any of the proscribed file names it looks for first) So here the important question is to ask whether it’s possible you are mixing BP templates i.e some in your theme root, some in theme compat directory – in your theme the only place you should have BP templates is located within a top level directory /my-theme/buddypress/ or /my-theme/community/

    In your page.php example the important section is the get_template part that includes the page content loop that’s where /what BP grabs to inject it’s data to.

    Now what isn’t known is how your chosen theme is managing styles for those sidebars, but if you want absolute control in being able to configure a primary template file for BP screens then you can copy page.php rename to ‘buddypress.php’ and locate that in /my-theme/buddypress/ now in that file you may call specific sidebars as in get_sidebar(‘buddypress’) along with a new sidebar sidebar-buddypress.php

    At the end of the day I think the initial issue to resolve is the (possible) confusion between the two ways of managing BP templates and that you probably want to ensure that full theme compatibility is being allowed to run ( again the bottom line to ensure that this is the case is that one has NO BP templates in the theme whatsoever, letting BP handle injecting it’s content via whatever files the theme provides )

    #168322
    Sizons
    Participant

    I’m sorry to have taken such nab with low emotional intelligence at the documentation, truly I am at a loss of understanding as to why such a powerful product is available under a GPL license, I guess I don’t fully understand the open source philosophy (PS: I’ve been reading your posts over the years Hugo and am a great fan, pity I started off on the wrong foot) –

    That aside, in my retraction of such careless words born out of frustration, I must say that the documentation seems very professional and concise, though I also feel it could be a little more detailed.

    I’m personally an average everything, I did a multimedia diploma that I dropped out of and never really excelled at anything. I did php during those days too but just barely passed with a 50% or something.

    Nevertheless, it is my view that the documentation should be able to lead someone with at least my little experience to getting the job done, it should be just a little bit more detailed, I would suggest print-screens of every step just to be safe.

    “Not really sure what you mean here, think you need to explain in detail what file structure and locations”

    Okay, under fixing alignment there is a sentence:

    Open up the page.php file (if this does not exist, use index.php). Make note of the HTML template structure of the file, specifically the <div> tags that surround the content and sidebar.

    When I open my page.php file from my FTP client at the root of my theme folder what I see from page.php is the following code:

    <?php get_header(); ?>
    <?php get_sidebar(‘top’); ?>
    <?php

    if (have_posts()) {
    /* Start the Loop */
    while (have_posts()) {
    the_post();
    get_template_part(‘content’, ‘page’);
    /* Display comments */
    if (theme_get_option(‘theme_allow_comments’)) {
    comments_template();
    }
    }
    } else {
    theme_404_content();
    }
    ?>
    <?php get_sidebar(‘bottom’); ?>
    <?php get_footer(); ?>

    In that code, (Forgive me if my understanding is lost here) there is not even one Div tag, infact, there is no HTML code in that file at all, even the index.php(the one in my themes root folder) file looks closely similar to the file above, here is its contents:

    <?php get_header(); ?>
    <?php get_sidebar(‘top’); ?>
    <?php
    if (have_posts()) {
    /* Display navigation to next/previous pages when applicable */
    if (theme_get_option(‘theme_’ . (theme_is_home() ? ‘home_’ : ”) . ‘top_posts_navigation’)) {
    theme_page_navigation();
    }
    /* Start the Loop */
    while (have_posts()) {
    the_post();
    get_template_part(‘content’, get_post_format());
    }
    /* Display navigation to next/previous pages when applicable */
    if (theme_get_option(‘theme_bottom_posts_navigation’)) {
    theme_page_navigation();
    }
    } else {
    theme_404_content();
    }
    ?>
    <?php get_sidebar(‘bottom’); ?>
    <?php get_footer(); ?>

    Perhaps I am using the wrong page.php file, but that would not make sense because I used the directory address provided by BP-Compatibility on the fixing alignment section.

    Ali Hendaoui
    Participant

    @modemlooper, thank you so much that code works, really appreciate the help

    #168314
    modemlooper
    Moderator

    The theme you are using is not bp default or twenty twelve. The BuddyPress part of the page looks custom. What theme is this?

    #168313
    ds123
    Participant

    i know this is an old thread but its top of the list on google for the cdn buddypress avatar search …. @pisanojm did you ever find a solution to this using push origin cdn’s …for anyone else the maxcdn company seems to work with buddypress avatars but you can’t permanently store your files there you have to have them mirrored on your local web server … i have to offload the thousands of avatar files off the web app server …onto a cdn …need to use push cdn like cloud files ..or self hosted with w3 total cache plugin ..any advice would be greatly appreciated!?

    Ali Hendaoui
    Participant

    Thank you and I am really sorry for the inconvenience, if I need anything else I will start a new topic.

    #168304
    Cidade Sonho
    Participant

    Hello 😡 I have this problem after register

    and the member don´t get the e-mail to active your account

    Warning: sprintf() [function.sprintf]: Argument number must be greater than zero in /wp-content/plugins/buddypress/bp-core/bp-core-filters.php on line 255

    I have multi site too
    I don´t change the core files 🙂 NEVER 😉

    why? Thanks =D for all hard work
    from Brazil

    love bp

    #168298
    katemgilbert
    Participant

    I have followed your suggestion to add the Profile link to a second theme location menu. However, now it shows in both menus. How can I specify it just to show in one and not the other? Here is my code:

    add_filter( 'wp_nav_menu_items', 'my_nav_menu_profile_link' );
    function my_nav_menu_profile_link($menu) { 	
    	if (!is_user_logged_in() && $args->theme_location == 'footer-nav' ) 
    		return $menu;
    	else
    		$profilelink = '<li><a href="' . bp_loggedin_user_domain( '/' ) . '">' . __('My Profile', 'buddypress' ) . '</a></li>';
        		$menu = $profilelink . $menu;
        		return $menu;
    }

    Thanks!

    #168293
    Hugo Ashmore
    Participant

    well ‘community’ always did exist as a location but it’s preference I guess, personally I like ‘community’ as it denotes what the directory is for but it’s half a dozen of one six of the other.

    #168292
    modemlooper
    Moderator

    you can use both locations? everything bp makes better sense in buddypress folder

    #168289
    Hugo Ashmore
    Participant

    @modemlooper
    Yep, I put a patch in then beat Boone around the head until he wrote it correctly and committed 🙂

    https://buddypress.trac.wordpress.org/ticket/4949

    Was planning to update those template compat codex pages to include mention of this.

    #168285
    modemlooper
    Moderator

    @hnla was that switched in 1.8?

    #168283
    ojbravo
    Participant

    I have been having this exact same problem sporadically. I have searched a ton of forums and have seen many people with the same issue, starting as far back as BPv1.2 and WPv2.9. So far, I have yet to find anyone who has posted a solution to this problem.

    Here is what seemed to have caused / resolved my problem:

    In the general settings of my WordPress install, I listed the url of my site as http://mydomain.com, but when I linked to the register page I linked to http://www.mydomain.com/register/. Registering with this link produced the page refresh / clearing of passwords error. Removing the www from the address fixed the issue.

    Hope this helps someone.

    Godspeed,
    Omar
    Wordpress v3.5.2
    Buddypress v1.7.2

    #168282
    ojbravo
    Participant

    I have been having this exact same problem sporadically. I have searched a ton of forums and have seen many people with the same issue, starting as far back as BPv1.2 and WPv2.9. So far, I have yet to find anyone who has posted a solution to this problem.

    Here is what seemed to have caused / resolved my problem:

    In the general settings of my WordPress install, I listed the url of my site as http://mydomain.com, but when I linked to the register page I linked to http://www.mydomain.com/register/. Registering with this link produced the page refresh / clearing of passwords error. Removing the www from the address fixed the issue.

    Hope this helps someone.

    Godspeed,
    Omar
    Wordpress v3.5.2
    Buddypress v1.7.2

    #168281
    ojbravo
    Participant

    I have been having this exact same problem sporadically. I have searched a ton of forums and have seen many people with the same issue, starting as far back as BPv1.2 and WPv2.9. So far, I have yet to find anyone who has posted a solution to this problem.

    Here is what seemed to have caused / resolved my problem:

    In the general settings of my WordPress install, I listed the url of my site as http://mydomain.com, but when I linked to the register page I linked to http://www.mydomain.com/register/. Registering with this link produced the page refresh / clearing of passwords error. Removing the www from the address fixed the issue.

    Hope this helps someone.

    Godspeed,
    Omar
    Wordpress v3.5.2
    Buddypress v1.7.2

    #168278
    meg@info
    Participant

    try to disable all plugins excepts buddypress

    #168277
    Hugo Ashmore
    Participant

    A source of documentation that just works? not sure what that means , there are a couple pf codex docs that go into fair detail regarding how to deal with theme compatibility and customising not sure we can make them any more explicit really, there is a certain amount of knowledge one just needs as regards generic PHP amd markup in order to be able to work effectively for ‘clients’

    My major problem is that my page.php and index.php both have no div tags
    Not really sure what you mean here, think you need to explain in detail what file structure and locations you are trying to work with before trying to see where you are getting confused.

    #168258
    Hugo Ashmore
    Participant

    As of 1.8 you should be able to locate the file in /my-theme/community/css/ or /my-theme/buddypress/css/

    #168255
    modemlooper
    Moderator

    yourtheme/css/buddypress.css

    place the file there and it will overide the css

    modemlooper
    Moderator

    Use the code I posted above

    #168252
    @mercime
    Participant

    No the problem is the register page it shows SHOP and I cant add sidebar to it , also the forums page ( androidparlor.com/forums


    @iomatita
    Check Settings > BuddyPress > Pages. What’s the title of the page assigned to the Register component?

Viewing 25 results - 19,826 through 19,850 (of 68,967 total)
Skip to toolbar