Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 48,326 through 48,350 (of 68,969 total)
  • Author
    Search Results
  • #88505
    Nahum
    Participant

    was there an update here…was just trying this with something like this – but no luck

    bp_get_blog_latest_post_excerpt() {
    global $blogs_template;

    if ( null == $blogs_template->blog->latest_post )
    return false;

    return apply_filters( ‘bp_get_blog_latest_post_excerpt’, sprintf( __( ”, ‘buddypress’ ), ” . apply_filters( ‘the_excerpt’, $blogs_template->blog->latest_post->post_excerpt ) . ” ) );

    #88487
    Builder
    Participant

    It’s there as Paul said in your main wordpress admin, find it in your WP admin left menu towards the bottom. “WP Admin – Settings > Reading Settings > A static page (tick radio button) > “Front Page displays” (and select a page you want for your home). You can set a page for home page there, also for posts index page just under there.

    #88485
    pcwriter
    Participant

    If I understood the instructions correctly here: https://codex.buddypress.org/how-to-guides/checking-buddypress-is-active/

    This, in loader.php, should check if BP is active: http://pastebin.com/dFt1h3pf

    EDIT: I’ve added the loader.php file to the plugin and, eureka!, it still works.

    #88484
    pcwriter
    Participant

    @hnla

    Yes, I added the first bit ( ‘register_nav_menus’ ) before the pages function in my plugin file, but the second part ( ‘if(has_nav_menu’ ) throws up errors. So I’ll include that part of the code in the readme with instructions on where to paste it if running WP3.0.

    @r-a-y Your infinite wisdom will again come in handy: should the plugin check whether BP is active and, if so, what would you say is the best way to proceed?

    #88479
    pcwriter
    Participant

    @hnla @r-a-y

    I just packaged the code as a simple plugin and tested it on my install. It works perfectly.

    One question you may help me with though: as this code calls BP pages, is it necessary to check whether BP is active?

    As far as I can tell, if BP isn’t active, it’ll simply create dropdowns of WP pages. But I’ve been wrong before ;-)

    #88478
    Vijaianand
    Participant

    Paul,

    I don’t see that option at all.

    #88476
    Beck B
    Participant

    There’s a good plugin for that, something like Restrict Group Creation. If somebody doesn’t beat me to it, I’ll dig up the link.

    EDIT: Here you go: https://buddypress.org/community/groups/buddypress-restrict-group-creation/ or get it the WordPress plugin directory.

    #88475
    pcwriter
    Participant

    Bingo! I guess my brain was still foggy after my nap.

    @hnla said add the global to the function scope… I had added it before the function (doh!)

    @r-a-y I forgot to add the ->blog_id bit

    With the help of both of you, it works perfectly now! BP Community and WP page dropdowns now DO NOT appear on sub-blogs. (Those few WP pages that mysteriously appear in the adminbar in the backend can be excluded simply by adding their page IDs in the code.)

    Thanks a bunch guys!

    #88472
    Lsm_267
    Participant

    Hi,
    I modified my functions.php as @Travel-Junkie said. It works perfectly on my WP 3.0.1. but I want to go a little further.
    I want the member home page only to be visible for the admin and for the registered member, not the others members of the BP.
    for exemple, the http://mysite.com/members/angora/ should be visible only for the logged in user named angora
    I’ve heard about bp_is_home, but no idea how to deal with…
    Any idea would be helpfull ; thanks in advance

    #88467
    pcwriter
    Participant

    Hi guys… nap’s over.

    Thanks for continuing on this fun little ploblom!

    @hnla I’m trying to wrap the entire ul containing both the “Community” dropdown AND the WP pages dropdowns so that they ONLY appear on the main blog (yes, it’s multisite on WPMU2.9.2 and I just upgraded to BP1.2.5.2).

    @r-a-y Should the global be called before function pages() is started, or within it?

    Hugo Ashmore
    Participant

    Christian to troubleshoot something on your behalf you really need to provide something to go on i.e a link to the site or at the least some more detail on your setup; otherwise you are asking for people to guess at what’s wrong and generally that does not find favour amongst coders on tech forums.

    anyone an idea how I can fix that???

    #88461
    Hugo Ashmore
    Participant

    @r-a-y thanks Ray thought there was something other than I had. edit// Running this function in bp-custom.php or functions.php and I can’t get anything out of $current_blog and scoped just about everything I can think of.

    @pcwriter what portion of the function are you wrapping, I was simply thinking that the ul containing the community links was wrapped and removed if not primary blog, but I think I’m probably missing what you are attempting to achieve. Try dropping back to the $blog_id until Ray has a moment to clarify.

    #88460
    rossagrant
    Participant

    @nuprn1 Hi Rich! Just wondered if you’d had a chance to look at this? No rush but just thought I’d ask! Thanks! :)

    #88458
    pcwriter
    Participant

    Hi @r-a-y Glad you could join in!

    I just tried wrapping the ul in…

    php if($current_blog == ‘1′):

    …but that doesn’t want to work either. Both ideas make all BP and WP links disappear from the adminbar. The only thing left is the “My Account”, “My Blogs”, “Notifications” links.

    #88457
    pcwriter
    Participant

    @hnla

    I managed to fix the problem with WP page links in the adminbar in the backend by simply hardcoding the ones I don’t want:

    But I still can’t get the darned “Community” dropdown off member blogs. Frustrating, but I’ll keep trying stuff…

    Come to think of it, BP1.3 will use WP pages for BP components. Add the custom menu capability of WP3.0 and this whole code idea will become redundant, no?

    #88456
    r-a-y
    Keymaster

    @hnla – The $current_blog global is what you’re looking for.

    #88450
    pcwriter
    Participant

    @hnla

    …use a conditional to check whether the main site is being viewed…

    That’s exactly what I’m trying to do but can’t seem to get it right :-(

    #88445
    pcwriter
    Participant

    @paulhastings0

    Thanks for the encouragement!

    But before I release this nifty code as a plugin, I gotta figure out how to stop the added links from showing up on member blogs, and in the WP dashboard.

    For ex, on member blogs, the “Community” dropdown is creating links to non-existent stuff like mainsite.com/sub-blog/forums. See a test blog on my site here: ( http://nowrecovery.com/justfunstuff/ ). In the backend, even pages that are set to be excluded from menus (via Exclude Pages plugin) are appearing. Not good.

    Still hoping for clues/help from @hnla who supplied the added code for WP3.0 :-)

    #88444
    Bowe
    Participant

    CometChat has a payed solution, but it looks really good:

    http://www.cometchatdemo.com/buddypress/

    #88442
    Hugo Ashmore
    Participant

    Are you sing a theme other than BP-Default? have you definitely got ‘Buddypress -> Componant Setup -> Groups ‘Let users create, join and participate in’ enabled

    #88440
    Driftless
    Participant

    Hi @Bpisimone

    No worries – I’ve been using Filosofo Remove Dashboard plugin from wordpress. And I fixed the above issue by adding:

    if (preg_match(‘#wp-admin/?(.*)?$#’,$_SERVER) && (‘index.php’ != $menu[$page][2])) //send everything packing
    wp_redirect(get_option(‘siteurl’));

    Around line 53 – just below the index.php redirect.

    Hope that helps.

    Now.. back to our regularly scheduled GroupBlog question ;)

    #88439
    Driftless
    Participant

    Hi @Beckb – I was seeing it in the GROP -> FORUM tab… however, now Admin can see all forum topics…. but it was there! I swear!

    I will get back with more information if it happens again.

    Driftless
    Participant

    Addendum – I see a similar (7 month old) thread here: https://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/have-i-misunderstood-what-buddypress-is-about/ that also tackles this issue…

    It seems this is not a new idea – but perhaps an idea who’s time has come? Can Buddypress gracefully accept a back-seat to the main website?

    In point of fact, I am using my installs of buddypress as completely separate sites from their parents (www.example.com and community.example.com) to avoid the collision…

    Is buddypress more like the Green Room where actors hang out and throw back mixed drinks before bounding on stage for the world to see (the Blog)… I imagine a large room with several doors leading out to the world. Buddypress being the behind-the-scenes hang-out…

    OK. Back to coding.

    #88436
    Driftless
    Participant

    OK. I’ve been struggling with this concept as well… and just wrote a rant (of sorts) here https://buddypress.org/community/groups/miscellaneous/forum/topic/forum-activity-blog-wheres-the-beef-i-e-what-is-buddypress/

    I think this question has been fielded enough times that it is indicating a bigger issue. It all makes sense once you figure it out – but should a site need “figuring out”?

    I would be curious to get some other ideas.

Viewing 25 results - 48,326 through 48,350 (of 68,969 total)
Skip to toolbar