Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for '+.+default+.+'

Viewing 25 results - 6,076 through 6,100 (of 6,788 total)
  • Author
    Search Results
  • #67435

    In reply to: expired topics

    _ck_
    Participant

    Untested. auto-closes a topic on-the-fly when someone visits it and it’s last post is 90 days old (adjustable)

    add_action('bb_head','auto_close_topic');
    function auto_close_topic() {
    global $topic;
    if (is_topic() && $topic->topic_open===1) {
    $old=time()-3600*24*90; // 90 days default
    if (strtotime($topic->topic_time)<$old) {
    bb_close_topic($topic->topic_id);
    $topic->topic_open=0; // just in case the cache doesn't clear
    }
    }
    }

    #65188
    meitershaker
    Member

    no i have a default install of bbpress 1.0 trunk. and yes, the javascript is not loaded, why?

    #58899
    Sonika
    Member

    Detective, thanks a lot!!!

    It solved my problem ( wp 2.5.1, bbpress 0.9.0.2)

    Bo Fiddlesticks, you should save code in set-default-role.php file, put it in bb-plugins and activate

    <?php
    /*
    Plugin Name: bbpress wpmu default role
    Plugin URI: https://bbpress.org/forums/topic/yet-another-integration-bug-no-role-set-on-registration?replies=5
    Description: Sets a default WPMU role for all new bbpress users.
    Author: Detective
    Author URI: http://www.ryuuko.cl/
    */

    function wpbb_add_user_role_rk($user_id) {
    $user = new WP_User($user_id);
    $user->set_role(get_option('default_role'));
    }
    add_action( 'bb_new_user', 'wpbb_add_user_role_rk');
    ?>

    #3931
    Jens Wedin
    Member

    Here is a function list for the v1.0 alpha one. As the developers do not add any documentation I found this on the net. You can you this by your own if you have an older or newer version of bbPress by doing this command in the terminal (linux or mac):

    grep -oe ^function.*) bb-includes/template-functions.php | sort > functions.txt

    This idea is Tims (http://timjoh.com), I used updated his idea.


    function _bb_list_tag_item( $tag, $args )
    function _bb_parse_time_function_args( $args )
    function _bb_time_function_return( $time, $args )
    function allowed_markup( $args = '' )
    function alt_class( $key, $others = '' )
    function bb_active_theme_uri()
    function bb_admin_link( $args = '' )
    function bb_current_user_info( $key = '' )
    function bb_feed_head()
    function bb_forum()
    function bb_forum_bread_crumb( $args = '' )
    function bb_forum_class( $args = null )
    function bb_forum_dropdown( $args = '' )
    function bb_forum_pad( $pad, $offset = 0 )
    function bb_forum_posts_rss_link( $forum_id = 0, $context = 0 )
    function bb_forum_topics_rss_link( $forum_id = 0, $context = 0 )
    function bb_get_active_theme_uri()
    function bb_get_admin_link( $args = '' )
    function bb_get_current_user_info( $key = '' )
    function bb_get_footer()
    function bb_get_forum_bread_crumb($args = '')
    function bb_get_forum_dropdown( $args = '' )
    function bb_get_forum_is_category( $forum_id = 0 )
    function bb_get_forum_posts_rss_link( $forum_id = 0, $context = 0 )
    function bb_get_forum_topics_rss_link( $forum_id = 0, $context = 0 )
    function bb_get_header()
    function bb_get_location()
    function bb_get_logout_link( $args = '' )
    function bb_get_post_delete_link( $post_id = 0 )
    function bb_get_post_edit_link( $post_id = 0 )
    function bb_get_post_ip_link( $post_id = 0 )
    function bb_get_post_time( $args = '' )
    function bb_get_posts_rss_link($context = 0)
    function bb_get_profile_link( $args = '' )
    function bb_get_stylesheet_uri( $stylesheet = '' )
    function bb_get_tag_heat_map( $tags, $args = '' )
    function bb_get_tag_link( $tag_name = 0, $page = 1 )
    function bb_get_tag_link_base()
    function bb_get_tag_name( $id = 0 )
    function bb_get_tag_page_link()
    function bb_get_tag_remove_link( $args = null )
    function bb_get_tag_rss_link( $tag_id = 0, $context = 0 )
    function bb_get_template( $file )
    function bb_get_theme_uri( $theme = false )
    function bb_get_title( $args = '' )
    function bb_get_topic_close_link( $args = '' )
    function bb_get_topic_delete_link( $args = '' )
    function bb_get_topic_pagecount( $topic_id = 0 )
    function bb_get_topic_sticky_link( $args = '' )
    function bb_get_topics_rss_link($context = 0)
    function bb_get_user_email( $id )
    function bb_get_user_id( $id = 0 )
    function bb_get_view_rss_link($context = 0)
    function bb_head()
    function bb_is_topic_lastpage( $topic_id = 0 )
    function bb_language_attributes( $xhtml = 0 )
    function bb_list_tags( $args = null )
    function bb_load_template( $file, $globals = false )
    function bb_location()
    function bb_logout_link( $args = '' )
    function bb_new_topic_forum_dropdown()
    function bb_post_admin()
    function bb_post_template()
    function bb_post_time( $args = '' )
    function bb_profile_admin_form( $id = 0 )
    function bb_profile_base_content()
    function bb_profile_data( $id = 0 )
    function bb_profile_data_form( $id = 0 )
    function bb_profile_link( $args = '' )
    function bb_profile_password_form( $id = 0 )
    function bb_related_tags_heat_map( $args = '' )
    function bb_sort_tag_heat_map( &$tag_counts )
    function bb_stylesheet_uri( $stylesheet = '' )
    function bb_tag_heat_map( $args = '' )
    function bb_tag_link( $id = 0, $page = 1 )
    function bb_tag_link_base()
    function bb_tag_name( $id = 0 )
    function bb_tag_page_link()
    function bb_tag_remove_link( $args = null )
    function bb_tag_rss_link( $id = 0, $context = 0 )
    function bb_template_scripts()
    function bb_title( $args = '' )
    function bb_topic_admin( $args = '' )
    function bb_topic_labels()
    function bb_topic_pagecount( $topic_id = 0 )
    function bb_topic_search_form( $args = null, $query_obj = null )
    function edit_form()
    function favorites_link( $user_id = 0 )
    function favorites_pages()
    function favorites_rss_link( $id = 0, $context = 0 )
    function forum_description( $args = null )
    function forum_id( $forum_id = 0 )
    function forum_link( $forum_id = 0, $page = 1, $context = BB_URI_CONTEXT_A_HREF )
    function forum_name( $forum_id = 0 )
    function forum_pages( $forum_id = 0 )
    function forum_posts( $forum_id = 0 )
    function forum_topics( $forum_id = 0 )
    function full_user_link( $id = 0 )
    function get_allowed_markup( $args = '' )
    function get_alt_class( $key, $others = '' )
    function get_favorites_link( $user_id = 0 )
    function get_favorites_rss_link( $id = 0, $context = 0 )
    function get_forum_description( $forum_id = 0 )
    function get_forum_id( $forum_id = 0 )
    function get_forum_link( $forum_id = 0, $page = 1, $context = BB_URI_CONTEXT_A_HREF )
    function get_forum_name( $forum_id = 0 )
    function get_forum_parent( $forum_id = 0 )
    function get_forum_position( $forum_id = 0 )
    function get_forum_posts( $forum_id = 0 )
    function get_forum_topics( $forum_id = 0 )
    function get_full_user_link( $id = 0 )
    function get_page_number_links($page, $total)
    function get_post_author( $post_id = 0 )
    function get_post_author_id( $post_id = 0 )
    function get_post_author_title( $post_id = 0 )
    function get_post_author_title_link( $post_id = 0 )
    function get_post_id( $post_id = 0 )
    function get_post_ip( $post_id = 0 )
    function get_post_link( $post_id = 0 )
    function get_post_text( $post_id = 0 )
    function get_profile_tab_link( $id = 0, $tab, $page = 1 )
    function get_topic_author( $id = 0 )
    function get_topic_deleted_posts( $id = 0 )
    function get_topic_id( $id = 0 )
    function get_topic_last_post_link( $id = 0 )
    function get_topic_last_poster( $id = 0 )
    function get_topic_link( $id = 0, $page = 1, $context = BB_URI_CONTEXT_A_HREF )
    function get_topic_posts( $id = 0 )
    function get_topic_rss_link( $id = 0, $context = 0 )
    function get_topic_start_time( $args = '' )
    function get_topic_time( $args = '' )
    function get_topic_title( $id = 0 )
    function get_user_delete_button()
    function get_user_display_name( $id = 0 )
    function get_user_link( $id = 0 )
    function get_user_name( $id = 0 )
    function get_user_profile_link( $id = 0, $page = 1, $context = BB_URI_CONTEXT_A_HREF )
    function get_user_title( $id = 0 )
    function get_user_type( $id = 0 )
    function get_user_type_label( $type )
    function get_view_link( $_view = false, $page = 1, $context = BB_URI_CONTEXT_A_HREF )
    function get_view_name( $_view = '' )
    function is_bb_admin()
    function is_bb_favorites()
    function is_bb_feed()
    function is_bb_profile()
    function is_bb_search()
    function is_bb_stats()
    function is_bb_tag()
    function is_bb_tags()
    function is_forum()
    function is_front()
    function is_topic()
    function is_view()
    function login_form()
    function manage_tags_forms()
    function new_topic( $args = null )
    function post_anchor_link( $force_full = false )
    function post_author( $post_id = 0 )
    function post_author_avatar( $size = '48', $default = '', $post_id = 0 )
    function post_author_avatar_link( $size = '48', $default = '', $post_id = 0 )
    function post_author_id( $post_id = 0 )
    function post_author_link( $post_id = 0 )
    function post_author_title( $post_id = 0 )
    function post_author_title_link( $post_id = 0 )
    function post_author_type( $post_id = 0 )
    function post_del_class( $post_id = 0 )
    function post_delete_link( $post_id = 0 )
    function post_edit_link( $post_id = 0 )
    function post_form( $h2 = '' )
    function post_id( $post_id = 0 )
    function post_ip( $post_id = 0 )
    function post_ip_link( $post_id = 0 )
    function post_link( $post_id = 0 )
    function post_text( $post_id = 0 )
    function profile_menu()
    function profile_pages()
    function profile_tab_link( $id = 0, $tab, $page = 1 )
    function search_form( $q = '' )
    function tag_form( $args = null )
    function tag_pages()
    function topic_author( $id = 0 )
    function topic_class( $class = '', $key = 'topic', $id = 0 )
    function topic_close_link( $args = '' )
    function topic_delete_link( $args = '' )
    function topic_id( $id = 0 )
    function topic_last_post_link( $id = 0 )
    function topic_last_poster( $id = 0 )
    function topic_link( $id = 0, $page = 1, $context = BB_URI_CONTEXT_A_HREF )
    function topic_move_dropdown( $id = 0 )
    function topic_noreply( $title )
    function topic_pages( $id = 0 )
    function topic_pages_add( $id = 0 )
    function topic_posts( $id = 0 )
    function topic_posts_link( $id = 0 )
    function topic_rss_link( $id = 0, $context = 0 )
    function topic_show_all_link( $id = 0 )
    function topic_start_time( $args = '' )
    function topic_sticky_link( $args = '' )
    function topic_tags()
    function topic_time( $args = '' )
    function topic_title( $id = 0 )
    function user_delete_button()
    function user_favorites_link($add = array(), $rem = array(), $user_id = 0)
    function user_link( $id = 0 )
    function user_profile_link( $id = 0 , $page = 1, $context = BB_URI_CONTEXT_A_HREF )
    function user_title( $id = 0 )
    function user_type( $id = 0 )
    function user_type_label( $type )
    function view_link( $_view = false, $page = 1, $context = BB_URI_CONTEXT_A_HREF )
    function view_name( $view = '' ) { // Filtration should be done at bb_register_view()
    function view_pages()


    #3929
    lstelie
    Member

    Hello,

    I have a little CSS problem

    I’m integrating BBpress with my weblog that uses Revolution blog theme.

    The url is http://luc.saint-elie.com/bbpress

    Its a WP 2.6 install with BBpress 1.0 alpha

    BBPress theme is based on the default kakumei

    I fail to put the login div right above BBPress breadcrumb menu (right under my header)

    If anyone with CSS knowledge (that I don’t have) has a little idea, I would be very happy

    Thanks in advance

    Luc

    #67339

    In reply to: All setting use cache

    _ck_
    Participant

    leoleoleo (and everyone) put this line into bb-config.php (before the “stop editing” part)

    $bb->load_options = true;

    That should slice at least 100ms off that time and reduce the queries by half. I still don’t understand why it’s not the bbPress default.

    “Forum is category” is not needed under bbPress 1.0 which does category forums internally.

    Also, the bb-gzip plugin is only necessary if your server does not already compress pages, which is rare these days, so make sure you are not duplicating the effort.

    Some of my plugins are still not optimized for 1.0 so they might be slower or cause more queries than under 0.9

    #66334
    Detective
    Member

    I’m working on a few enhancements over PM Extended, but i’m not considering compatibility with the old plugin. I don’t know why it doesn’t work with previous messages, as i never touched the database structure of the plugin (just made a few tweaks).

    #66333
    citizenkeith
    Participant

    Nightgunner… if you try remaking the plugin, please consider a way for a forum to keep messages from the old version. We’ve been using the PM plugin for over a year, and it would be nice to keep our old PMs.

    _ck_
    Participant

    Technically you’re not supposed to have more than one H1 on any given html page (though browsers don’t care and will render anyway). The trailing BR is a problem with bbPress’s parser.

    Why don’t you use the built in ability of BBcode to do SIZE instead?

    Large Text
    [size=+1]text larger than default size[/size]
    default size
    [size=-1]text smaller than default size[/size]

    #65579
    chrishajer
    Participant

    In the admin under Settings > General, there is a post timeout setting (“Lock post editing after”):

    /bb-admin/options-general.php

    The default is 60. Try setting it to -1 and see if a normal user can edit an old post. If the -1 does not work, try some insanely large number of minutes so it appears that there is no limit to editing the posts. 525600 is a year’s worth of minutes.

    #66327
    chrishajer
    Participant

    Put it on an admin page, like the dashboard. (bb-admin/index.php)

    #67251
    _ck_
    Participant

    There’s no hacking involved in that process.

    It’s just a simple workaround.

    The foolish forum operators are allowing anyone with the user-agent of “GoogleBot” into their private forums. And/or they are allowing Google to cache their private forums. The reason why they do this is they want Google to send them traffic and the only way they can do that is to let google see the content of the hidden forums.

    bbPress doesn’t do this by default and no known plugin does it either, certainly not my “hidden forums” plugin.

    My Mini-Track plugin can tell you the difference between real Google and people pretending to be Google. It’s very easy, you just do a rDNS on the ip and see if it goes to a google owned ip block. rDNS is very slow (1-5 seconds) so people don’t normally do it by default.

    You wouldn’t have to delete the spammer profiles if you didn’t let them on in the first place. Install my “Human Test” plugin and 99.9% of them will never register.

    #65575
    _ck_
    Participant

    You tried the second method and it does that?

    It works for me, just tested it on 0.9

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

    .

    Note that the delete ability times out with the edit ability (1 hour in default install).

    #65455
    _ck_
    Participant

    It’s very possible that the “time window” for one is out of sync with the other. There is no real way for PHP to tell if a user has really left a site, unless they logout, which mini-track handles.

    mini-track defaults to a 30 minute window before it gives up on a user – but it also tracks their last activity time so you can see in the real-time display if they haven’t done anything for 25 of those 30 minutes

    mini-track 0.2.0 will be released soon and it has a bunch of new features and bug fixes too…

    http://img84.imageshack.us/img84/9332/screenshot2bx8.png

    #67194
    geekymom
    Member

    Good questions! This is an initial install, so there’s nothing previous there. When I click the admin link, it reloads the front page. I can click on a forum or post and it takes me to the right page. The permalinks appear to be numeric. I haven’t made any changes at all. I am using the default theme, no plugins. It’s a pretty virgin install. :)

    #67193
    chrishajer
    Participant

    When you say does nothing, what actually happens? Redirected to the previous page, or the same page just reloads without being in the admin section? Something has to be happening, right?

    How about permalinks? None, numeric of name-based? Can you click other things on the forum and get to those pages?

    If the user you logged in as was not a keymaster (or admin or moderator), you would not see the admin link (I don’t think.) So I doubt that you lost the keymaster privileges.

    Are you using any plugins? Are you using the default theme? Have you made any modifications?

    #3876
    ramym
    Member

    Hello,

    I like the Latest Discussions on the frontpage, to have a quick look of the active topics, but I’d like to limit it to max. 5 topics.

    Is there a way to do this? I tried several plugins found on the internet/this website, but none of them works.

    Is there a way by changing the code? If yes, in which file should I look?

    Btw, what is the default amount of ‘Latest Discussions’ on the frontpage?

    Thanks.

    #67110
    _ck_
    Participant

    Everyone put this in your bb-config.php

    $bb->load_options = true;

    and that number will go down radically.

    For some reason I don’t understand they refuse to make that the default and therefore bbPress just “lazy loads” each option as each plugin requests it.

    If you are using the 1.0 alpha they still have a bit of work to do with query reduction as they rewrote half the routines and storage layout but left it unoptimized. For example each forum on the front page is loaded as a separate query and then the meta for each forum is loaded as a separate query. It’s a bit crazy because if you have a dozen forums that’s 24 queries but I have high hopes Sam or MDA will tackle that soon and do it all in just two queries.

    Last but not least there is a serious optimization problem IMHO in all versions where bbPress will “read before write” every time a meta option is saved, regardless if it’s just been loaded and sitting in the object cache. I have to put a bit of extra code in all my plugins to work around this issue. The reason why they do that is to determine if they should do an INSERT vs an UPDATE because you can have duplicate keys on meta data by design and mysql can’t be told what to do if the key already exists. But there are better ways to do that – since 99.99% of the time it’s going to be an update since the data already exists – do an update and just check for a mysql error on the return (or count rows affected) – then do an insert instead that one time it’s needed.

    #67087
    danvollans
    Member

    Based on the settings you chose, or whoever installed it on your server, there is an option to allow remote connections to the database. I’m assuming you’re using mysql for your database. The most probable cause is that either you’re running a firewall that is blocking port 3306 (default port) or you just simply don’t have remote access set up.

    http://www.debianhelp.co.uk/remotemysql.htm

    That is a fairly straight-forward and decent guide to setting up mysql for remote access. If you have any questions you can ask me and I’ll do my best to help!

    #67045
    chrishajer
    Participant

    I think each plugin is going to be different. In general though, if the plugin needs to be activated by a user by changing a setting, I don’t know how you could modify the plugin to default to already on.

    I think it will be different for each plugin though. I don’t use any of those plugins, so I’m not sure. If you post the URL for each plugin, maybe someone can look at the code and see if it’s possible to default them to active for everyone.

    #66053
    chrishajer
    Participant

    To install in the same database, you just specify that database’s connection details in bb-config.php. The important thing is to be sure you use a different table prefix for the bbPress installation. By default, it’s bb_ for bbPress and for wp_ for WordPress. Use different table prefixes and you can install as many applications into one database as you want. Just keep the table prefixes unique.

    To uninstall, yes, just delete the directory with bbPress in it, then drop the bbPress tables from the database. DO NOT delete the database since you have WordPress in that database as well, right?

    You’re probably overthinking it. Using the same database is how the bbPress directions are written now; I think it’s assumed. The key is to just keep the table prefixes unique and you can put as much stuff in one database as you want.

    #67027
    rpophessagr
    Member

    wait… it didn’t work in the default theme either…

    I am putting the line:

    if (file_exists(‘../wp-blog-header.php’))

    require_once(‘../wp-blog-header.php’);

    in right before:

    if ( !defined(‘BB_PATH’) )

    define(‘BB_PATH’, dirname(__FILE__) . ‘/’ );

    require_once( BB_PATH . ‘bb-settings.php’ );

    ?>

    when I put it at the end i got an error that i cannot define it twice…

    is there a better place to put in the “require_once?

    #67026
    rpophessagr
    Member

    i just tried the default and it didn’t do the demo thing… any ideas in which file i can disable this in the theme?

    I’ll but back the other theme so that you can see it…

    thank you again for your help!

    #67024
    chrishajer
    Participant

    Please post a link to your site. And the version of WordPress and bbPress.

    Sounds like something built into the theme. Can you try the default theme and see what happens?

    #67003
    _ck_
    Participant

    That’s another one of those silly things that got carried over from WordPress. The database limits it to 60 characters and the default template limits it to 30 characters but it’s still overly long.

    Fortunately in bbPress (unlike WordPress) the registration form is done in a template and not in the core, so the easiest way is just to modify the register.php template under my-templates (or copy it from bb-templates) and change the line that looks like this:

    <td><input name="user_login" type="text" id="user_login" size="30" maxlength="30" value="<?php if (1 != $user_login) echo $user_login; ?>" /></td>

    And instead of 30, make it the size limit you want.

    However people that are sneaky and bypass the registration form can still make it 60 characters (ie. spammers). But they will stick out, so you’ll notice it right away.

    This can be fixed via a plugin but it would be way too much code to justify the fix. The template method is best.

Viewing 25 results - 6,076 through 6,100 (of 6,788 total)
Skip to toolbar