Forum Replies Created
-
In reply to: Client-side Performance
You can disable all javascripts and things fallback to non-js mode (usually, except in 1.0 I think they broke some things, again)
comment out this line like so in your
header.php
<?php // bb_enqueue_script('topic'); ?>
Everything is being eventually moved to jquery like wordpress.
In reply to: Change Post Author?This would be a good test plugin for my new username-suggest function.
You can’t just have a dropdown of thousands of users.
In reply to: How can I change the word “wanna” with a plugin?Uh, you are talking about text in the core?
Not possible to change via a plugin.
Only thing you could do is use the language translation filters and do an “english to english” translation of the phrases you want to change. Note that it adds some overhead but I guess everything in bbPress does.
There is one other scary method you could use and that would be to capture php’s output buffering and change it on the fly. That would be an extremely ugly workaround.
In reply to: Permanently deleting topics and postsAlso be EXTREMELY careful when tampering with the auto-increment.
If you re-use any topic id # you are guaranteed to break some plugins.
In reply to: Adding a right sidebar to kakumeiSidebar would be done in the header.php or footer.php like it’s done in WordPress usually too.
However if you need wordpress functionality in the sidebar you’ll need to do full integration (which I personally recommend against but many people do anyway).
In reply to: How do you setup pagination?frooyo make sure you upgrade to the very newest version of topics-per-page
it’s tested working fine on 1.0 trunk with both pretty permalinks and regular
In reply to: Why was the bbpress wikipedia page deleted?It’s just wikipedia politics and someone wants to feel like they have power.
I would guess once Matt starts promoting bbPress on WordPress.org/com you’ll see the page restored as bbPress becomes more famous.
Fairly certain bbPress has over 10,000 users now and will do another survey in February – there are projects with far fewer users which still have a page on Wikipedia.
In reply to: How to stop sessions being killedWordPress and bbPress itself does not use sessions but some plugins do.
It’s been my experience you need to do a session start at least once before you can access any session variables in a page.
I showed you the code to do the sum yesterday in the extend section.
https://bbpress.org/plugins/topic/bb-topic-views/page/3/#post-2638
In reply to: Confused about filter bb_current_user_canUm, forum-moderators does exactly what you want, but it probably needs to be updated for 0.9 and 1.0
I have an unreleased plugin called “extra privileges” that does something like what you are asking but it won’t be released anytime soon.
You can see how filters on bb_current_user_can work by studying this mini-plugin I wrote to allow users to delete their own posts
function delete_own_post($retvalue, $capability, $args) {
global $bb_current_user, $bb_post;
if ($capability=="delete_post" && $bb_current_user->ID && $bb_post && $bb_post->post_id && $bb_post->post_id ==intval($args[1]) &&
$bb_post->poster_id && $bb_post->poster_id==$bb_current_user->ID && bb_current_user_can( 'edit_post', $bb_post->post_id) {return true;} // lots and lots of double checks
return $retvalue;
}
add_filter('bb_current_user_can', 'delete_own_post',10,3);or simplier version:
function delete_own_post($retvalue, $capability, $args) {
if ($capability=="delete_post") {return bb_current_user_can( 'edit_post', $args[1]);}
return $retvalue;
}
add_filter('bb_current_user_can', 'delete_own_post',10,3);(bump to remind me to update the list)
In reply to: Does topic views plugin work in 1.06a?It works fine with 1.0a and you should be be asking in the extend section for that plugin.
Disable the IMG tag and only allow bb-attachments for images.
You’re lucky the remote site isn’t replacing the hotlinked image with something illegal which would get your site shut down by your host and/or law-enforcement.
In reply to: How do you setup pagination?Front-page pagination works using topics-per-page in both 0.9 and the latest trunk.
topic-views plugin has nothing to do with pagination.
Update: wait, I see the trunk now corrupts the urls after a couple of pages.
This is one of those things they keep breaking in the alpha and I will fix once they stop playing with it.
This is why you don’t use the alpha.
I’m not going to bug fix just because you want to use the alpha on a live site.
I’ve now posted 0.0.5 with a workaround for 1.0a’s url corruption during pagination.
Remember if you use pretty-permalinks you *must* add the rewrite rule to .htaccess in the readme.txt
In reply to: WP Super Cache doesn’t work with bbPress ALPHANot only won’t it work, you’ll find caching a forum vs a blog rather pointless unless you have very few members.
In reply to: Posts with multiple pagesTo make it always link the past post change line 105
from
if ($up_key!=false && $up_last_posts[$up_key]!=$topic->topic_last_post_id) {$link = get_post_link($up_last_posts[$up_key]);}
to
if (!empty($up_key)) {$link = get_post_link($up_last_posts[$up_key]);}
I might make that a feature.
I suspect it’s going to make your queries per page go up much higher though.
In reply to: I want to “steal” the style of the search form…In reply to: Help with Filters / ActionsIn reply to: PHP usage pollUnfortunately bbPress version is extremely different to determine, however the point is moot as there are technically only two now, no?
Very few people still using 0.8.x unless they have hacked the core and they are stuck.
Personally I am waiting for 5.3.0 to be final and stable before going to 5.x
Until then, 5.x is slower than 4.4.x
In reply to: getting last post inside bb_forum_class()Did you try my forum-last-poster plugin?
In reply to: Constructive Criticism: bbPress’s kryptoniteAnother thing that I believe it is that sooner or later bbpress will have a wp plugin version or that it will be a plugin bridge to put it inside of wordpress.
This will never happen because it’s physically impossible as the code is designed. Also the deep integration would use so many resources that a busy forum will get you kicked off of most shared hosts. bbPress 1.0 + WordPress 2.7 running at the same time with deep integration and several plugins is over 1 megabyte of code PER INSTANCE (per user visiting, per page load).
This is why I always say don’t deeply integrate.
However when WordPress eventually switches to the backpress core (think version 3.5 perhaps?) it will be easier to have them deeply integrated without so much excessive resource use.
In reply to: “Forum is proudly powered by bbPress”It’s encouraged but not required.
In reply to: Changing topic_poster_name field in databaseYou need to change the ID as well.
However the moment you do a recount it probably resync the information to the first post in the topic.
In reply to: PHP usage pollSam, I can already tell you that from my 5000 site survey.
This data is from mid-October 2008
PHP Popularity
4.2 : 1
4.3 : 249
4.4 : 1088
5.0 : 41
5.1 : 261
5.2 : 2464
unknown : 700+
or in finer detail:
4.2.2 => 1
4.3.0 => 1
4.3.2 => 4
4.3.3 => 3
4.3.4 => 7
4.3.8 => 6
4.3.9 => 115
4.3.10 => 51
4.3.11 => 62
4.4.0 => 12
4.4.1 => 23
4.4.2 => 29
4.4.3 => 13
4.4.4 => 85
4.4.5 => 4
4.4.6 => 32
4.4.7 => 191
4.4.8 => 414
4.4.9 => 285
5.0.3 => 1
5.0.4 => 32
5.0.5 => 8
5.1.1 => 3
5.1.2 => 39
5.1.3 => 1
5.1.4 => 17
5.1.5 => 4
5.1.6 => 197
5.2.0 => 183
5.2.1 => 79
5.2.2 => 51
5.2.3 => 121
5.2.4 => 171
5.2.5 => 537
5.2.6 => 1318
5.2.8 => 4
unknown : 700+
I will be updating the survey next month and I expect the sites to double.
(If you really need me to, I guess I can rush the survey update earlier)
In reply to: Show off your Forum !!Tiago S, I really like that, well done.