Not sure where things go either. I wish to integrate the forum into existing WP blog (more on this later) so I have common registered users, similar look, and I can easily go back and forth from blog to forum.
Blog resides here = mydomain.com/blog
or another way = public_html/blog
I am going to change the folder name of “bbpress” to “forum” so I position just like blog rather than “inside” blog.
mydomain.com/forum
public_html/forum
Right?
I’m translating bbpress to spanish (using a custom mo file) and so far there are 3 phrases that I can’t translate;
In topic view I can’t translate;
” You must log in to post. “
” Posted 2 weeks ago # ” (in this case “weeks” appears translated but not the rest of the phrase)
” Allowed markup: a blockquote br code em strong ul ol li img.
Put code in between backticks
. “
I can’t locate them, where ca I find them so I can hand translate? or what do you need to put in the .po file so it works?
First a quick tip: when you customise templates with a plugin function embeded, instead of this:
<? show_blah(); ?>
do this:
<? if (function_exists('show_blah')) { show_blah();} ?>
and that way if you deactivate a plugin, it will fail quietly and let the page still render.
Now to address your problem, that error can happen if something is trying to call bb_get_header before bbpress is completely loaded somehow. Or an include could accidentally get renamed. Or some whitespace got inserted at the end of a plugin somewhere (after the ending ?>)
You need more info. Go into your config.php and add this as the first line or so:
error_reporting(E_ALL);
And see what it throws at you.
That’s exactly right about Dreamhost.
I am working on a technique to try to load all the bbpress includes and plugins directly from the eaccelerator memcache instead of seeking on the disk first to check if they have changed (and just let the mysql plugins registry manage that).
I suspect I can eliminate the 400ms lag if I can pull that off. Not an easy feat though. Requires a replacement bb-settings.php
Oh and you’re probably paying per month for your dedicated what I pay per year for my VPS (I’ve migrated twice to get better neighbors):
=== benchmark & query results ===
12:08:28 up 25 days, 3:37, 0 users, load average: 0.07, 0.04, 0.00
total page time: 0.045 seconds.
time to reach each section:
bb_underscore_plugins_loaded = 0.005
bb-polls.php loaded = 0.005
bb-signatures.php loaded = 0.005
report-post.php loaded = 0.006
my-views.php loaded = 0.006
bb-topic-views.php loaded = 0.006
user-topics-to-favorites.php loaded = 0.006
admin-post-anything.php loaded = 0.006
tweaks.php loaded = 0.006
my-views-most-least-views.php loaded = 0.007
my-views-started-participated-topics.php loaded = 0.008
my-views-installed-available-plugins.php loaded = 0.008
ignore-member.php loaded = 0.009
bb_plugins_loaded = 0.009
bb_init = 0.011
bb_index.php_pre_db = 0.011
bb_index.php = 0.016
front-page.php = 0.016
header.php = 0.017
logged-in.php = 0.018
footer.php = 0.045
time to render page: 0.0429 seconds (query time subtracted)
total query count: 12
total query time: 0.0021 seconds
slowest call was # 1 : 0.0005 seconds
SELECT * FROM bb_forums LIMIT 1 server:dbh_local connect: 0.38ms
I’ve got μ loaded through the config.php file. I’ll look into some of the μ functions and see what I can do.
I don’t think that trk_addDefaultRole function is being called from bb_new_user at all. Is there a way I can test to see if it is?
I don’t know why nothing would happen, but I’d advise you to use the API instead of a db query. If μ isn’t already loaded when you load bb, it might be good to load it when someone registers and use a μ function to set their role instead.
Sorry for the duplicate post, I think I was tired when I posted the other one and I’d sort of forgot about it.
Anyways, I’ve been playing with the two bits of code and I think I’ve ‘almost’ got it working. If I execute Detectives query manually from the terminal it works, but for some reason when I put it all in a little plugin nothing happens. Is there a type-o or a noob error somewhere?
`<?php
/*
Plugin Name: bbpress wpmu default role
*/
function trk_addDefaultRole($user_id) {
global $bbdb;
$bbdb->query(“INSERT INTO wp_usermeta ( user_id, meta_key, meta_value ) VALUES ( ‘$user_id’, ‘wp_1_capabilities’, ‘a:1:{s:10:”subscriber”;b:1;}’ )”);
}
add_action(‘bb_new_user’, ‘trk_addDefaultRole’);
?>
Got a bit of a weird error happening – Let me begin
Yesterday I did a bit of work sorting out my quite frankly flaky forums – Got everything working quite nicely but then I decided to remove the Avatar Upload plugin because I couldn’t get it looking nice against the users in the forums in the time I had left
However having turned it off I then found I couldn’t access any of the user profile pages including my own – I just get a completely blank page
I’ve removed the calls to show the avatar on the profile page itself but its still falling over
The site error log is reporting the following:
[Wed Aug 15 04:24:42 2007] [error] [client 86.158.248.246] PHP Fatal error: Call to undefined function bb_get_header() in /home/httpd/vhosts/<sitename>/httpdocs/forums/profile.php on line 1, referer: http://<sitename>/forums/
Now I know that this simply isn’t true – bb_get_header() is part of the core and its more likely that one of the plugins has gone screwy but I’ve tried turning off the plugins but I’ve done quite a bit of customisation and the majority of the plugins don’t die quietly – they cause major blow-outs if not available so I’m now having to go through all my template code and put if blocks around them to stop them
The list of plugins I have installed are as follows
Limit Latest Discussion 0.73
Simple Onlinelist 1.5
My Views 0.05
BBPress Private Messaging 0.80
Posts since last visit 0.5-beta
Report Post 0.11
Avatar Upload 0.8.2
Private Forums 5.2
Use Display Name 0.7.2
bbPress signatures 0.14
My Views module – Started/Participated Topics 0.05
Any help would be really appreciated
Yeah dreamhost certainly does suck. I just have a $20 per year promo account that I completely forgot about until recently when I wanted to test bbpress on various hosts (I’m looking for other super cheap hosts to try it on if you know of any, especially pay-as-you go like nearlyfreespeech.net)
What’s really strange is that some other forum software works MUCH faster on dreamhost and I am trying to figure out why. Take a look at WP plugin author GamerZ’s SMF (simple machines forum, evolved from YaBB) which is on another Dreamhost node:
http://forums.lesterchan.net
It’s incredibly responsive. Not even running an opcode cache. Of course SMF has half a decade of development behind it, but still, it’s impressive. I suspect they use partial page caching somehow. Meanwhile GamerZ’s WP blog running on the same account, crawls at times.
I would imagine that since no one answered the first time, you won’t get much more on a duplicate type thread…..
Trent
As everyone knows, if a user registers in bbpress instead of through wordpress(mu) that user doesn’t get a default role set.
I’ve dug and dug on both the bbpress and wpmu forums and haven’t found a fix for this. I did find a fix that apparently works for wordpress, but I tried it for wordpress mu with no luck.
The 4th post in this thread explains a way to set roles in wordpress mu.
I imagine that a plugin with the combination of the two solutions would allow users to register through bbpress and get a default role on the main wordpress mu blog. But, unfortunately I have no clue what I’m doing. If anyone has a free minute or two to look at the bits of code and maybe hack something together that would be awesome.
Oh, and I’m using the latest versions of both bbpress and wpmu.
This is interesting… because bbpress loads the plugins in order, the bb-benchmark plugin is getting loaded nearly last on my system, so I only see the output from the onlinelist plugin.
It looks like the vast majority of the execution time is before the plugins even get loaded.
Oh sorry I forgot to update you (check the extend area from time to time) but I released it like a week ago…
https://bbpress.org/plugins/topic/62
I’ve put 0.16 into the SVN, I think it updates on the hour.
Once you have 0.16 installed, go edit bb-settings.php in the bbpress root and around line 157 change that section so you add the line bb_benchmark_template_timer('',$plugin.' loaded');
like so:
if ( $plugins = bb_get_option( 'active_plugins' ) )
foreach ( (array) $plugins as $plugin ) {
if ( file_exists(BBPLUGINDIR . $plugin) ) {
require( BBPLUGINDIR . $plugin );
bb_benchmark_template_timer('',$plugin.' loaded');
} }
do_action( 'bb_plugins_loaded' );
unset($plugins, $plugin);
.
That will give you the super detailed output, so if there is a single plugin that is consistently slowing your page load down, you might be able to spot it.
Oh and bbPress’s (and WordPress’s) biggest weakness is not mysql queries – it’s actually all the plugins loading.
Unless you use an opcode cache or have really good disk caching on your host, loading a dozen or more plugins can cause those longer delays.
If you are on a VPS, you need eaccelerator or some other opcode cache. A few shared hosts like dreamhost let you install your own copy of php+fastcgi and eaccelerator too (but I do not recommend DreamHost, quite the opposite).
Cool…
(still waiting for the theme franzy that came with wordpress – to arrive at bbpress)
Hmmm I’m trying to make use of this plugin but I’m having some issues – The plugin shows up in the admin and I have enabled it and pulled down the latest list of plugins available – No problems there..
However, when I try to install a plugin off the list – it creates the appropriate directory and informs me that the plugin has been installed but when I go to activate it – I don’t see it in the plugin list and when I check the contents of the directory – its empty – the permissions on the directory are set to 755
Anyone any ideas?
Wow… I really love the topic pages, just incredible.
This is not my site but I just saw it and was very impressed!
http://cairoshell.com/forum/
My eyes LOVE the colours. I wish I had a WP theme just like it (oh and they seem to be using my Signatures plugin!)
So I guess you want a converter? Or what?
If it is a converter you want, you’re out of luck because there are very few and I haven’t seen or found one for PHP Fusion. If you want to write your own and have a problem, people here can probably help.
All I want is my members transferred to BBPress from my forums. Thanks
.
Check out the bbMenu plugin, it adds a menu to you bbPress. Don’t think it works with rtl, but perhaps you can convert the normal css (see plugin) to the rtl css
The plugin:
https://bbpress.org/forums/topic/bbmenu-12-released?replies=6
And to add a tab:
https://bbpress.org/forums/topic/plugin-addmenutab-10?replies=1
If any changes are needed in the rtl css and you make it work, let me know
I didnt know i cant leave email address on this forum, sorry about that. Now i need someone who can integrate BBpress to my existing portal. Any takers…?