fel,
I’ve installed brand new version of WP and BBP and am running then locally. The only plugins I have activated are (in WP) BBSync and BBPress Integration. I also have WP integration running in BBP.
However, it never actually seems to post anything. WP posts the new blog post, but the topic is not created in the forum.
> bbPress needs some serious options fast if it’s going to hit critical mass and attract additional quality programmers.
What’s the rush?
Ah I have another idea that would allow it to use the regular post editor and all it’s features/hooks.
bbpress won’t display any post normally that doesn’t have a status of 0. “1” is deleted. But something like 9 could be the wikipost for the topic. That way even older topics could get a wikipost. All we have to do is check for a post status of 9 with the topic id and if so, display it after the topic summary on top. Hook it to show an edit button that works for any subscriber (or maybe a level setting so only mods, etc can edit it) and of course a button within the topic summary to start a wikipost if there is no post with a status of “9”.
Too exhausted to start on this project this week but will look at it next. If anyone wants to have a go at it, please do.
Hmm. Well I don’t think it’s an old theme but it might be another plugin hooking topic_last_poster(). I will have to dig.
Also, how many forums + topics are you showing on your front page?
I’ve got 8 forums and 35 topics with roughly 20 unique last poster usernames on the front page.
Not that it really matters, if you are only hitting 11 queries than it’s still quite efficient. What’s funny is it could be single digit queries except that bbpress tests that it exists by hitting the database with a useless query every time it starts.
Thanks. Someone else contacted me with another fix.
add this
<div style=”clear:both;”></div>
just before the end of wrapper div.. before this
</div>
<div
id=”footer”>
<p>Nyquist Forums is proudly powered by <a
href=”http://bbpress.org”>bbPress.</p
>
</div>
There are more topics but they are private.
@so1o
Did you update the list? That’s the first step.
Be patient though, it can take a while.
Eek – I’m kinda freaked out by how bbpress handles front page topics and appends the last poster’s name.
Two separate mysql queries are made for each name to get the data. Instead of retrieving the sequence of names all at once so it’s within the same table for speed. So if you have 50 front page topics with 50 different authors, beyond all the other queries will be 100 more queries.
That’s got to be addressed if bbpress wants to call itself lightweight and efficient. All those names could be gotten with two built up calls, regardless how many on the front page.
i dont see any plugins in the list either.. i dont have any other plugin except this one..
am i doing something wrong!
You mean the one by GamerZ S010?
I’ve watched him improve that over the past year or two, actually sent some bug fixes and improvements. Still doesn’t do quite everything I’ve seen in other advanced polls but he’s got the multi-vote option so that’s good.
It uses the metadata so it would be fairly easy to convert, the only problem is his creation and management menus are all meant for the admin interface so a new creation routing would have to be written for the regular user interface. Then there is the problem of the trigger and attachment. I guess it gets attached to the topic-info box.
Now if we could only get him to switch from simple machines forum to bbpress we’d have a shedload of new bbpress plugins within a month
sweet, thanks.
now the only one i’m getting hung up on is the “add new topic” page because the page url is http://www.example.com/bbpress/?new=1 and i can’t see which page that actually is referring to (i can usually see something like “/topic.php?id=35&page&replies=2” in the url to know what page to edit. i know the actual form itself resides in post-form.php but the <h2> i’m trying to alter isn’t actually in that file. same goes with the line breaks before it, they would go in the same place.
i can see where it is in the template-functions.php:
elseif ( is_bb_tag() || is_front() )
$h2 = __(‘Add New Topic’);
i simply can’t find it elsewhere in the code and i’m going mad and blind!
all your help is much appreciated.
ps: one more thing! do you know where would i change the “you must log in to post” text?
Er, okay. I don’t follow. Are you making one then?
Or are you just rubbishing my idea of porting one of hundreds of existing php polling programs (a dozen for wordpress alone) to save weeks of development and bug squashing?
bbPress needs some serious options fast if it’s going to hit critical mass and attract additional quality programmers. I just want to see a decent polling feature added as soon as reasonable possible.
Yes but how would i use the editing edit post template without having to recreate a post editor, etc.
Oh wait, you mean to create it as the 2nd message when a new topic is created. Old topics would not be able to have a wiki post.
Hmm.
If only bbpress actually obeyed post_position, there would be so many nice tricks that would be so easy to do. Argh.
Thanks for posting it here anyway
bugs go on trac for fixing, and this particular one’s already been addressed. I can’t tell if it went into the latest version (.8.2.1) or not but it should be fixed in trunk.
Hi, the error you are reporting appears to be a problem with the bbPress core code, specifically the user ‘capabilities’ class.
Have I understood this correct:
– You are using the latest bbPress version (0.8.2.1) ?
– The error only appeared AFTER you upgraded to the latest Avatar Upload plugin to version (0.6.2)?
– Does the error appear on EVERY page, or just the Avatar Upload template in the profile area?
Ah I totally forgot I’ve got visitor tracking which adds some calls but doesn’t explain why it’s more than a dozen calls by design.
If anyone’s interested, I’ve ported the “query diagnostics” plugin from wordpress so you can see each mysql call used, hidden as a report at the end of each page (for administrators).
<?php
/*
Plugin Name: bb-benchmark
Plugin URI: http://CKon.WordPress.com
Version: 0.10
Description: Prints simple benchmarks and mysql diagnostics, hidden in page footers.
based on Jerome Lavigne's Query Diagnostics for WordPress http://vapourtrails.ca/wp-plugins
Author: _ck_
Author URI: http://CKon.WordPress.com
*/
/* INSTRUCTIONS:
1. add this line to your bbpress config.php file: @define('SAVEQUERIES', true);
2. install & activate plugin
3. do a "view source" on any bbpress page to see hidden results at bottom
*/
function bb_benchmark_output() {
if (bb_current_user_can( 'administrate' ) ) :
if (SAVEQUERIES) :
global $bbdb;
echo "<!-- n === benchmark & query results === n ";
while($qposition < $bbdb->num_queries){
$qsubtime=$bbdb->queries[$qposition][1];
if ($qsubtime>$qmaxtime) {$qmaxtime=$qsubtime;$qmaxquery=$bbdb->queries[$qposition][0];}
$qtotal += $qsubtime;
$qposition++;
}
$timer_stop=bb_timer_stop(0);
echo @shell_exec("uptime")."n";
echo "query count: ".$bbdb->num_queries." nn";
echo "total query time: ".round($qtotal,4)." seconds nn";
echo "total page time: ".round($timer_stop,4)." seconds.nn";
echo "page render difference: ".(round($timer_stop-$qtotal,4))." seconds nn";
echo "slowest call was: ".$qmaxquery."n at ".round($qmaxtime,4)." seconds nn";
if (phpversion() >5.0 && function_exists(memory_get_peak_usage()) && function_exists(memory_get_usage())) {
echo "nn === memory usage === n";
echo "peak memory ".memory_get_peak_usage()." nn";
echo "total memory ".memory_get_usage()." nn";
}
// echo "nn === resource usage === n";
// print_r (getrusage());
echo "nn === mysql queries used === n";
print_r($bbdb->queries);
echo "-->";
endif;
endif;
}
add_action('bb_foot', 'bb_benchmark_output');
?>
If it makes you feel any better, wordpress doesn’t deal with it well either.
I have to trick it into enforcing trailing slashes like this:
RewriteCond %{REQUEST_FILENAME} !-f
# RewriteCond %{REQUEST_URI} !..+$
RewriteCond %{REQUEST_URI} !/$
RewriteRule (.*) $1/ [R=301,L,QSA]
and that doesn’t even work half the time depending on what other htaccess trickery I’ve got going on
But I notice if I have slugs turned on in bbpress, it will remove the trailing slash always. If I have slugs turned off, it won’t tolerate a trailing slash at all and will 404
I did manage to get the topmost rss feed to tolerate slash or not using this obvious mod
RewriteRule ^rss(/|)$ /forums/rss.php [L,QSA]
One thing that is important to do in bbpress vs how it’s typically done in wordpress, is not re-use/re-load the bbpress core engine if there is a redirect (which doubles the mysql calls) but to try to do it through htaccess
Can anyone tell me what the standard number of queries for the front page are on a default install of bbpress?
I think mine are high because of my template hack for the latest reply link. (added: nope, tried removing it and no query reduction)
There has to be a way to cache that and reduce the number of calls by pre-fetching all the links for all the topics to be listed, instead of doing one call at a time…
You know how some forums have a post at or near the top of each thread that can be edited by any member to share collective info?
What do you think would be the best approach to implimenting that in bbpress?
Maybe create a new post in the topic id and push the other post id’s down and affect the timestamp so bbpress shows it on top?
Or should it be a seperate table that is inserted with the topic summary at the top of each page?
The tricky part is getting it to display and be editable by all users.
Well I don’t like to re-invent the wheel if it’s been done.
Many times there are lots of little things you don’t think about when you try to build something from scratch vs convert a program that’s had years of development and on it’s 3rd generation.
It’s far enough work at times to make things work with bbpress. I’ve already spent half a dozen hours this month tracking down subtle bugs in other people’s plugins.
But if you want to try to make one from scratch I’ll do what I can though I am not a professional programmer by any means.
Private messaging doesn’t show up because there is nothing in the trunk. There are only tags. If the author just copies the latest tagged version to the trunk then it will show up too.
@louisedade
That’s always going to be a problem. I haven’t looked closely at all plugins, but I do find that a lot of those that require extra fiddling in templates and what-not don’t actually need to work that way. They often just aren’t taking advantage of the various API hooks a lot of the time. Perhaps one like your avatar plugin that has to create folders etc. could do so using a post-install script, maybe even one that is triggered from the plugin’s admin page?
I’m not sure if this is a bug, or just something I have wrong, but my husband noticed it right away. I missed it even though I’ve been working with bbPress for several weeks and have installed it on three different sites! LOL
Anyhow, it’s a relatively minor issue, but has anyone seen this?
When a user registers, the success message reads “Your registration as was successful…”. I thought it was a simple typo, but when I looked at the code it goes like this:
<?php printf(__('Your registration as <strong>%s</strong> was successful. Within a few minutes you should receive an email with your password.'), $user_login) ?>
BTW, I have the same result when I register on this support forum. I think the main issue is that the variable $user_login, created in register.php, is no longer available after bb_load_template( 'register-success.php' );.
Does anyone know if there is a variable containing this info? Since the user is not logged in at that time, I can’t use any of the current user info. As I said, this is quite minor – the success message would be almost as good without the user login ID in there.
eh, sorry I was trying to say: “I’m not going to modify a production core”
yes, I’m not giong to modify a core
buh – do I misunderstand you? You just modified a core file. template-tags.php is as core as anything else.
But yes, submitting this as a feature request on trac I think is a good idea.
Hey all, I’m trying to commit a plugin I built and failing. Any help would be appreciated.
I’m using the command-line client, version 1.4.2. This is the sequence I’m doing:
> svn co http://plugins-svn.bbpress.org/textile/
bbpress-textile
A bbpress-textile/trunk
A bbpress-textile/branches
A bbpress-textile/tags
Checked out revision 506.
( finder: copy my files from the bbpress directory
I initially developed them in to bbpress-textile/trunk )
> cd bbpress-textile/trunk
> ls
readme.txt textile textile.php
> svn add *
A readme.txt
A textile
A textile/classTextile.php
A textile.php
> svn ci -m "Initial commit." --username egypturnash
--password [REDACTED]
Adding trunk/readme.txt
svn: Commit failed (details follow):
svn: CHECKOUT of '/!svn/ver/490/textile/trunk':
403 Forbidden (http://plugins-svn.bbpress.org)
…and then I’m left puzzled, since I’m not _trying_ to do a checkout. I’ve fiddled with subversion on my local machine, but never tried doing a remote commit with it. Any suggestions? I get the same error if I try doing it up in the main source-controlled directory.
(And yes, I did get the email saying my plugin hosting request has been approved. *grin*)