Where can the above code be stuffed, _ck_?
Won’t be changing the domain name, just moving to a new host – but for the time being, the domain name will change temporarily.
Unfortunately I couldn’t find any import/export plugins, and I searched for them again just now… was hoping for a more fail-safe solution than exporting and importing the databases
Jorja Fox: Online and the Forums are finally done.
I’ve had the blog up for a couple years (it got taken down and revamped when it crashed my server with bad code and bad bandwidth usage). No ‘hacks’ involved, though I did tweak some plugins.
Using:
- Akismet
- Allow Images (commented out two lines to allow for images without blowing up code)
- Bad Behavior (the generic file provided by the creator, with a plugin header added to allow it to be pluggable)
- bbPress Smilies
- Comment Quicktags for bbPress (added in my spoiler tags)
- Mass Edit – Moderate Posts
- Spoiler Tags
- Unread Posts
The design is based on the Dignity Theme, and then hacked to kingdom come to make it, among other things, variable width.
Actually it’s
Options +MultiViews
note the plus.
But multiviews is not the preferered way of doing it and some hosts don’t support multiviews.
Instead, use the method in step #3
Oh and most importantly,
$bb->mod_rewrite = true;
will only do numbers.
$bb->mod_rewrite = "slugs";
does the full topic title.
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.