Hi all!
I’m trying to use a horizontal userbar from BP on a WordPress theme. I’m using the P2-theme (ajaxified twittering) as the “front page” and BP for other social activities.. Instead of using some navigation (forum, blog, etc) I’m only using the userbar from the BP-theme bpmember.
When using the code from userbar.php
<div id="userbar">
<ul id="bp-nav">
<?php bp_get_nav() ?>
</div>
in the header.php in the wordpress theme I’m not seeing the proper userbar (and the optionsbar isn’t showing at all).
Am I on the right track? Is it possible to call on bp_get_nav within WordPress?
I’ve called on the functions.php from bpmember-theme and also templatetags.php:
include_once (TEMPLATEPATH . "/root/wp-content/plugins/buddypress/bpcore/bp-core-templatetags.php");
I’ve placed the /images/ at both places (at wp-theme from bp-theme).
What am I missing or is this simply not possible?
This is a vanilla install of the latest WPMU + BP. No strange custom bp functions.
Would really like some pointers!
If this is impossible can I somehow get a proper URL for a loged in user to different location? This is a work around. Proper url: root/members/***NAME***/profile. Is it possible to give some hardcoded link to that place? I could rewrite the navigationbar and use that instead.
//Tore (I’ve really searched the forums for info on this)
Hello-
I would like to change the colors a bit on my Mumblepage. Where is the css or stylsheet location and how would I be able to do this without breaking it? I had done this before in the wordpress but cant see where in the buddypress.
Many thanks again!
-Mumbler
I have WPMU setup in the root, but wanted to have the “community” page on a different page as well.
Here’s what I did:
- Create a new WordPress page template with the BP widget toolbar calls in it.
- Create a new WordPress page and apply the page template you created in step #1.
- Add BP widgets to the BP widget toolbar.
That should be it!
There isn’t. The Dashboard on this site is a custom page, and is nothing to do with the WordPress admin backend.
Regular WordPress pages have something like this in the body tag:
page-template-contact-php
In this case, the template page contact.php. I can use that in CSS to set the Contact menu button to ‘current/active page’.
The members, groups and blogs sections in Buddypress all have only this in the body tag:
class=”directory”
How can I add a section identifier to that body tag? So I get something like this:
class=”directory members”
Which piece of code adds the class to the regular WordPress pages? Could I use a modified version of the code for Buddypress sections? Can I fix it in the template or do I have to hack core files?
Or are there other ways to set a menu button to active? I’ve looked at Javascripts, but couldn’t get anything to work. I prefer a CSS solution.
I would like to use the “BuddyPress Default Home Theme” on a different directory than root, such as http://www.example.com/community/ and leave my front page with my current blog template. Is this possible?
I tried installing another blog on /community/ and using the BP Home Theme there but it did not work since all the Buddy Press URLs are now relative to that directory.
Sorry if this is a lame question, im new to BP and WordPress MU in general!
Thanks!
Well we know that within the next 6 months, mu and wordpress will eventually combine. At that point, it would be safe to bet that buddypress will work with both the multi-user as well as the single user (both will be the same)
List version numbers of buddypress, wordpress mu, and bbpress.
I believe this means that the mysql query wasn’t understood or the answer was blank (empty) and it didn’t know what to do with it.
I saw this error in my error_log file (about 10 times), can someone please tell me what the problem is?
WordPress database error Query was empty for query made by require, require_once, do_action, call_user_func_array, bp_core_do_catch_uri, load_template, require_once, bp_edit_profile_form, xprofile_edit, BP_XProfile_ProfileData->save
Got helped in the wpmu forum. I would need a wpmu plugin to do what I want.
Oh there is one thing more…
Now I just need to know if BuddyPress can handle these sorts of plugins for example https://wordpress.org/extend/plugins/yet-another-multi-site-manager/ , if not what do I need to do so it can?
Please tell me.
Thanks
I think that’s very much a WPMU issue.
Hi Everyone,
Buddypress wouldn’t let me login with my old name so Catincoach is out and Catinw12 is in.
I posted this question a while back and didn’t get an answer. Is there a way to change the coding so that the link in the message/friend/group invitation email notification goes to http://www.xyxy.com/buddypress/”….”?redirect_to=http://xyxy.com/Buddypress/Buddypress/members/xyzmember/messages/
as opposed to this:
http://xyxy.com/Buddypress/wp-login.php?redirect_to=http://xyxy.com/Buddypress/Buddypress/members/xyzmember/messages/
Ideally, I would like to change the coding in the email notification so that it begins as http://www.xyxy.com/…. but my efforts to find that have been futile.
Is this something for the WordPress MU forum?
Thanks,
Brian
Since you had single-user WordPress installed before, I’d suggest doing a clean install. This means making sure that you delete both the single-user WP and the newly installed WPMU files. Also, delete your MySQL database and start with a new one.
I assume that you do not have any data yet. If that is correct, then you can safely proceed down this road. If you do have important data in the MySQL DB, then you should back it up first.
Also, you should use a separate MySQL DB for WPMU. Do not use the one that you are already using for single-user WP.
Follow these instructions for help on installing WPMU. Make sure you read through all instructions linked below before beginning the install:
- Download BuddyPress from here
- https://codex.buddypress.org/getting-started/installing-wordpress-mu/
- Read the readme.txt file that comes with the WPMU download
Then, once WPMU is installed and functioning properly, follow these instructions for help on installing BuddyPress.
- https://codex.buddypress.org/getting-started/installing-buddypress/
- Read the readme.txt file that comes with the BuddyPress download
The phplist-dual-registration plugin also takes input from registration. It has this function:
function subscribe($input_data) {
if (!wpphplist_check_curl()) {
echo 'CURL library not detected on system. Need to compile php with cURL in order to use this plug-in';
return(0);
}
// $post_data = array();
foreach ($input_data as $varname => $varvalue) {
$post_data[$varname] = $varvalue;
}
// Ensure email is provided
$email = $post_data[$this->email_id];
// $tmp = $_POST['lid'];
// if ($tmp != '') {$lid = $tmp; } //user may override default list ID
if ($email == '') {
echo('You must supply an email address');
return(0);
}
// 3) Login to phplist as admin and save cookie using CURLOPT_COOKIEFILE
// NOTE: Must log in as admin in order to bypass email confirmation
$url = $this->domain . "admin/";
$ch=curl_init();
if (curl_errno($ch)) {
print '<h3 style="color:red">Init Error: ' . curl_error($ch) .' Errno: '. curl_errno($ch) . "</h3>";
return(0);
}
$post_data='action=subscribe&group_ids[]
'.$this->lid.'&email_address='.$this->email_id.'&firstname='.$this->name_id;
Is the $post_data line what I need? Something like this?:
function subscribe($input_data) {
// $post_data = array();
foreach ($input_data as $varname => $varvalue) {
$post_data[$varname] = $varvalue;
}
$email = $post_data[$this->email_id];
$name = $post_data[$this->name_id];
}
And then I could use $email and $name in my function to “do stuff” with?
Or can I use $post_data[$this->email_id] etc. directly? Is that the simple answer to my original question?
Why is the $post_data commented out?! Don’t I need it?
Do I need other pieces to make it work? For which fields would this work; only those from wp_users or xprofile as well? What about custom fields, including the real name/first name/last name mess?
Luc-
Many people have asked the same question. The good news is that there are plans to make BuddyPress compatible with single-user WordPress in the future.
We’re not sure when that will happen, so give it time and keep checking back.
Here’s a very good one. It uses jQuery, which is included in WordPress.
Once you have the javascript and css in place the menu is not dramatically different from what comes with default templates – ul li etc.
If you can build a WordPress theme, building a BuddyPress theme is not very hard – it is just larger.
Hello, I’m creating a classifieds component and I have an important question here…
Actually, I use those urls :
- …/wordpress-mu/classifieds (directory listing)
- …/wordpress-mu/classifieds/test666 (single classified)
- …/wordpress-mu/members/myname/classifieds/my-classifieds (user classifieds)
- …/wordpress-mu/members/myname/classifieds/create (creation)
Now I would like to be more precise for directory listing.
I have three ways of filtering, “browing” classifieds :
- “action” (searching / proposing)
- type (job, services, etc)
- category (garden, computers, etc)
Here’s my question :
How to deal with this for urls ?
e.g;
../wordpress-mu/classifieds/searching/job/computers
should show every classified where
- someone is searched (not “proposes”)
- for a job
- in computers/
[current_component] => classifieds [current_action] => searching [action_variables] => Array ( [0] => job [1] => computers
The problem is that the url could also be
../wordpress-mu/classifieds/job/computers
- (someone is searching or proposing)
- for a job
- in computers/
[current_component] => classifieds [current_action] => job [action_variables] => Array ( [0] => computers
Or just
../wordpress-mu/classifieds/job/computers
- any classifieds related to the computers category
[current_component] => classifieds [current_action] => computers
You know what I mean ?
So.. Have you ideas on how I could build a function to filter my content based on the url given ?
Take all what’s after /classifieds/ (current_action & action_variables), and check the slug for everything to define if it’s an action, a type or a category ?
But that mean a lot of SQL requests…
Of course I could make it like this
../wordpress-mu/classifieds/action/searching/type/job/category/computers, but it will be rather ugly…
Need your advices ! 
Thanks a lot guys !
The idea with the included bphome/bpmember themes is to be a skeleton framework to build off of. It shows how to use all of the included functions and loops in a way that makes the output of each element clear and concise.
It might not be the cleanest theme available, but it’s a great start if you’re learning BP or you need to understand what files do what for what reasons.
In my opinion, an experienced BP developer should be able to create a unique template starting from the bphome/bpmember themes and working outwards, within a few days. There’s no doubt that BP themes are extremely involved, but that’s likely to change as the platform matures and WordPress better supports theme locations and child themes.
Long story short, you’re probably right, but don’t expect the included theme to get much fancier. (Look at WordPress and bbPress for example. Both included original themes are very primitive in their designs.)
Hi all,
Would a CSS designer be easily able to change the present horizontal menus into drop downs? More generally, is building a Buddypress theme more difficult than making one for WordPress?
Thank you
I have to install WordPress MU in the root directory because I want that a domain point to the buddypress blog (/community), so I got the same error. If I install WordPress MU in a folder all works fine but then the visitors see the right url (/net/wp) and not the domain. Could it be that this is a buddypress bug?