Skip to:
Content
Pages
Categories
Search
Top
Bottom

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

Viewing 25 results - 6,051 through 6,075 (of 6,774 total)
  • Author
    Search Results
  • #4000
    Clicknathan
    Participant

    Would anyone know of a way to show the last page of a thread by default instead of the first?

    For example, if a thread has 3 pages worth of posts, we want to by default show page #3 rather than #1.

    Any ideas? Thanks!

    #66083
    nekita
    Member

    Seems as if I have the same problem as doyle640. Integrated the Alpha with WP 2.6.2 and after adding “require_once(‘../wp-blog-header.php’);” to bb-config.php I can’t access the bbP Admin section anymore. the “Reply” and “New Topic” area is gone as well, Profile can’t be edited etc. The title under my Admin name (“Key Master” by default) will also change to Invalid.

    The loading error for the admin section is indeed a 500 error. At first I figured it might be related to some class conflicts within the WP and bbP CSS structure but fiddling with that didn’t help either.

    Now it seems more likely that the User Account looses all of it’s user privileges in bbP once it’s integrated with WP for some reason.

    #67632
    _ck_
    Participant

    I’m curious about this issue as performance problems always intrigue me. You must be using 0.9 as 1.0 has an index on stickies by default.

    As far as fulltext search there is a trick I use because of the multiple issues with fulltext (not only speed but fulltext can’t do words less than 4 characters until you customize and rebuild mysql). The trick is to use regex and do a two pass query where you first exclude all the posts without the words and then allow mysql to do a regular scan of the remaining posts.

    Query example from my Super-Search plugin:

    WHERE post_text  LIKE '%".$term."%'" AND post_text  REGEXP ':<:".$term.":>:[^']' "

    Compare the performance of that against a fulltext search that uses "MATCH post_text AGAINST $term" I don’t have enough data to do a huge benchmark but some simple tests with the cache off shows 0.4 seconds for the trick and 0.9 for the fulltext.

    The only downside to the trick is you cannot do partial word searches that way. ie. $term="cat" will only return posts with the exact word “cat” and not “cats” or “category”. But it should be way faster.

    Searching a huge number of posts is a non-trivial problem. It’s been known to crush other forums like vbulletin which has fancy code to prevent users from searching too often/too quickly and even disable search temporarily on high server load. Sites like Wikipedia have to go through several technically complex tricks to keep the search fast on that much data.

    Many large sites end up using sphinxsearch to replace fulltext search. You could interface it to bbPress via their PHP api.

    You can read more workarounds on the mysql fulltext search page (with far more knowledgeable people than me) http://dev.mysql.com/doc/refman/5.0/en/fulltext-search.html

    #3985
    #66712

    In reply to: bbPress 1.0 alpha

    kannued
    Participant

    I didn’t change the database table prefix from the default. This is the only table in the new database. The database says ‘bb_’, and bb.config.php says ‘bb_’. My keymaster shows up in ‘bb_users’. So if the keymaster is there, then the table prefix is not the problem. It is something else.

    #67568
    jpope
    Member

    So I have confirmed that this happens even if I set both bbpress and wordpress to the default themes, so it is definitely not something in the themes I’ve customized.

    I really wish I could find the code where wp is determining the post ID of the home/front page as I suspect that is the best place to start trying to tackle this.

    #67496
    meitershaker
    Member

    “You could do it with two browser tabs or windows.”

    lol, euh yes, but not very user-friendly i think :D

    “Why are you looking to see other posts while editing another (just curious)? “

    because for me, edit a post for add or complete post, it’s more interesting to have always the entire thread. And for political forum, where the post are many times big, it’s necessary to have entire thread..

    so, in phpbb by default for example, it’s like that…

    i have no idea how to do it with a plugin, and i ask you for a little help :p

    ++

    #67482

    In reply to: hack help

    chrishajer
    Participant

    There is no author rank in the default installation. Are you talking about their title (like Member or Administrator)?

    If so, you would need to modify the template file for each place where the title appears (maybe it’s only on the topic pages, for each post?) If so, just remove it from the post.php file in your template directory:

    Remove this line:

    <small><?php post_author_title(); ?></small>

    That removes the author title from under the author’s name. If that’s not what you mean, then you have something installed that I do not. I think there is a post rating plugin and an author reputation (karma) plugin: maybe one of those is showing the rank you’re talking about.

    #67401

    In reply to: Server Overload

    _ck_
    Participant

    I probably made a bad assumption that it was not installed, though it definitely doesn’t come by default on a cpanel setup so that’s a bit unusual. Strange someone would put eaccelerator on there but not enable the mysql cache.

    You can look at your phpinfo() to find out if eAccelerator is really installed and active.

    That eaccelerator compress and compression level is just a waste of cpu time. I’d either set

    eaccelerator.compress="0"

    or

    eaccelerator.compress_level="1"

    By the way, the php configuration is located in

    /usr/local/lib/php.ini

    and the eAccelerator options are at the very bottom of the file if you ever have to manually edit them.

    #67442
    _ck_
    Participant
    Database error: []
    SELECT * FROM bb_online WHERE user_id = LIMIT 1
    Caller: online_logout

    The user_id is empty in this case which causes the error.

    The question is why it’s empty.

    This could be a cookie problem, this could be an alpha bug.

    If you have no plugins running and switching to the default template does not make the error go away, it’s a bug and should be reported on TRAC (along with your configuration if possible, server type, PHP, etc)

    #3949
    lstelie
    Member

    Hello,

    I wrote this for my own use, in case it could be of some use for someone, here it is :

    http://pastebin.com/f35e5dcbe

    This allow to put some html code in header (or example metatags) and footer (for example counter code)

    There is no admin part for two reasons :

    1) I’m learnig how it works

    2) I’m not sure it would be a great idea to have a DB request for a code that never change

    So for instance you’ll have to edit manually the plugin file

    Why use a plug in instead of a direct ad in the template ? because for alpha release the default template (my own is based on kakumei) sometimes change, so keeping the personal code updated each time can be tedious.

    Luc

    #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

Viewing 25 results - 6,051 through 6,075 (of 6,774 total)
Skip to toolbar