Search Results for 'buddypress'
-
AuthorSearch Results
-
August 9, 2010 at 2:33 am #88505
In reply to: Make Main Blog Page Show Excerpts
Nahum
Participantwas 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 ) . ” ) );
August 8, 2010 at 11:00 pm #88487In reply to: Buddypress as not homepage
Builder
ParticipantIt’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.
August 8, 2010 at 10:49 pm #88485In reply to: Adding menu items to the admin bar
pcwriter
ParticipantIf 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.
August 8, 2010 at 10:39 pm #88484In reply to: Adding menu items to the admin bar
pcwriter
ParticipantYes, 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?
August 8, 2010 at 10:17 pm #88479In reply to: Adding menu items to the admin bar
pcwriter
ParticipantI 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
August 8, 2010 at 10:17 pm #88478In reply to: Buddypress as not homepage
Vijaianand
ParticipantPaul,
I don’t see that option at all.
August 8, 2010 at 10:05 pm #88476In reply to: Limit Group Creation to Admin
Beck B
ParticipantThere’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.
August 8, 2010 at 9:23 pm #88475In reply to: Adding menu items to the admin bar
pcwriter
ParticipantBingo! 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!
August 8, 2010 at 8:52 pm #88472In reply to: How to make a private community?
Lsm_267
ParticipantHi,
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 advanceAugust 8, 2010 at 8:18 pm #88467In reply to: Adding menu items to the admin bar
pcwriter
ParticipantHi 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?
August 8, 2010 at 8:14 pm #88465Hugo Ashmore
ParticipantChristian 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.
August 8, 2010 at 7:24 pm #88462christian_gnoth
Memberanyone an idea how I can fix that???
August 8, 2010 at 7:23 pm #88461In reply to: Adding menu items to the admin bar
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.
August 8, 2010 at 6:54 pm #88460In reply to: Strange behaviour of Latest Forum Topics widget
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!
August 8, 2010 at 6:28 pm #88458In reply to: Adding menu items to the admin bar
pcwriter
ParticipantHi @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.
August 8, 2010 at 6:22 pm #88457In reply to: Adding menu items to the admin bar
pcwriter
ParticipantI 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?
August 8, 2010 at 6:08 pm #88456In reply to: Adding menu items to the admin bar
August 8, 2010 at 4:31 pm #88450In reply to: Adding menu items to the admin bar
pcwriter
Participant…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
August 8, 2010 at 3:18 pm #88445In reply to: Adding menu items to the admin bar
pcwriter
ParticipantThanks 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
August 8, 2010 at 3:08 pm #88444In reply to: Buddy Press and BP Ajax Chat
Bowe
ParticipantCometChat has a payed solution, but it looks really good:
August 8, 2010 at 3:03 pm #88442In reply to: Where is the bbpress forum?
Hugo Ashmore
ParticipantAre you sing a theme other than BP-Default? have you definitely got ‘Buddypress -> Componant Setup -> Groups ‘Let users create, join and participate in’ enabled
August 8, 2010 at 2:23 pm #88440In reply to: GroupBlog Plugin – User Role
Driftless
ParticipantHi @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
August 8, 2010 at 2:20 pm #88439In reply to: Admin can’t see other forum topics
Driftless
ParticipantHi @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.
August 8, 2010 at 2:11 pm #88438Driftless
ParticipantAddendum – 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.
August 8, 2010 at 1:59 pm #88436In reply to: Where is the bbpress forum?
Driftless
ParticipantOK. 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.
-
AuthorSearch Results