Forum Replies Created
-
You might take a look at the Members-Only plugin from WordPress:
https://wordpress.org/extend/plugins/members-only
It prevents anyone not logged from seeing the blog/site and directs them to the login page (or you can choose a different page).
Seems to work with WPMU, but you’ll have to test it on your site to be sure.
To add Forums to the navigation menu, here’s a basic workaround:
Go to header.php and find the section where the rest of the navigation is (it should start with this code:
<ul id=”nav”>
Add the code below (customized for your site) along with the other navigation links:
<li><a href="URL of FORUM LOCATION" title="Forums">Forums</a></li>This code needs to be between the
<ul>and</ul>tags to work.Also, remember that the navigation items are in a specific order, so put the link to the forums where you want them located. In other words, if you want the forums after the Home button, make space and put it there; if you want it after the Members button, make space and put it there. You can tell what each navigation does by the slug (e.g., BP_MEMBERS_SLUG is the Members button).
Fairly straightforward.
Well, I found it! You can select whatever page you want as your entry screen in Administration > Settings > Reading.
Here’s the page (which needs updating) in the WordPress Codex: https://codex.wordpress.org/Creating_a_Static_Front_Page
Now I just need to build the page!
(am now marking this resolved)
Okay, so here’s what I’ve done:
1. Added this code to the beginning of the bb-config.php file (I have WPMU installed at the root):
require_once( $_SERVER[‘DOCUMENT_ROOT’] . ‘/wp-blog-header.php’ );
2. Added this code to the bbPress footer (before the closing /html tag):
<?php wp_footer() ?>
3. Added this code to the bbPress header (before the /head tag):
<?php wp_head() ?>
4. Added this code to my bbPress header theme:
<div id=”search-login-bar”>
<?php bp_search_form() ?>
<?php bp_login_bar() ?>
<div class=”clear”></div>
</div>
The result: I am getting a white space above the bbPress header where the bar should be and the login bar is showing up in that space. But there is no CSS flowing (I changed the buddybar color) and I don’t see any of the buddybar menu items.
Hope this helps those who are newly joining the conversation.
Any further help would be appreciated.
I appreciate your help; I’m not looking for the page to be appended to the profile; I want it to stand alone. This feature is more for entrepreneurs who want to advertise their company, product or services and may want a mini community about it. Not exactly like FB pages, but the idea is similar. And hopefully the people in the community can then search the pages for different companies, etc.
So it’s probably more like a plugin or 3rd party app that can do this.
In terms of the plugin, I’m not looking to pull pages from a blog, I’d like users to be able to create a brand new page and enter the details themselves. The page needs to be associated with a user (meaning the person who creates it), but that’s it in terms of pulling from elsewhere. It’s the equivalent of creating a profile, just for a company, etc.
Probably the best thing to do would be to modify the member profile. The challenge is making it available to users as an option.
Thanks. I had forgotten to add back the div stuff you suggested. After including it, I now have a blank area where the buddy bar should be and it includes part of the login bar (which I added to the buddy bar).
The rest of the buddybar menus are not showing.
But this is major progress.
Thanks to you and Andy and JJJ
@JJJ – you were correct; I wasn’t using the absolute path – I tried your code and got no errors. Many thanks.
@Andy – Thanks for your help also; I tried your code and am no longer getting the error messages.
The challenge: still no buddybar.
Right now I’m using Andy’s code at the top of the bb-config.php. I have the call files in header and footer of the template. It’s just not showing.
Thanks for clarifying this, JJJ. I am hoping to setup the “deep integration” you discussed.
I’m not exactly sure what you mean by including the file correctly. Which file do you mean?
I’m still getting this error, even with the revised syntax/language.
Fatal error: Call to undefined function wp_head() in mysite.com/forums/bb-templates/bbpress-forum/header.php
Not sure what else could be going on. I have the basic integration, in terms of cookies, users, and forums.
I did put the call just before the close of the header and still got the fatal error above.
Just to double check, is this correct code to load WPMU?
[at the top of bb-config.php]
if ( !defined( \’ABSPATH\’ ) ) {
include_once( \’http://mysite.com/wp-load.php\’ );
}
Otherwise, I\’m not sure what else could be wrong.
YESSSSS!!!!!
Thank you so much. It worked perfectly!
Okay, I read the codex on the function, but cannot seem to get the syntax right. This is the sample code from another buddypress thread:
function my_help_link(){
?>
- Help
<ul class=”your-ul-list-css-classname”>
- Help 1
<li class=”alt”>Help 2
- Help 3
<li class=”alt”>Help 4
- Help 5
<?php
}
add_action( ‘bp_adminbar_menus’, ‘my_help_link’, 14 );
[Here with formatting: http://pastie.org/451047%5D
I cannot figure out where to add the if (is_user_logged_in()) {} function.
Oh! I didn’t know I could click on that.
Thanks so much, JJJ.
Thanks; I am not sure how to use that function. Is there a site I can visit or another thread with the syntax and details?
And it seems like I should add the function to my add-on menus. Is that correct?
Sorry for the bump, but can anyone answer this?
Okay, I finally found a thread that I think has the answer, so I am posting this just to check:
Over at the bbPress forums, it was suggested to add the code below to the beginning of the bb-config.php file:
if ( !defined( ‘ABSPATH’ ) ) {
include_once( ‘/Full/Path/To/wp-load.php’ );
}
I have added that per the instructions and also included the suggested code in the footer of my template. Still not getting anything in terms of a buddybar, but did not see any errors.
When I also added the header code in, I got this error:
Fatal error: Call to undefined function wp_head() in mysite.com/forums/bb-templates/bbpress-forum/header.php
Any ideas as to how to fix this?
So far, I’ve been able to integrate buddypress and bbPress.
My question involves this whole “deep integration” thing. I’ve scoured the forums on bbpress.org and mu.wordpress.org, but have not found anything that relates directly to running WPMU within bbpress.
Anyone know of a thread or have information on how to arrange this “deep integration?”
thx
Thanks for this information. I do have integration between buddypress and bbPress, such that my users, group forums, and logins, work seamlessly between the two programs.
I have not been able to understand what deep integration means in terms of WPMU + Buddypress + bbPress, and I’ve even gone over to the bbpress.org and mu.wordpress.org forums. Mostly because the program versions are all so different and the forums are often 1-2 years old that I can’t really gauge what procedures I should follow for WPMU 2.7.1, BP 1.0, bbP 1.0 alpha 6.
If you could point me to a thread that discusses deep integration between these three versions (whatever is close enough), or a thread on how to load WPMU in bbPress, I would appreciate it. Then I can implement your instructions.
Thanks!
@Renzokuomo
I’m not sure what you mean. I followed the link and it was a topic with only one entry and didn’t really have an answer.
I’m looking to add the bp-admin-bar the bbPress, so I need something that will cause bbpress to recognize buddypress so I can get the bar to show up. I have the php code; the problem is getting it to show.
I appreciate your help, though.
Thanks for that. I’ll give it a try!
Just the custom items. I want the rest of the buddybar (Login, Signup, etc.) to be visible to non-logged in users.
Am checking with my webhost regarding the allowance of outbound connections. That should resolve this.
Good point abt the IP address. I’ll put in the request to my host and see what happens.
- Help