Search Results for 'bbpress'
-
AuthorSearch Results
-
July 21, 2007 at 4:13 am #59297
In reply to: front page takes 50 mysql queries
_ck_
ParticipantActually he can’t really “fix” the plugin, it’s an overall integration failure which necessarily adds more mysql queries (just like the plugin needed to allow spaces adds more overhead).
Basically the output template will HAVE to use a difference function call than the “use display name” which fixes it everywhere else before it’s written back to the database.
It’s the cost of integration and yet another example of why bbpress isn’t magically better than any other forum for integration with wordpress.
(or just use my workaround to cut out the extra queries

ps. “mdawaffle” wasn’t a “dig” – isn’t that his nickname?
July 21, 2007 at 4:01 am #59316_ck_
ParticipantYup this is another area where bbpress has to be fixed before it hits the mainstream (or before the mainstream will adopt it).
If you are using it with wordpress, for now you can route all the login/register links to wordpress which does a better job.
I discovered this by accident from the plugin that email favorites which I then had to hack directly to fix.
I’ll open a ticket in trac if there isn’t one already.
July 21, 2007 at 1:11 am #59230In reply to: Plugin: Plugin browser for bbPress
Sam Bauers
ParticipantI’ve updated the plugin to version 0.1.5 which adds support for plugins with sub-directories.
July 20, 2007 at 11:11 pm #2143sam_a
MemberI know the emails have to come from somewhere, but still… this was surprise.
Could there be a notice somewhere that the admin email is used to send every registration notification? Spambots are getting it too

I had expected that bbPress would use it only to send notifications to the admin.
crowspeaker
Memberfel,
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.
July 20, 2007 at 6:57 pm #59261In reply to: let’s build a poll plugin!
Sam Bauers
Participant> bbPress needs some serious options fast if it’s going to hit critical mass and attract additional quality programmers.
What’s the rush?
July 20, 2007 at 6:44 pm #59279In reply to: plugin idea: wiki post (group editable post)
_ck_
ParticipantAh 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.
July 20, 2007 at 6:21 pm #59293In reply to: front page takes 50 mysql queries
_ck_
ParticipantHmm. 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.
July 20, 2007 at 6:12 pm #59310In reply to: Noobish CSS Question
Andrew
MemberThanks. 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.
July 20, 2007 at 5:05 pm #59229In reply to: Plugin: Plugin browser for bbPress
Sam Bauers
ParticipantJuly 20, 2007 at 3:33 pm #59288In reply to: front page takes 50 mysql queries
_ck_
ParticipantEek – 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.
July 20, 2007 at 2:15 pm #59228In reply to: Plugin: Plugin browser for bbPress
so1o
Participanti dont see any plugins in the list either.. i dont have any other plugin except this one..
am i doing something wrong!
July 20, 2007 at 2:12 pm #59260In reply to: let’s build a poll plugin!
_ck_
ParticipantYou 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
July 20, 2007 at 12:45 pm #59210In reply to: Help with an if/then statement
outchy
Membersweet, 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?
July 20, 2007 at 11:19 am #59257In reply to: let’s build a poll plugin!
_ck_
ParticipantEr, 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.
July 20, 2007 at 11:09 am #59277In reply to: plugin idea: wiki post (group editable post)
_ck_
ParticipantYes 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.
July 20, 2007 at 10:30 am #59284In reply to: Bug in register-success.php?
fel64
MemberJuly 20, 2007 at 10:22 am #56713In reply to: Plugin: Avatar Upload
LMD
ParticipantHi, 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?
July 20, 2007 at 8:35 am #59287In reply to: front page takes 50 mysql queries
_ck_
ParticipantAh 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');
?>July 20, 2007 at 8:25 am #59286In reply to: permalinks with trailing slash
_ck_
ParticipantIf 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
July 20, 2007 at 6:49 am #2136Topic: front page takes 50 mysql queries
in forum Troubleshooting_ck_
ParticipantCan 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…
July 20, 2007 at 2:57 am #2132Topic: plugin idea: wiki post (group editable post)
in forum Plugins_ck_
ParticipantYou 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.
July 20, 2007 at 2:53 am #59255In reply to: let’s build a poll plugin!
_ck_
ParticipantWell 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.
July 20, 2007 at 2:00 am #59227In reply to: Plugin: Plugin browser for bbPress
Sam Bauers
ParticipantPrivate 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.
July 20, 2007 at 1:56 am #59226In reply to: Plugin: Plugin browser for bbPress
Sam Bauers
ParticipantThat’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?
-
AuthorSearch Results