_ck_ (@_ck_)

Forum Replies Created

Viewing 25 replies - 1,601 through 1,625 (of 2,186 total)
  • @_ck_

    Participant

    I’ve got a skeleton prototype working already but I have an important question:

    In Right-To-Left languages, filenames are still left-to-right, correct? ie. it’s never gif.filename, always filename.gif ?

    Sounds silly but you never know… I mean how does Chinese or Japanese handle filenames?

    @_ck_

    Participant

    Whoa, $50 AUS? That’s like half a million US $ right now! I could buy 3, maybe even 4 gallons of gas (if I owned a car) LOL! :D

    Seriously though, many thanks, that’s a massive donation. Now I feel guilty like I have to make this an amazing plugin. Hope I can live up to it. I should have an early alpha for review Sunday or Monday night…

    @_ck_

    Participant

    Alright, I’ll start working on this.

    It won’t be feature rich at start but I’ll give you some basic functionality in a few days.

    @_ck_

    Participant

    I had the same problem with my plugins with the avatar tab too. It makes tabs duplicate.

    I’ll have to lookup the workaround I did…

    Okay the bug fix I had to use was to wrap the function that adds a tab and check if $self was set.

    ie.

    function add_tab(blah) {
    global $self;
    if (!self) {
    // code that adds tab goes here
    }
    }

    So what you probably need to do is change this line like so:

    if (!$self && bb_get_current_user_info( 'id' ) == $user_id) {

    @_ck_

    Participant

    If you are just trying to filter out spam bots, try my Human Test:

    https://bbpress.org/plugins/topic/human-test/

    Someone would have to explain the need for registration approval to me before I would bother making such a plugin.

    @_ck_

    Participant

    Front page topics plugin isn’t working? Hmm. Should be.

    I have a modification I’ve done somewhere…

    Try this:

    // fix number of front page topics
    function bb_custom_topic_limit($limit) {
    switch (bb_get_location()) :
    case 'front-page': $limit=5; break;
    case 'forum-page': $limit=10; break;
    case 'tag-page': break;
    case 'topic-page': $limit=15; break;
    case 'feed-page': break;
    case 'search-page': break;
    case 'profile-page': break;
    case 'favorites-page': break;
    case 'view-page': $limit=10; break;
    case 'stats-page': break;
    case 'login-page': break;
    default: $limit=15;
    endswitch;
    return $limit;
    }
    add_action( 'bb_get_option_page_topics', 'bb_custom_topic_limit',200);

    // required to fix for custom topic limits to calculate correct page jumps
    function fix_post_link ($link,$post_id) {
    global $topic;
    remove_action( 'bb_get_option_page_topics', 'bb_custom_topic_limit' );
    if ($topic && $topic->topic_last_post_id==$post_id) {
    $topic_id=$topic->topic_id;
    $page=get_page_number( $topic->topic_posts );
    } else {
    $bb_post = bb_get_post( get_post_id( $post_id ) );
    $topic_id=$bb_post->topic_id;
    $page = get_page_number( $bb_post->post_position );
    }
    return get_topic_link( $topic_id, $page ) . "#post-$post_id";
    }
    add_filter( 'get_post_link','fix_post_link',10, 2);

    @_ck_

    Participant

    I’ve now written a plugin to solve this problem:

    https://bbpress.org/plugins/topic/read-only-forums/

    In reply to: key master only forum

    @_ck_

    Participant

    I’ve now written a plugin to solve this problem:

    https://bbpress.org/plugins/topic/read-only-forums/

    @_ck_

    Participant

    This question is related:

    https://bbpress.org/forums/topic/key-master-only-forum#post-15457

    I think I will make a real plugin since this seems to be a requested feature that is not too hard to handle in 0.9 Look for it in the plugin section over the next day or two.

    In reply to: key master only forum

    @_ck_

    Participant

    This will affect all forums:

    global $bb_roles;
    $bb_roles->remove_cap('member','write_topics');
    $bb_roles->remove_cap('member','write_posts');

    You can put it into header.php or make a real plugin ie.

    members-cannot-post.php (and install into /my-plugins/)

    <?php
    /*
    Plugin Name: Members Cannot Post
    */
    global $bb_roles;
    $bb_roles->remove_cap('member','write_topics');
    $bb_roles->remove_cap('member','write_posts');
    ?>

    I think I will make a real plugin which can control this on a per-forum basis since this seems to be a requested feature that is not too hard to handle in 0.9 Look for it in the plugin section over the next day or two.

    @_ck_

    Participant

    I have a karma plugin in development but it is not available yet and most likely will not be until early May.

    You can preview it in use at http://bbShowcase.org

    The code in brackets is BBcode so you want my BBlite:

    https://bbpress.org/plugins/topic/bbcode-lite/

    In reply to: phpBB3.0-style theme

    @_ck_

    Participant

    Very nice work! You could even make a new column on the left to mimic their icons and it would almost exactly the same!

    @_ck_

    Participant

    @_ck_

    Participant
    In reply to: Emoticons For bbPress?

    @_ck_

    Participant

    The insert function in Comment Quicktags for bbPress can easily be reused to insert smilies. You don’t want to use wp-grins because it has to load prototype.js which is huge and slow.

    @_ck_

    Participant

    bbPress needs the internal rewrite engine that WordPress has.

    Multiviews is unreliable and availability is inconsistent.

    @_ck_

    Participant

    Wow that language is amazing looking… in any case I think the i8n folks are going to be your best bet for help. I’ll add some tags.

    @_ck_

    Participant

    You want a better spider tool that can limit how many threads it uses, obeys robots.txt and uses a standard user agent.

    Good luck getting all that into bbpress though. First you’ll need to write a custom parser that can standardize the posts and topics into a clean format. Some was working on a bbPress xml importer but if you get the data organized enough you could parse it directly into mysql. Not a trivial project by any means but I guess you realize that .

    Hopefully you know PHP or some other language that can help you parse all the data?

    @_ck_

    Participant

    This is a tricky problem.

    It’s easy to remove the ability entirely to post new topics for all forums (by removing the ability from the “member” role) but to keep a forum visible but not allow a new topic to be created would require intercepting the forum list from the “add new post” sections.

    If you can live with not allowing any member to create a new topic you can do this:

    https://bbpress.org/forums/topic/only-key-holders-add-topics#post-15339

    Then only moderators and above could create topics.

    This request comes up at least once a month, someone might try to tackle it someday (but don’t look at me!)

    @_ck_

    Participant

    Fields can be added via plugins but I don’t believe there is any general plugin available to do that yet on an easy basis like WordPress.

    @_ck_

    Participant

    I believe you are looking for the functions bb_get_option and get_post_link.

    @_ck_

    Participant

    You would need a custom query, not to mention custom output and formatting for that. But considering that kind of view is available inside each forum, I am not sure how useful that is?

    @_ck_

    Participant

    Well some are far easier than others.

    First look for $wpdb and change to $bbdb

    Then you have look at things like get_option and other functions and see if they can easily use the bb_get_option or other bb_ version of the function.

    But even if the alternative function exists you have to be sure that it’s doing what you want. Things that relate to users are similar but things that relate to posts have to be change to topics and then there is comments vs posts.

    @_ck_

    Participant

    There used to be a plugin to do this:

    https://bbpress.org/plugins/topic/usernames-i18n-fix/

    but it won’t work under 0.9 – instead see this:

    https://bbpress.org/forums/topic/diacritic-letters-i-username-like-goran#post-14205

    @_ck_

    Participant

    Aha! I think it’s this simple. Make yourself a mini-plugin and install it containing this:

    global $bb_roles;
    $bb_roles->remove_cap('member','write_topics');

    If you don’t know how to make a plugin, it might be possible to just put those two lines into your template’s header.php

Viewing 25 replies - 1,601 through 1,625 (of 2,186 total)