Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 24 replies - 1 through 24 (of 24 total)

  • craftersuniversity
    Participant

    @craftersuniversity

    Thanx, that work great! I didn’t know it had to go in a folder named “activity”.


    craftersuniversity
    Participant

    @craftersuniversity

    Sorry but it still does not work. I replace the code with yours ( <?php if ( bp_has_activities( bp_ajax_querystring( ‘activity’ ) . ‘&per_page=5’) ) : ?> ) on line 16 and place the file in my child theme folder, but it simply does nothing….


    craftersuniversity
    Participant

    @craftersuniversity

    Sorry, but it doesn’t work. I can only find two activity-loop.php in the BuddyPress plugin folder, one in \buddypress\bp-themes\bp-default\activity which doesnt change anything when altered and one in \buddypress\bp-templates\bp-legacy\buddypress\activity which breaks the site, stops some plugins and refuses to show any activities at all when altered according to your instructions. I’ve also tried placing them in my child theme, but it doesn’t do anything…

    What could be the problem?

    By the way, i’m using a child theme of Twenty Eleven.


    craftersuniversity
    Participant

    @craftersuniversity

    Hmm, this post is claimed to be 1 year and 3 months old in the list? Weird…ill “Bump” it now so to be sure people see it…


    craftersuniversity
    Participant

    @craftersuniversity

    Dear BuddyPress Staff, why is bp_redirect_canonical() causing redirect loops?


    craftersuniversity
    Participant

    @craftersuniversity

    I found the problem, at least for my site. Weirdly enough, what worked for my spit image development site, did not work for my live site, so i had to do a lot of detective work.

    Try this: Install latest version of BuddyPress. Got to the FTP server and folder /wp-content/plugins/buddypress/bp-core/ and in that folder, download bp-core-actions.php. Open it in notepad, search for “add_action( ‘bp_template_redirect’, ‘bp_redirect_canonical’, 2 );” and delete that line. Save the file and upload it to the same place on the FTP server, overwriting the original. Hokus Pokus, your redirect problem should be gone.

    It took me most of my day to narrow it down to this, but finally i got BuddyPress to completely work as far as i can see. All BuddyPress pages are accessible, i can add activities and so on. Hope this works for you.

    The reason this problem popped up with the latest versions of BuddyPress is clear if you read this page where the 1.9 version update details claims that “We’ve brought back bp_redirect_canonical() for helping redirect to top level/default members sections.” Why this is needed i haven’t got the foggiest…


    craftersuniversity
    Participant

    @craftersuniversity

    Too bad, i thought i had the solution for you there….


    craftersuniversity
    Participant

    @craftersuniversity

    @hnla
    Any ideas Hugo?


    craftersuniversity
    Participant

    @craftersuniversity

    I just tried deactivating, deleting, installing and activating BuddyPress, and now it seems to work with the latest version….i’m still a bit skeptical though, but why don’t you try it?


    craftersuniversity
    Participant

    @craftersuniversity

    I’m sorry, i didn’t realize that the theme was of importance for changing PHP files. I have a child theme based on Twenty Eleven. As far as “custom thirdparty, bp-legacy theme compatibility, bp-default” goes, i have no idea what that means…

    My role is always administrator. Also, when logged in as administrator, i see the notice for all, but not when i log into an account with subscriber/participant role.

    I should point out here that i know nothing about PHP….i need dumbed down answers i am afraid….


    craftersuniversity
    Participant

    @craftersuniversity

    I found a piece of code that cind of work when i put it in the child themes header.php:

    
    <?php if ( function_exists( 'bp_message_get_notices' ) ) : ?>
    <?php if ( bp_is_active( 'messages' ) ) : ?>
    <?php bp_message_get_notices(); /* Site wide notices to all users */ ?>
    <?php endif; ?>
    <?php endif; ?>

    However, this makes it visible for all, even visitors that has not logged in, which is not what i want. I would like this to be visible only for logged in members, which means i have to add it too one of the php files in BuddyPress installation, but which one? Can anyone help me with this?


    craftersuniversity
    Participant

    @craftersuniversity

    That is just dreadful, i hope you can find an old version of BuddyPress instead? Better an outdated version then no version i feel….Besides, it doesn’t seem that the authors care or know how to fix this, so you and i might have to live with the old version i am afraid….


    craftersuniversity
    Participant

    @craftersuniversity

    I’ve done some more detective work now, and it seems that it has to be a PHP bug of some sort. Changing themes doesn’t work, even BuddyPress default wont display the “Notice for all” message to normal members with status “Participants”. Higher role levels like Editor or Administrator does get to see the message though, so this definitely has something to do with WordPress roles in combination with BuddyPress plugin. I also checked the source code of the page. When logged in as a low ranking member ( role Subscriber ) the text in the notice isn’t even part of the page source code…


    craftersuniversity
    Participant

    @craftersuniversity

    Bump


    craftersuniversity
    Participant

    @craftersuniversity

    It seems intriguing to be sure, how ever, i have spent so much time already on this problem, in not sure i’m willing to sacrifice another 5-6 hours of restoring my site from backups in order to test this theory…however, ill definitely think about it. At any rate, thanks for the tip.


    craftersuniversity
    Participant

    @craftersuniversity

    Did you notice any problem with viewing members profiles or groups? The reason i ask is because bbPress shouldn’t affect those areas….


    craftersuniversity
    Participant

    @craftersuniversity

    Barney
    I don’t see any such problem with my bbPress forums right now, however i had to revert to an earlier version of BuddyPress in order to make the site work, so i no longer have the problem on my site. Did you have the latest version of BuddyPress installed when you had this problem?


    craftersuniversity
    Participant

    @craftersuniversity

    Henry Wright: I’m sorry, but my knowledge of MySQL database is non existent, i have no idea of how to do what you say i should do….


    craftersuniversity
    Participant

    @craftersuniversity

    I’m not sure on what you mean? The only special things about my Twenty Eleven Child theme is the CSS and some minor PHP changes, but not changes that has to do with the database though.


    craftersuniversity
    Participant

    @craftersuniversity

    Sorry, but updating permalinks didn’t work. I also tried changing the theme to Twenty Eleven and remove my child theme files completely, still no dice. Then i downloaded a guaranteed BuddyPress compatible theme “X2” but the problem persisted.

    Then i got stubborn.

    I started to remove plugins one by one, making sure to revert the settings in each one to default before deactivating and deleting. Finally i had only BuddyPress, and the problem.

    So i got angry.

    I checked .htaccess and wp_config.php and made sure they where at their default settings, and i removed every folder and file from the wp_content area that wasn’t needed. The only thing i didn’t manage to remove was the problem.

    So i got furious!

    I completely deleted the whole database and FTP server space, and re-installed WordPress and BuddyPress, and then the problem was gone.

    The only problem is, i’ve spent more then 6 months building my site, making all the plugins get along with each other, and so on, starting from scratch is simply not on the table. So i got my site restored from a backup, and tried again to update BuddyPress, and the problem came back of course.

    I need to make my current installment work, and i get the feeling that the problem is somewhere in the database, what do you think?


    craftersuniversity
    Participant

    @craftersuniversity

    With the new update of wordpress, i found out that this has nothing to do with BuddyPress or any theme, it is a bug in wordpress itself. The have tried to fix it, but its still not working well, the menu fills the screen and cannot be scrolled or hidden. I recommend hiding all buddypress menus until the bug gets fixed:

    /* =Hide BuddyPress sub menu until it works in mobile phones
    ————————————————————– */
    #wpadminbar .quicklinks .menupop ul.ab-sub-secondary {
    display: none !important;
    }


    craftersuniversity
    Participant

    @craftersuniversity

    Sorry about that, i should have written Twenty Eleven, how embarrassing 🙂

    Your tip worked a treat though, thanx alot! I would never been able to solve that without your helpful tip 🙂

    The only thing missing now is the sidebar on bbPress generated pages… you wouldn’t by any chance know how to fix that too?


    craftersuniversity
    Participant

    @craftersuniversity

    Due to new info, im closing this thread and starting anew with a thread called “Buddypress adminbar menu does not work on mobile phones”


    craftersuniversity
    Participant

    @craftersuniversity

    After alot of research and error searching, i have found abit more information about my problem, so ive decided to start a new thread about this, and abandon this one. The new thread will be called “Buddypress and Twenty Twelve compatibility”

Viewing 24 replies - 1 through 24 (of 24 total)
Skip to toolbar