timskii, that makes a nice little plugin:
function meta_keywords() {
global $tags;
if (!empty($tags)) {
$keywords="";
foreach ($tags as $t) {$keywords.=$t->raw_tag.', ';}
echo "n".'<meta NAME="keywords" CONTENT="'.trim($keywords,", ").'">'."n";
}
} add_action('bb_head', 'meta_keywords',
;
Then something is not working
I believe 1.0 has 404 support like WP does but the unthemed die page is something I’ve complained about for over a year now to no avail. They just don’t want to add a hook for it so you would have to hack the core to change it unfortunately. It’s really unprofessional.
essentially in functions.php
find function bb_die( $message, $title = '' ) {
and change
bb_install_header( $title );
to
bb_get_header();
then change
bb_install_footer();
to
bb_get_footer();
One easy way for them to solve this is to move bb_die
into pluggable.php
, so Sam if you are reading this?
Hi, there.
I have been able to get numeric pretty permalinks to work on my bbpress site (http://agitainment.com/ics/forum/) but not the name-based permalinks, which is what I’d like to have.
I’m using 1and1 hosting, and I followed the setup at http://bbpress.org/documentation/faq/#pretty-permalinks. I added Options -MultiViews to the top of the code generated by /bb-admin/rewrite-rules.php in my .htaccess file (as detailed at http://bbpress.org/forums/topic/dropping-multiviews-support#post-16050). In addition I have set $bb->mod_rewrite = true in my bb-config.php. My forums are in the same database as WordPress.
Any idea on how to get the name based permalinks working?
Cheers.
You can make my bb-benchmark work on WordPress with a few changes.
Most notably you’d have to add the line:
add_action('wp_footer', 'bb_benchmark_output',999);
if (bb_current_user_can( 'administrate' ) )
you just have to take off the bb_
part and make it current_user_can
Oh and all $bbdb
has to be changed to $wpdb
It won’t be able to calculate the timing between sections until all the hook names are added which unfortunately I don’t have the time right now to lookup. But it will still show you overall times and mysql queries.
You are getting an error with admin_email
because in bbPress 0.9 they decided to change it to from_email
with no support for the old variable (bad move). That plugin obviously never got updated.
That’s better but your query counts are still too high.
Way too high.
You could post the list of queries from bb-benchmark here and I can take a look at what’s causing that.
eAccelerator is probably the way too go.
It’s a tad slower than Xcache but it’s far more stable.
Assuming you are using a 2ghz+ cpu that is only lightly loaded, you should be seeing page render times around 100ms on an optimized setup with proper mysql and php opcode caches.
have a look at the forum now (http://forums.corelan.be:8800)
runs a lot faster now, doesn’t it ?
I have made a couple of changes to the php.ini file :
register_long_arrays=off
output_buffering=4096
variables_order = “GPCS” (still need to verify that this doesn’t break stuff)
disabled
engine=on
closed & saved the file, and php runs must faster now
(windows 2008, IIS7)
Also, one of the plugins that I’m using (EnhancedRegistration) was reporting repeated errors in my php log file
“bbPress ER: Failed to send report”
I looked up the function, replaced the bb_get_option(‘admin_email’) with a static email address, and now the errors went away as well
Not sure whether this has improved the code as well, but it certainly couldn’t hurt, could it
wtih regards to the opcode cache : what would you recommend using ?
By the way, even when we fix the plugin problem, your setup could benefit greatly from a PHP opcode cache (eaccelerator, xcache, APC, etc.) We just have to find one that’s compatible with Windows and IIS which will take some research. It should cut your page times in half, on both bbPress and WordPress.
Here’s one possibility:
http://www.sitebuddy.com/PHP/Accelerators/eAccelerator
That site has pre-built windows binaries for eAccelerator as well as good install directions.
I ‘fixed’ it by commenting out the following lines:
// remove_filter( 'pre_post', 'encode_bad' );
// add_filter( 'pre_post', 'allow_images_encode_bad', 9 );
// add_filter( 'pre_post', 'allow_images', 52 );
Please post a screenshot of your admin screen after you log in and click Admin. There are normally more options than what you’re describing. I think they are “Users”, “Manage” and “Design” on the left, then a couple more on the right (settings and plugins.)
For how to place a link to the forum in your WordPress site, that’s highly dependent on your theme. But a basic html link will normally work, depending on where you’re putting it.
<a href="http://www.example.com/forums/">Forums</a>
If you’re putting it near wp_list_pages, in an unordered list, then it needs to be wrapped in li tags.
<li><a href="http://www.example.com/forums/">Forums</a></li>
Mine is:
http://www.james-blogs.com/forum
Im yet to begin involving the forum deeply into my whole blog, but it’s theme and databased intergrated
I’ve had the same problem and have also “fixed” it by disabling the Allow Images plugin.
I’m going to give the BBcode plugin a go, though if bbPress isn’t going to implement a rich text editor (and I don’t think it should) then a far better solution would be to use a lightweight markup system like Textile and/or Markdown.
Thanks for your help, Chris. Shockingly it didn’t work. I am using bbOrg theme for which there is no rss php file. So I changed the one in kakumei but didnt work. Maybe there is an override built into BBPress, WordPress somewhere else with the exact same code?
Note that I removed it on both my local server bbpress file and my actual live site’s server. Didn’t work in either case.
http://beernews.org/ Look at the left sidebar.
Oh THAT’S what we’re playing!
I thought it was mine’s bigger!
Plugins
- Akismet
- Allow Images
- Bad Behavior
- bbPress Smilies
- Comment Quicktags for bbPress
- Mass Edit – Moderate Posts
- Spoiler Tags
- Unread Posts
And yes, I tried it with them ALL turned off and with ’em turned on.
WP: http://mydomain.org/
bbPress: http://mydomain.org/forum/
Apache version 1.3.41 (Unix)
PHP version 5.2.5
MySQL version 5.0.51a-community
Architecture i686
Operating system Linux
Mine’s longer
I’ve looked everywhere. Mostly BBPress files though…rss.php, some of the functions files, the widgets files
I would expect to see something like <post_author> ” on” <topic_id> somewhere in the php code and be able to delete everything before <topic_id> but not finding it.
Mine : http://www.w3sh.com/forum/
Integrated with WP. no plugins so far
First, I think I would make sure the bbPress version are the same. If they’re not, first backup your MySQL database then upgrade bbPress at your current host. That way you have the same version of the code and the database.
Now, dump the database, paying attention to the MySQL version in case you need to specify any compatibility options for the new host. If the version are close to the same, you’ll be OK just dumping it.
Now that you have the bbPress code at the new server and a dump of the database, just import the old database on the new host, and you should be done.
If the domain name changed, you have a couple more things to worry about. But you didn’t mention that: just a new host.
I just thought I would share my experience with an attempt at an integrated installation. I downloaded WordPress 2.6.3 via svn and then created a directory forum
and downloaded bbPress alpha 2 via svn there. I modified the wp-config.php by hand and installed WordPress just fine. I didn’t do any further configuration of WordPress.
Then I went to install bbPress with an attempt at integration. Things were going along pretty smoothly. (As an aside: I think the installer should tell you when it first asks for the keys that you don’t need to worry about them here if you’re going to be integrating, since you will be entering WordPress keys at a later point. I wasted time generating new keys here which end up being unused.) I selected all the integration settings, but did not use custom user tables. I got to step 3 and it said “Your installation completed with some minor errors. See the error log below for more specific information. ” The error below was “Forum could not be created!” (I’ve had that happen before.)
Since this was a minor error, I figured I would just continue and see how it goes. Clicking the link to my forum results in a Redirect Loop error in Firefox3. The page hangs for a while, never loads, then times out.
I just figured I would share that experience here. If anyone wants more information, please let me know.
I was able to make the links clickable by adding this to the SmallNav CSS:
position: relative;
z-index: 3;
Then I removed the four margin settings. You might have to experiment with the positioning, but this at least makes the links clickable.
To post source code here, just use the backtick (upper left on a US keyboard, under the tilde) before and after your block of code.
I noticed in your forum source there is a link to this style.css which does not exist:
http://www.addiva.net/bbpress/style.css
Not sure if that’s a problem or not, but it’s not right. In addition, you should validate your CSS here and fix any problems.
http://jigsaw.w3.org/css-validator/validator
I would start with those things and maybe something will stand out.
Actually, that’s not the way the code looks. I guess there’s no way to get code to read as code here. I guess you’ll just have to take my word for it I’m using standing HTML a href’s to dish up some links.
I’ve copied the same navbar I’m using on WordPress into BBPress, it has hard links, so it should be straightforward, but for some reason, within this header.php file, the links aren’t live.
http://www.addiva.net/bbpress/
The code looks like this:
<div id=”smallNav”>
Home
| Possibilities
| Events
| Blog
| Forum
| Store
About ADDiva
| Meet Linda
|Media
| Resources
| Contact </p>
</div>
<!– end smallNav –>