Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'wordpress'

Viewing 25 results - 3,876 through 3,900 (of 22,651 total)
  • Author
    Search Results
  • #260982
    danbp
    Participant

    Hi @vickievik,

    the right question here would be how to make my theme compatible with buddypress.

    The thing to understand is that BP use dynamic content for its page and that these page are NOT ordinaty WP pages.
    For each content, BP fires a so called template-part.
    Lets take as example a profile page

    The slug is /members/ which exist as “page” on wp’s page list. This wp page has no content and also no model or template. It’s just a “slug” in the wp ecosystem.

    When you’re on a profile you have the page(aka /members/) but also many template parts, depending what you’re doing on that profile. Aside the common parts header – content – footer, you’ll find also personnal activity, frineds, groups, mentions, notifications, messages and not the worst, profile settings. All this on the same “page”.

    Most theme mistakes are at this point. People try to design the page, instead to work the template parts.

    When you design a theme, you usually design something for a page, independantly from any plugin. This structure is used by any Twenty Theme and you can follow them as model, because these themes are bullet proof and systematically used by all wp devs when building (in our case) BuddyPress

    BP can be used with almost any existing theme, so far this theme is respecting WP’s coding standarts.

    If you have brocken elements, and specially thoose using JS, it could be due to missing ID or class or even more simple, some missing instructions/conditionnals in your theme.

    BP’s template parts are designed to fit with a majority of themes. The best to do, at least while creating your first theme, is to use BP “as is” and build your theme around thoose existing parts and not to remove/modifying BP arts to fit your creation.

    #260980
    danbp
    Participant

    Hi,

    the toolbar belongs to WordPress. How to remove items is explained here:
    https://codex.wordpress.org/Function_Reference/remove_node
    Searching the forum will certainly bring you some more hints too.

    #260973
    Masoud
    Participant

    @danbp
    hi.
    1 – first of all i have to thank you for your time, and complete explanation on this. i’m so grateful for that.
    ———
    2 – second, i have to apologize for my limited knowledge.
    i am at the beginning and still learning about php, DB, wordpress, and bp.
    so sorry if i had mistakes in codes.
    ———
    3 – third, i have to say that:
    i was not aware of this, that the usage of components are not the same. just like the example you said about buddy nav bar.
    in this code (which was not working) :

    <?php
     if ( !defined( 'BP_DEFAULT_COMPONENT' ) ) {
     if ( bp_is_active( 'activity' ) && isset( $bp->pages->activity ) )
     $bp->default_component = 'mentions' ;
    }
    ?>

    my logic was : if ( !defined( 'BP_DEFAULT_COMPONENT' ) ) i use this code to understand if it’s a component or not.
    then after with this bp_is_active( 'activity' ) it will be checked , if it’s activity or not
    and with this isset( $bp->pages->activity ) to check if activity is to check whether activity is set or not.
    and if all true, then set and define a new nav default tab to mentions with this $bp->default_component = 'mentions'

    but it seems that my logic/codes are wrong from the start 🙁
    ———
    or for this code that i tried, and also went wrong:
    <?php define( 'BP_ACTIVITY_DEFAULT_EXTENSION', 'mentions' ); ?>
    my logic was, the <?php define( 'BP_ACTIVITY_DEFAULT_EXTENSION' part will force the bp, to set the default landing tab to activity.
    and with the second part , 'mentions' ); ?> it will force the Activity component to load on mentions sub-nav item.
    ———
    4 – i have to thank you for the group example. i didn’t know that set such a thing is possible.
    it was clear . i read it. and i’m trying to learn more about it.

    at last , i have to thank you again for the clear explanations.

    #260967
    Lars Henriksen
    Participant

    The defer%20onload is a sign that you might be using a plugin to do something to all WordPress javascript enqueued files.

    Sorry, I disabled a code snippet that defers javascript – that solved the problem.

    #260930

    In reply to: Hiding register link

    Venutius
    Moderator

    I think you are looking for BP Registration options – that provides you with new member moderation.
    https://wordpress.org/plugins/bp-registration-options/

    If you are new to BuddyPress I’m developing a site aimed at helping people get the most out of BuddyPress http://buddyuser.com

    #260921
    modemlooper
    Moderator
    #260920
    modemlooper
    Moderator
    #260892
    Masoud
    Participant

    hi.
    i am using latest versions of both wordpress and buddypress.and working on a food website.
    in this website , i wanted to allow only authors to post activity updates .
    (because it will be much easier for users to track their favorite chef recipes in the activity page.)
    so i’ve hide the ” personal ” submenu of activity tab : Activity > Personal (where people can post updates)
    with the help of following code in bp-custom.php :

    function bpfr_hide_tabs() {
    global $bp;
    if ( bp_is_user() && ( !current_user_can(author) || !current_user_can(administrator) ) ) {		
     bp_core_remove_subnav_item($bp->activity->slug, 'just-me');	}
    }
    add_action( 'bp_setup_nav', 'bpfr_hide_tabs', 15 );

    but now when i go to my profile (as a subscriber)
    i will see a 404 page.
    i’ve searched a lot and i noticed that , now that i’ve removed the default activity stream tab , i have to point it to another tab. so when a user profile is loading (or if a user clicks on activity tab),
    instead of default activity> personal . it load activity > mentions / OR / favorites / OR / … (some other submenu than personal )

    so my question is:

    how can i change the default activity stream tab
    from
    Activity > Personal
    To
    Activity > Mentions – Or to – Activity > Favorites – …

    thanks a lot for any help.

    #260888
    Venutius
    Moderator

    You could try something like this, only it’s not been updated in a while, not tried it myself https://wordpress.org/plugins/buddypress-login-redirect/

    #260887
    Earl_D
    Participant

    It doesn’t set up predefined filters which seems like what OP wanted but this works really well for me and includes widget

    https://wordpress.org/plugins/bp-profile-search/

    #260845

    In reply to: BP and AMP

    Ben Hansen
    Participant

    Responsiveness and AMP are actually sort of unrelated concepts any page/site that can have an AMP’ed version probably should have one (for optimal ranking) and it’s sort of the opposite idea of making a one page fits all situations notion that has made responsiveness a first order requirement in building sites these days (it’s like deja vu all over again).

    i believe that WP itself is not fully compatible with AMP yet:

    https://wordpress.org/plugins/amp/

    (see notes)

    so BP compatibility is probably a ways off at this point. Others may know more than me on this subject though. 🙂

    #260824

    Hey @danbp

    I just thought I’d jump in here real quick, as I think this will be beneficial to everyone in the thread including @Tranny.

    And even if you would be a genius coder creator of an extra super original spam shield, you could be sure to became target #1 of all spammers, because in this case, you would represent the absolute challenger of all code breakers !

    We are that “genius coder creator of an extra super original spam shield” that you speak of. 🙂

    There is no miraculous plugin or trick to stop them.

    Ahh, but there is.

    It’s real, and it’s even called WP-SpamShield. LOL…you can’t make this stuff up. 🙂

    Check it out on WPorg. It’s been out for about two and a half years, and is forked from another plugin we developed almost a decade ago. It works perfectly and automatically on BuddyPress, bbPress, and pretty much everything else. You can also feel free to check out the plugin documentation here.

    …And for the record, we definitely are a huge target of spammers. 🙂

    dealing with spammers is a long run work, to not say a never ending work.

    True story!

    – Scott

    #260811
    jono543
    Participant

    Hi,

    Thank for your help, I tried another theme and it seemed to work. So looks like its a theme issue. The theme, plugins and wordpress core is all updated to latest version.

    I’ll contact mycred/theme developers to see how to fix this.

    Thanks much appreciated 🙂

    #260809
    Henry Wright
    Moderator

    Great plugin; but the online status only display on the blog site

    Thanks! As I mentioned it’s a WordPress plugin so you will need to adapt it for use with BuddyPress. It shouldn’t be too difficult to do because BuddyPress members and WordPress users are the same.

    #260808
    danbp
    Participant

    HI,

    BP use the same pagination system as WordPress. Here a tutorial to get this to work for WP

    And here a list of “pagination” related functions:
    http://hookr.io/plugins/buddypress/#index=a&search=pagination

    #260802
    r-a-y
    Keymaster

    @adjunkten – The defer%20onload is a sign that you might be using a plugin to do something to all WordPress javascript enqueued files.

    Because if you remove the defer line, the JS file is valid:
    http://historielaerer.dk/wp-content/plugins/buddypress/bp-core/js/vendor/moment-js/locale/da.min.js

    Are you using such a plugin? If so, disable it and see if that fixes your problem.

    #260797
    Henry Wright
    Moderator

    Hi @swiftblack

    Take a look at my plugin Here: https://github.com/henrywright/here

    I use the WordPress Transients API to output a user’s online status. You could easily adapt it for use with BuddyPress.

    #260785
    Venutius
    Moderator

    One of the features of WPFront User Role Editor is that it allows you to set whether menu items are visible to logged in users or not.

    #260763
    @mercime
    Participant

    @wasanajones Thank you for the report 🙂 We will be removing that information from our readme.txt https://buddypress.trac.wordpress.org/ticket/7328

    #260758

    In reply to: Profile Page

    Earl_D
    Participant

    The look of your pages including the profile will be determined in large part by the theme you are using. Not sure if the image you referenced is the default buddypress theme with modifications or another WordPress theme. Pretty much any well designed WordPress theme should work but those made compatible with BP work best. You may want to try searching the WP theme directory with Buddypress as a keyword. There are also premium themes designed for BP which create their own look and feel for your site.
    Hope that helps

    #260742
    d6collab
    Participant

    Okay, I deactivated every plugin I have, except for BuddyPress and rtMedia. It did not resolve the problem. I can still only upload media from my own activity stream but not from the sitewide activity stream.

    I’m at a loss here. I really need to be able to resolve this. I even activated the Twenty Sixteen default theme to make sure it wasn’t a conflict with my theme and no dice.

    Why can’t media be uploaded from the sitewide activity stream? Anybody have any ideas?

    Please, I’m getting a little desperate here, as I don’t know what else I can do other than deactivate all the other plugins and activate one of the default WordPress themes, which I’ve already done with no resolution. Thanks for any insight you can give!

    #260734
    livingflame
    Participant

    For upload Media install: rtMedia plugin.

    #260717
    Venutius
    Moderator

    Yes this has been identified, a fix is going to be released today, in the meantime you will need to downgrade to 2.7. To do this you will need to download 2.7 from the “Developers” section of https://wordpress.org/plugins/buddypress/developers/, Delete BuddyPress 2.7.1 and then upload 2.7

    #260714
    danbp
    Participant
    #260681

    In reply to: Actions not taken

    Slava Abakumov
    Moderator

    One more thought aloud: I see in WordPress core code that this text also displays when nonce check (security) fails. See wp_nonce_ays() if you are interested. This function is used in check_admin_referer() which is used everywhere in BuddyPress. That’s the only hint that I can give you right now. Try investigate in this direction further. In general – this is something with your site/server and not BuddyPress itself.

    To cleanup – you will need to reinstall everything from scratch (I mean create a new database and use it). Those plugins do not provide cleanup on uninstall functionality.

Viewing 25 results - 3,876 through 3,900 (of 22,651 total)
Skip to toolbar