Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 25 replies - 1 through 25 (of 516 total)
  • Avatar of henrywright
    henrywright
    Moderator

    @henrywright

    Regarding your Bootstrap navbar markup, it doesn’t look quite right to me. For example navbar-fixed-top should be a class on <nav>

    See: http://getbootstrap.com/components/#navbar-fixed-top

    Avatar of henrywright
    henrywright
    Moderator

    @henrywright

    @micasuh great stuff, glad you found the problem in the end!

    Avatar of henrywright
    henrywright
    Moderator

    @henrywright

    @micasuh _e( $text ) will search for the translation of $text and print it to screen. If a translation doesn’t exist, it’ll print $text. You might also come across __( $text ). This does the same but it returns instead of printing.

    So yeah, these functions are definitely related to translating.

    Avatar of henrywright
    henrywright
    Moderator

    @henrywright

    I see what you mean about having multiple callbacks but it is an option to keep in mind if the dev team consider your request too custom. If they agree to make the changes then great but there is a plan B available if that doesn’t happen.

    Avatar of henrywright
    henrywright
    Moderator

    @henrywright

    2nd thoughts, there is a way of doing this without requiring changes to the core.

    bp_legacy_theme_new_activity_comment() is the function where your comment form’s data is passed. You could write your own function in either a plugin or your theme’s functions.php which handles your custom data separately. You’d just need to hook it to your own custom action then write your own ajax call.

    Something like:

    $.ajax({
        type: 'POST',
        url: ajaxurl,
        dataType: 'json',
        data: {
            'action': 'yourcustomaction',
            'security': for_the_nonce_check,
            'str': $( '#yourform' ).serialize()
    },...

    Then in your PHP script:

    function my_function() {
        // Do some processing just like bp_legacy_theme_new_activity_comment() does and pass whatever back to your JS
    }
    add_action( 'wp_ajax_yourcusomaction', 'my_function' );
    Avatar of henrywright
    henrywright
    Moderator

    @henrywright

    Hi @cyrilbatillat

    What data were you planning on passing?

    I don’t want to modify the core of BuddyPress, so is there an other way to do this ?

    No but you could try asking the guys over at Trac if they could extend what data can be passed. If they agree, the changes usually take a minor version or two to make it into core but until then you could apply the patch to your own installation.

    Avatar of henrywright
    henrywright
    Moderator

    @henrywright

    If you’re using BuddyPress 2.0.2 with WordPress 3.9.2 with no plugins activated or even installed in the plugin folder and the Twenty Fourteen theme enabled then everything should work fine as this is a tried and tested combo. The only variables left are a) your server and b) your database.

    Perhaps try rolling back your database? And also make sure there has been no changes on your server since you noticed the issue.

    Avatar of henrywright
    henrywright
    Moderator

    @henrywright

    @micasuh humm. Perhaps try grabbing a fresh copy of the BP plugin code? https://wordpress.org/plugins/buddypress/

    Something may have become corrupted in the actual plugin.

    Avatar of henrywright
    henrywright
    Moderator

    @henrywright

    @micasuh the .mo file is most likely being loaded from your theme’s functions.php file. Alternatively, it may be loaded from a plugin. Or, maybe even bp-custom.php (if you have one of those).

    Look for something such as the following and try removing it to see if it resolves the issue:

    if ( file_exists( WP_LANG_DIR . '/buddypress-en_US.mo' ) ) {
        load_textdomain( 'buddypress', WP_LANG_DIR . '/buddypress-en_US.mo' );
    }

    If it doesn’t resolve the problem then we know your translation file is OK.

    If you still believe the issue is a virus in your database then you could try rolling back. Do you keep database backups? But, to be honest, I’m more inclined to think this is occurring as a result of some rogue theme or plugin code.

    Avatar of henrywright
    henrywright
    Moderator

    @henrywright

    Avatar of henrywright
    henrywright
    Moderator

    @henrywright

    If only the text strings are affected, language files spring to mind. Are you using any of these to translate strings? Looks like BP strings only are affected. Could your buddypress .mo file be corrupt? (If you have one?)

    Avatar of henrywright
    henrywright
    Moderator

    @henrywright

    What makes you think the db is corrupted? In theory what you see in the screenshot could simply be caused by some rogue front-end CSS.

    Avatar of henrywright
    henrywright
    Moderator

    @henrywright

    Themes can also interfere with the admin area. Which theme are you using? Does the problem happen with Twenty Thirteen activated?

    Avatar of henrywright
    henrywright
    Moderator

    @henrywright

    @eable good idea to test on the Twenty Thirteen parent theme. If it works then you’ll know something is up with the child theme.

    Will I mess up WordPress’s ability to see them all, if I drag them all over?

    There’s no harm in dragging them all over. And yes, you do need to retain the folder structure.

    Avatar of henrywright
    henrywright
    Moderator

    @henrywright

    @eable apologies I didn’t realise you were using a child theme. You’re right, just style.css is required in that case.

    Avatar of henrywright
    henrywright
    Moderator

    @henrywright

    @eable so your theme contains just the /buddypress/ folder and style.css and 404.php files? I think that might be your problem. Themes must include an index.php file. Try adding one and see if the problem is resolved.

    Avatar of henrywright
    henrywright
    Moderator

    @henrywright

    I copied the buddypress folder that is contained in bp-legacy. Is that not was what the directions meant?

    That sounds right to me.

    If I did this right, why are the files not visible in the WordPress back end at Themes > Editor > mytheme?

    If you’re not working on localhost, you’ll need to upload the files to your web server. Have you done that?

    Avatar of henrywright
    henrywright
    Moderator

    @henrywright

    Hi @eable,

    The directions look like they mean for me to move the whole of /buddypress/ into my child theme

    Be careful not to copy the whole BuddyPress plugin to your child theme. Just the templates should be copied. As you mention in your post, the templates are found here /bp-templates/bp-legacy/buddypress/

    Also worth mentioning is you only need to copy the templates you need. So for example, if you want to modify the members loop, then you can just copy members-loop.php into folder /your-theme/buddypress/members/members-loop.php

    Avatar of henrywright
    henrywright
    Moderator

    @henrywright

    @drewmeyers looks that way. I just tried the link and no site seems to exist. It was posted over 2 years ago so perhaps the project folded?

    Avatar of henrywright
    henrywright
    Moderator

    @henrywright

    @bphelp sounds like you have your next project idea right there? ;)

    Avatar of henrywright
    henrywright
    Moderator

    @henrywright

    Thanks Paul. Shame the feature never got implemented, maybe one day :)

    @akovia, I’ve updated the article to remove the reference to forwarding messages. Apologies for the confusion with this.

    cc @danbp and @bphelp

    Avatar of henrywright
    henrywright
    Moderator

    @henrywright

    Private Messaging works like an internal site email. Members can message people on their friends list as well as forward and reply to received messages

    @bphelp I see the reference to forwarding in that article but am not certain forwarding functionality is available. Perhaps @djpaul can confirm?

    Avatar of henrywright
    henrywright
    Moderator

    @henrywright

    Hi @akovia

    There’s only really a need to supply your environment info if you’re troubleshooting a problem (if something is broken). Regarding the forwarding of messages, I’m not sure that is possible by default, actually. May I ask where abouts you read about it?

    Avatar of henrywright
    henrywright
    Moderator

    @henrywright

    These text strings get set in the setup_nav() method. See here for an example. They’re translatable via a language file but to my knowledge they’re not filterable. That means whilst it will be easy to change the text to something fixed such as ‘My activity’, it will be difficult changing it to something variable such as ‘Pete’s activity’.

    Ref: http://codex.buddypress.org/getting-started/customizing/customizing-labels-messages-and-urls/

    Avatar of henrywright
    henrywright
    Moderator

    @henrywright

    Hi @dmccuiston

    Check out this forum reply

Viewing 25 replies - 1 through 25 (of 516 total)