_ck_ (@_ck_)

Forum Replies Created

Viewing 25 replies - 876 through 900 (of 2,186 total)

  • _ck_
    Participant

    @_ck_

    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?

    _ck_
    Participant

    @_ck_

    This would be a good test plugin for my new username-suggest function.

    You can’t just have a dropdown of thousands of users.


    _ck_
    Participant

    @_ck_

    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.


    _ck_
    Participant

    @_ck_

    Also be EXTREMELY careful when tampering with the auto-increment.

    If you re-use any topic id # you are guaranteed to break some plugins.


    _ck_
    Participant

    @_ck_

    Sidebar 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).


    _ck_
    Participant

    @_ck_

    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


    _ck_
    Participant

    @_ck_

    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.


    _ck_
    Participant

    @_ck_

    WordPress 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.


    _ck_
    Participant

    @_ck_

    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


    _ck_
    Participant

    @_ck_

    Um, 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);


    _ck_
    Participant

    @_ck_

    (bump to remind me to update the list)


    _ck_
    Participant

    @_ck_

    It works fine with 1.0a and you should be be asking in the extend section for that plugin.


    _ck_
    Participant

    @_ck_

    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.


    _ck_
    Participant

    @_ck_

    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


    _ck_
    Participant

    @_ck_

    Not only won’t it work, you’ll find caching a forum vs a blog rather pointless unless you have very few members.


    _ck_
    Participant

    @_ck_

    To 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.


    _ck_
    Participant

    @_ck_


    _ck_
    Participant

    @_ck_

    In reply to: PHP usage poll

    _ck_
    Participant

    @_ck_

    Unfortunately 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


    _ck_
    Participant

    @_ck_

    Did you try my forum-last-poster plugin?


    _ck_
    Participant

    @_ck_

    Another 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.


    _ck_
    Participant

    @_ck_

    It’s encouraged but not required.


    _ck_
    Participant

    @_ck_

    You 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 poll

    _ck_
    Participant

    @_ck_

    Sam, 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 !!

    _ck_
    Participant

    @_ck_

    Tiago S, I really like that, well done.

Viewing 25 replies - 876 through 900 (of 2,186 total)