If anyone is using ‘ Avatar pluginsuleiman, here’s a hack I use to show the WPMU’s avatar in BBPress:
In post.php, after the <small><?php post_author_title(); ?></small>
bit I use the following:
<?php
$userid = get_post_author_id();
$wp_avatar = '/full/path/to/public_html/wp-content/avatars/' .$userid. '.jpg';
$wp_avatarURL = '/wp-content/avatars/' .$userid. '.jpg';
if (file_exists($wp_avatar)) {
echo '<img class="avatar" src="'. $wp_avatarURL.'" />';
}
?>
Probably not the most elegant, but it works:
http://blognola.org/forums
Vincent
Well I think I may pass at doing that one myself. I am working on a much simpler site and am using the DXX theme (my site is http://www.maconcardeals.com ). How would I make this theme work for bbPress? Is it easy? I mean for an ultra rookie?
in wordpress ofcourse yes. in bbpress there is not polish lang file (as i know).
yes i have plugin and js in my-plugins folder. tomorrow i’ll check it in my default.
in my wordpress, in adminpanel i also don’t have quicktags panel in visual mode in my adding post site. may it has something in common with bbpress plugin?
If you have a local computer with windows or a Mac, you can always have the install of WAMP or an install that is similar. Do a search for apache, php and mySQL local windows install in google and you will find that there are many packages out there that can run them on your local computer instead of IIS. Packages like WAMP have all the packages together and a walkthrough on getting them all installed.
As for bbPress and WordPress installation together, I am involved with WP as well and can for sure tell you that they will never be packaged together for a single install unless someone makes their own release of the 2 packages together, but will not happen from Automattic because they are run completely seperate.
Does that help?
Trent
There’s an easier way to do this, just put in the right domain.
//cookies
define('COOKIE_DOMAIN', '.2diabolos.com');
Or
//cookies
define('COOKIE_DOMAIN', 'forum.2diabolos.com');
If you go with the first, in my opinion neater version, you also need to add this to bbPress’ config.php
.
//try to sync cookies
$bb->cookiedomain = '.2diabolos.com';
$bb->cookiepath = '/';
Then clear your cookies, log out and in and see if it works across your site.
I made a plugin that allows you to change wordpress cookie path&domain (and even cookieHash) to suit the need of bbPress.
My configuration was not “simple” :
wordPress : http://www.2diabolos.com/blog
bbPress : forum.2diabolos.com
everything is explained here.
http://www.2diabolos.com/blog/2007/04/06/nouveau-plugin-setcookieparams/
BUT I have a problem :
on my local server (for tests), I tried my plugin.
it works … for bbPress front-page and admin page, but not for topics and other “deeper” pages.
I put “cookie domain == false” (because cookie must not have domain when you are a “local server”, that what I understood from the standard)
I don’t understand why the frontpage appears nicely, and why, when I try to go into a topic, Firefox tells me that the server redirects the request in way that can’t go nowhere. And IE does not achieve anything (I prefer Firefox, it better for debugging…)
Firefox tells it can be a problem with cookie acceptance or desactivation.
I feel that bbPress is making a round (infinite) redirection ….
Moodle, the open source Course Management System (http://www.moodle.org) has put together a package that contains all components needed for a Windows localhost installation (including Apache, MySQL and PHP). The only problem is that it is semi-manual. It would be nice if they would develop an installer that uses, for example, InstallShield, and makes the process automatic. I believe it would be very welcome and helpful for most users if WordPress would do the same for WP and bb and include both packages in the installer with checkboxes to select to install one or the other or both (under a Custom Install option).
BTW will anyone at WordPress see this?
Trent,
In response to the original post by Chenchen you said there are packages out there that meet the minimum requirements. Three questions:
1. Where (please provide source and name)?
2. Do they contain apache, php and mysql?
3. Do they have a mechanism for installing all three components?
Plus a comment that applies to both WP and bb. Moodle, the open source Course Management System (http://www.moodle.org) has put together a package that contains all components needed for a Windows localhost installation. The only problem is that it is semi-manual. It would be nice if they would develop an installer that uses, for example, InstallShield, and makes the process automatic. It would be very welcome and helpful if WordPress would do the same for WP and bb and include both packages in the installer with checkboxes to select to install one or the other or both (under a Custom Install option).
BTW will anyone at WordPress see this?
I just recently installed bbpress integrating it into my wordpress website, and I noticed that, being the key master, I never appear as Last poster in a topic I just added a message too, nor my posts are counted in the totals of the main forums summary page.
Is this intended? And if so, any way to change this behaviour?
Thanks all :>
I use a plugin on my WP site called WP-Ads, which allows me to rotate custom built ads in various places throughout my site. It is very easy to use, but also very robust in what it allows you to do.
Does anyone know of anything similar for bbp? I know how to ad Adsense or something similar, but I need to serve up my own custom built ads for people/companies who have sponsored the site.
Any ideas?
where can i change this forms? how can i add panels, like on the wordpress.org forums (Allowed markup: a blockquote br etc, but in buttons)?
Hey Community,
I am starting up another site, and I am setting up the Latest Discussions Plugin. I have installed and integrated WP & BB. Once I activate the plugin and use the call for the latest discussion on the wordpress page I am given this error:
WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1]
SELECT * FROM topics WHERE topic_status = 0 ORDER BY topic_time DESC LIMIT
Any ideas what might be going on here?
Thanks,
Orion
That is the intended placement for the forums here as well as the other wordpress forums. It can be changed though! I would just edit style.css for this portion:
/* Profile Page
=================================== */
#profile-menu {
}
#profile-menu li {
font-size: 1.1em;
background-color: #eee;
padding: 4px 7px;
display: inline;
border-top: 3px single #9e9e9e;
position: relative;
top: -10px;
}
All I did there was take out the positioning for profile-menu itself so it displays inline and then changed the border of the list items themselves to have a single border on top instead of the double. You can edit that more to get it to look the way you want as well.
That being said, I am leaving it as is because it is the closest to the ‘actual forum’ with the profile menu on the right hand side floating……but this will fix you up!
Trent
I recently upgraded to the latest bbPress version. I was using a plugin which integrated my users with Worpdress previously (and would like to continue to do so).
Something went terribly wrong though on the upgrade. This version is now looking for users in the table bb_users, and it should be looking at the WordPress table. So now I cannot login even as admin because there’s nothing in the bb_users table! I’ve fine working in SQL, and I think all I need to do is add/modify some fields in the bb_users table.
So here’s my question? How can I upgrade the status of a user to administrator in phpMyAdmin? After I login, I can activate the WordPress integration plugin an be all set.
Hi,
As I mentioned in the title I’m a novice to bbPress, but I love WordPress and have been using it for a while now, I’m a total enthousiast when it comes to webdesign and programming (to say I’m not great at it), just the other day I installed the bbPress on the my sub.domain.com and followed the instructions and changed the config files as recommended installed the WP & bb Plugins so that both sites could work seamlessly, somehow somewhere something went wrong, I do see the front page, I do see my WP users in the admin (and I only get there through a admin/meta link if I try to login through bbPress form fields I get an error), I do not see the topics, posts & plugins (even though I have couple of them in my-plugins folder) in the administration and when I click on anything on my front page I get an error like this :
// this one being for forum
“The requested URL /forum/1 was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.”
Did anyone experienced similar, or if not does anyone knows how to deal with this ???
Oh yes, in case you would like to have a look;
http://forum.driftkikker.com
Any input will be great,
Thank you, Daddo
Well WP has it here:
http://wordpress.org/extend/ideas/
Can we get this as a plugin aswell? Would be very handy
Null
I dont see anything in the docs about wp user_meta table having to be specified.
Uhg, Im about to give up. really. It’s been 3 days and it’s just getting worse and worse. Granted, I only have 3 users and 2 blogs right now.. but I’ll be damned if this happens once I start getting ‘real’ users instead of a few friends. No responses on the wordpressMU forum at all so I guess no one there knows what’s going on.
It’s even doing it on newly created users and blogs… so it’s not like the permissions are corrupted.. cause wouldn’t it be brand new and not corrupt when i created a new user?
I’ve tried removing users from blogs and re-adding them, thinking maybe it’d re-write the permissions in the meta-tags. No go.
There is a wordpress plugin that might work out for you. Hopefully no real major changes for WPMU.
https://bbpress.org/plugins/topic/39?replies=3
Trent
I have WordPress 2.1.2 and BBPress 0.8.1. They are (mostly) integrated. BBPress claims that <br>
tags should work but they don’t. They are immediately converted to special characters and show up in the post as they were coded, i.e. “br” inside the brackets.
Also <li>
atrributes (type=disk, circle, blah blah) don’t work. Same problem as above. Any clues?
No. Also, I’ve noticed weird things in my WordPressMU installation. I can’t edit create new categories (“You do not have permission to do that.”) with the stock category editor… but when I down load a Category Manager Plugin, I can. However, none of the other users can – even with the plugin.
To top it all off… I CAN create new categories when logged in as them.. but they can’t.
Im beginning to think bbpress did something to my user tables.
No idea…
I honestly don’t know enough about how bozoing and/or wordpress integration works to help you.
Few people would be running WordPress mu either.
But a new install + new database….. are you still using the old user tables? Does a standalone install not work either? Have you tried different browsers?
Does anyone have any ideas? I’m tearing my hair out here. I was able to create a new user and it appeared in wpmu. It was able to post just fine, the post apears and everything. If I log back in as admin, I cant delete his posts. On front-page.php the admin’s name appears, but when in dashboard it sill comes up as bb_get_user needs a numeric ID
When in the admin account, I promoted the new user to Key Master.. when i log out of the admin account I get the following error:
bbPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1' at line 1]
SELECT * FROM bb_online WHERE user_id = LIMIT 1
The new account, which i made Key Master is also unable to delete any posts – but can post new ones.
The new account cannot see the posts the admin account made, that were showing up in yellow.
Anyone reading this?
/.htaccess
RewriteEngine On
RewriteBase /
# www is soooo deprecated
RewriteCond %{HTTP_HOST} ^www.blognola.org$ [NC]
RewriteRule ^(.*)$ http://blognola.org/$1 [R=301,L]
#uploaded files
RewriteRule ^(.*/)?files/$ index.php [L]
RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file=$2 [L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule . - [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-.*) $2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*.php)$ $2 [L]
RewriteRule . index.php [L]
/forums/config.php
<?php
require_once('/home/nolageek/public_html/wp-blog-header.php');
// ** MySQL settings ** //
define('BBDB_NAME', '
'); // The name of the database
define('BBDB_USER', '
'); // Your MySQL username
define('BBDB_PASSWORD', '
'); // ...and password
define('BBDB_HOST', 'localhost'); // 99% chance you won't need to change this value
// Change the prefix if you want to have multiple forums in a single database.
$bb_table_prefix = 'bb_'; // Only letters, numbers and underscores please!
$bb->domain = 'http://blognola.org'; // Example:
$bb->path = '/forums/';
//bb->mod_rewrite = true;
// What are you going to call me?
$bb->name = 'BLOG NOLA forums';
// This must be set before running the install script.
$bb->admin_email = 'nolageek@gmail.com';
// Set to true if you want pretty permalinks.
$bb->mod_rewrite = true;
// The number of topics that show on each page.
$bb->page_topics = 30;
// A user can edit a post for this many minutes after submitting.
$bb->edit_lock = 60;
// Your timezone offset. Example: -7 for Pacific Daylight Time.
$bb->gmt_offset = -6;
$bb->cookiepath = '/';
$bb->usercookie = 'wordpressuser';
$bb->passcookie = 'wordpresspass';
// Change this to localize bbPress. A corresponding MO file for the
// chosen language must be installed to bb-includes/languages.
// For example, install de.mo to bb-includes/languages and set BBLANG to 'de'
// to enable German language support.
define('BBLANG', '');
// Your Akismet Key. You do not need a key to run bbPress, but if you want to take advantage
// of Akismet's powerful spam blocking, you'll need one. You can get an Akismet key at
// http://wordpress.com/api-keys/
$bb->akismet_key = ''; // Example: '0123456789ab'
// The rest is only useful if you are integrating bbPress with WordPress.
// If you're not, just leave the rest as it is.
$bb->wp_table_prefix = 'wp_'; // WordPress table prefix. Example: 'wp_';
$bb->wp_home = 'http://blognola.org';
$bb->wp_siteurl = 'http://blognola.org';
/* Stop editing */
if ( !defined('BBPATH') )
define('BBPATH', dirname(__FILE__) . '/' );
require_once( BBPATH . 'bb-settings.php' );
?>
I just got finished posting a whole bunch of posts a little while ago. Worked on my theme a bit.. added this to the header, that’s it:
<?php
function w3l_tl_pages($before = '', $after = '', $between = ' ') {
global $wpdb;
$query = "SELECT ID, post_title FROM $wpdb->posts WHERE (post_type = 'page' AND post_status = 'publish' AND post_parent = 0) ORDER BY menu_order";
$pages = $wpdb->get_results($query, ARRAY_A);
$temp_pages = array();
foreach ($pages as $page) {
$temp_pages[] = $before . '<a href="' . get_bloginfo('url') . '/' . get_page_uri($page['ID']) . '">' . $page['post_title'] . '</a> ' . $after;
}
echo implode($between, $temp_pages);
}
?>
This is to get the menu of pages from my wordpress.mu install.
Now, whenever I try to post, after I submit a new topic, it turns yellow and doesn’t not then appear in the discussions list.
I can’t delete ANY posts. Not even old ones.
THe new topics appear in the dashboard under “Recently Moderated” and says this:
Topic titled test post started by bb_get_user needs a numeric ID
Yeah, that is really strange, but yes! Do you have the WordPress integration plugin and the bbPress integration plugin installed? Does clearing your cookies and trying on a different browser work for you?
Trent
A couple of questions about what syntax to use, especially on template pages:
1. I see that a lot of people use _e('string...')
instead of echo('string...')
. Is this just a bbpress/wordpress thing or is this generally acceptable php coding?
2. In front-page.php of kakumei (and many other places), I see people using this shorthand echo where normal text would work just fine. For instance, in the hottags div, it is:
<h2><?php _e('Hot Tags'): ?></h2>
Why would you have PHP echo that when you could just have it as plain ol’ text in the first place? Am I missing something?
I realize neither of these is of any earth-shaking importance, but I would like to know so I can keep my code modifications in line with the default syntax that is used throughout. Thanks!