Skip to:
Content
Pages
Categories
Search
Top
Bottom

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

Viewing 25 results - 4,451 through 4,475 (of 6,788 total)
  • Author
    Search Results
  • #113701
    Lynq
    Participant

    Yes you can use bbp_has_forums() and pass it some arguments to filter the query. for example something like:

    if ( bbp_has_forums( array( 'posts_per_page' => 1, 'max_num_pages' => 1 ) ) )
    bbp_get_template_part( 'bbpress/loop', 'forums' );

    This will filter the loop depending on what arguments you pass bbp_has_forums. I am not too sure on what filter or action you could use that to get that working on all queries.

    Default arguments for bbp_has_forums.

    // The default forum query for most circumstances
    $default = array (
    'post_type' => bbp_get_forum_post_type(),
    'post_parent' => bbp_is_forum_archive() ? 0 : bbp_get_forum_id() ,
    'post_status' => implode( ',', $post_stati ),
    'posts_per_page' => get_option( '_bbp_forums_per_page', 50 ),
    'orderby' => 'menu_order',
    'order' => 'ASC'
    );

    No problem for helping btw, I try to help as much as I can, I may just get in the way sometimes :p

    Lynq
    Participant

    If you are not sure where the issue is coming from then I suggest activating a default theme for bbPress, like twentyten and then seeing if the issue still exists.

    If it does then move onto disabling any bbPress plugins, one by one.

    Good luck!

    #45013
    Mike3853
    Participant

    Hey, not sure if it is just me…but when I tried to install bbPress it broke my dashbaord so I had to delete the bbPress folder to get back to my dashboard.

    I’m using BuddyPress Default 1.5.5 theme…not sure if it’s that though.

    If bbPress is not compatible with wp 3.3.2 does anyone know when it will be ready?

    Thanks!

    #113674

    bbPress Version 2.0.2

    Education Child Theme

    I found a solution but am not wild about the method.. In form-topic.php I replaced “bbp_title_max_length” with the desired number of characters, “126”, and that did the trick. I just don’t understand why editing the default characters of bbp_title_max_length didn’t work on its own.

    mhensler
    Member

    Good tip! I tried twentyten, and sure enough, the forums work. Not sure where to go from here, but it must be the buddypress default theme acting up somehow.

    #113671

    Thanks for the response, Jared. I’m using both BuddyPress and bbPress.

    Lynq
    Participant

    Two things I like to try when attempting to find a problem with bbPress is to:

    Switch to a default bbPress theme, like twentyten.

    Go to settings > Permalinks and update my permalinks again.

    The second one fixes a few issues and the first one lets you know if it is a problem with your template, or a problem with your data.

    Good luck!

    #113669

    So it looks like the Genesis Connect plugin only impacts buddypress pages… Is there any other file I need to edit in bbpress besides core-functions.php?

    #44859

    I changed the default length of forum topics (bbp_title_max_length) in bbpress’ core-functions.php, but it seems to have no effect on the length of topic titles. What I’m wondering is if there is some function in Genesis Connect that may be overriding this change, or something else that may be conflicting? Or any other suggestions? Thanks!

    #113727
    maxe___
    Member

    Yep, it is, version 2.5.6 is installed

    maxe___
    Member

    When I enable the wordpress plugin, I get the following warning:

    Warning: Creating default object from empty value in wp-content/plugins/bbpress/bbp-includes/bbp-extend-akismet.php on line 693

    I think it might be an Issue with PHP 5.4

    I have running debian with PHP 5.4.0 an Apache Webserver

    Regards, Max

    #113715
    Lynq
    Participant

    Hi deathbybear,

    The only way I have found to make this happen is to edit the core code provided by bbpress.

    I am not sure if this is the right way to go, so if someone else can suggest another way then let me know.

    Here is what I have done. I replaced the bbp_list_forums function inside forum-template.php and then inside the loops-single-forum I changed the arguments to enable the last poster.

    function bbp_list_forums( $args = '' ) {

    // Define used variables
    $output = $sub_forums = $topic_count = $reply_count = $counts = '';
    $i = 0;
    $count = array();

    // Defaults and arguments
    $defaults = array (
    'before' => '<ul class="bbp-forums">',
    'after' => '</ul>',
    'link_before' => '<li class="bbp-forum">',
    'link_after' => '</li>',
    'count_before' => ' (',
    'count_after' => ')',
    'count_sep' => ', ',
    'separator' => ', ',
    'forum_id' => '',
    'show_topic_count' => true,
    'show_reply_count' => true,
    'freshness_before' => '<td class="last-posted-box">',
    'freshness_after' => '</td>',
    'show_freshness_link' => true,
    'freshness_author_before' => '<div class="author-box">',
    'freshness_author_after' => '</div>'
    );
    $r = wp_parse_args( $args, $defaults );
    extract( $r, EXTR_SKIP );

    // Bail if there are no subforums
    if ( !bbp_get_forum_subforum_count( $forum_id ) )
    return;

    // Loop through forums and create a list
    if ( $sub_forums = bbp_forum_get_subforums( $forum_id ) ) {

    // Total count (for separator)
    $total_subs = count( $sub_forums );
    foreach ( $sub_forums as $sub_forum ) {
    $i++; // Separator count

    // Get forum details
    $count = array();
    $show_sep = $total_subs > $i ? $separator : '';
    $permalink = bbp_get_forum_permalink( $sub_forum->ID );
    $title = bbp_get_forum_title( $sub_forum->ID );

    // Show topic count
    if ( !empty( $show_topic_count ) && !bbp_is_forum_category( $sub_forum->ID ) )
    $count['topic'] = bbp_get_forum_topic_count( $sub_forum->ID );

    // Show reply count
    if ( !empty( $show_reply_count ) && !bbp_is_forum_category( $sub_forum->ID ) )
    $count['reply'] = bbp_get_forum_reply_count( $sub_forum->ID );

    // Counts to show
    if ( !empty( $count ) )
    $counts = $count_before . implode( $count_sep, $count ) . $count_after;

    // Show topic count
    if ( !empty( $show_freshness_link ) && !bbp_is_forum_category( $sub_forum->ID ) ) {
    $freshness_link = bbp_get_forum_freshness_link( $sub_forum->ID );
    $freshness_author = $freshness_author_before . bbp_get_author_link( array( 'post_id' => bbp_get_forum_last_active_id( $sub_forum->ID ), 'size' => 14 ) ) . $freshness_author_after;
    $freshness_link = $freshness_before . $freshness_link . $freshness_author . $freshness_after;
    }

    // Build this sub forums link
    $output .= $link_before . '<a href="' . $permalink . '" class="bbp-forum-link">' . $title . $counts . $freshness_link . '</a>' . $show_sep . $link_after;
    }

    // Output the list
    echo $before . $output . $after;
    }
    }

    Let me know how you get on, good luck!

    #113680

    acousticwebdesign, the “Fancy Editor” (which is using wordpress default editor) is only available in bbPress 2.1, which is still under development.

    You might want to take a look

    https://bbpress.trac.wordpress.org/milestone/2.1

    For bbPress 2.02 user, I recommend you to use Rich Text Editor For Comments which is using jWYSIWYG, although it’s may be a bit hard for beginners to configure it as it lack a setting page.

    You can style the editor if you hate the default styling, provided that you know some CSS stuff.

    #113438

    In reply to: User registration

    pimarts
    Participant

    bbPress uses the default WordPress registration page.

    DOMAIN/wp-login.php?action=register probably works.

    #44869
    sakthikannan
    Member

    Dear All,

    Looks like customizing messages is not working. The following are the steps that I tried:

    1. Install Buddypress

    2. From the BP Forums settings page, choose to install Sitewide Forums; BBPress is installed

    3. Installed poedit; open bbpress.pot and saved as bbpress-en_US.po; changed the entry say line num 466 from started the topic… TO started the question…

    POEDIt automatically created a .mo file.

    Moved both po and mo file to wp-content/languages

    changed WP_LANG to en_US in wp-config

    Restarted the machine

    4. Create a new topic; still the old entry started the topic is diaplyed in activity stream

    I’ve done the same steps for buddpress-en_US and customizing messages works in BP.

    Could anyone please help me troubleshoot this.

    FYI, I’m using default theme of Buddypress

    Thanks in advacnce

    #108142
    Lynq
    Participant
    function bbp_list_forums( $args = '' ) {

    // Define used variables
    $output = $sub_forums = $topic_count = $reply_count = $counts = '';
    $i = 0;
    $count = array();

    // Defaults and arguments
    $defaults = array (
    'before' => '<ul class="bbp-forums">',
    'after' => '</ul>',
    'link_before' => '<li class="bbp-forum">',
    'link_after' => '</li>',
    'count_before' => ' (',
    'count_after' => ')',
    'count_sep' => ', ',
    'separator' => ', ',
    'forum_id' => '',
    'show_topic_count' => true,
    'show_reply_count' => true,
    'freshness_before' => '<td class="last-posted-box">',
    'freshness_after' => '</td>',
    'show_freshness_link' => true,
    'freshness_author_before' => '<div class="author-box">',
    'freshness_author_after' => '</div>'
    );
    $r = wp_parse_args( $args, $defaults );
    extract( $r, EXTR_SKIP );

    // Bail if there are no subforums
    if ( !bbp_get_forum_subforum_count( $forum_id ) )
    return;

    // Loop through forums and create a list
    if ( $sub_forums = bbp_forum_get_subforums( $forum_id ) ) {

    // Total count (for separator)
    $total_subs = count( $sub_forums );
    foreach ( $sub_forums as $sub_forum ) {
    $i++; // Separator count

    // Get forum details
    $count = array();
    $show_sep = $total_subs > $i ? $separator : '';
    $permalink = bbp_get_forum_permalink( $sub_forum->ID );
    $title = bbp_get_forum_title( $sub_forum->ID );

    // Show topic count
    if ( !empty( $show_topic_count ) && !bbp_is_forum_category( $sub_forum->ID ) )
    $count['topic'] = bbp_get_forum_topic_count( $sub_forum->ID );

    // Show reply count
    if ( !empty( $show_reply_count ) && !bbp_is_forum_category( $sub_forum->ID ) )
    $count['reply'] = bbp_get_forum_reply_count( $sub_forum->ID );

    // Counts to show
    if ( !empty( $count ) )
    $counts = $count_before . implode( $count_sep, $count ) . $count_after;

    // Show topic count
    if ( !empty( $show_freshness_link ) && !bbp_is_forum_category( $sub_forum->ID ) ) {
    $freshness_link = bbp_get_forum_freshness_link( $sub_forum->ID );
    $freshness_author = $freshness_author_before . bbp_get_author_link( array( 'post_id' => bbp_get_forum_last_active_id( $sub_forum->ID ), 'size' => 14 ) ) . $freshness_author_after;
    $freshness_link = $freshness_before . $freshness_link . $freshness_author . $freshness_after;
    }

    // Build this sub forums link
    $output .= $link_before . '<a href="' . $permalink . '" class="bbp-forum-link">' . $title . $counts . $freshness_link . '</a>' . $show_sep . $link_after;
    }

    // Output the list
    echo $before . $output . $after;
    }
    }

    This will give you more control over creating a theme which looks like Invision or PHPBB.

    You will have to customize your theme as well to make sure it is compatible.

    #108141
    Lynq
    Participant

    Hey guys,

    I have been searching for this myself aswell, but couldn’t find anything anywhere.

    If anyone is interested I modified the bbp_list_forums function to have a flag for freshness (last poster) to be displayed or not.

    function bbp_list_forums( $args = '' ) {

    // Define used variables
    $output = $sub_forums = $topic_count = $reply_count = $counts = '';
    $i = 0;
    $count = array();

    // Defaults and arguments
    $defaults = array (
    'before' => '<ul class="bbp-forums">',
    'after' => '</ul>',
    'link_before' => '<li class="bbp-forum">',
    'link_after' => '</li>',
    'count_before' => ' (',
    'count_after' => ')',
    'count_sep' => ', ',
    'separator' => ', ',
    'forum_id' => '',
    'show_topic_count' => true,
    'show_reply_count' => true,
    'freshness_before' => '<td>',
    'freshness_after' => '</td>',
    'show_freshness_link' => true
    );
    $r = wp_parse_args( $args, $defaults );
    extract( $r, EXTR_SKIP );

    // Bail if there are no subforums
    if ( !bbp_get_forum_subforum_count( $forum_id ) )
    return;

    // Loop through forums and create a list
    if ( $sub_forums = bbp_forum_get_subforums( $forum_id ) ) {

    // Total count (for separator)
    $total_subs = count( $sub_forums );
    foreach ( $sub_forums as $sub_forum ) {
    $i++; // Separator count

    // Get forum details
    $count = array();
    $show_sep = $total_subs > $i ? $separator : '';
    $permalink = bbp_get_forum_permalink( $sub_forum->ID );
    $title = bbp_get_forum_title( $sub_forum->ID );

    // Show topic count
    if ( !empty( $show_topic_count ) && !bbp_is_forum_category( $sub_forum->ID ) )
    $count['topic'] = bbp_get_forum_topic_count( $sub_forum->ID );

    // Show reply count
    if ( !empty( $show_reply_count ) && !bbp_is_forum_category( $sub_forum->ID ) )
    $count['reply'] = bbp_get_forum_reply_count( $sub_forum->ID );

    // Counts to show
    if ( !empty( $count ) )
    $counts = $count_before . implode( $count_sep, $count ) . $count_after;

    // Show topic count
    if ( !empty( $show_freshness_link ) && !bbp_is_forum_category( $sub_forum->ID ) ) {
    $freshness_link = bbp_get_forum_freshness_link( $sub_forum->ID );
    $freshness_link = $freshness_before . $freshness_link . $freshness_after;
    }

    // Build this sub forums link
    $output .= $link_before . '<a href="' . $permalink . '" class="bbp-forum-link">' . $title . $counts . $freshness_link . '</a>' . $show_sep . $link_after;
    }

    // Output the list
    echo $before . $output . $after;
    }
    }

    Let me know if you would like any help with I am currently customising my theme to work with it, you will need to add an extra th to your forum tables other you just have a blank in place.

    Hope someone finds this helpful!

    p.s. you can also specify a before and after in the arguments of bbp_list_forums.

    All the best.

    Lynq.

    #113552
    elnicole
    Member

    Me too. I want to be able to tell bbPress which layout in my theme to use. The default layout has a skinny column and 2 side columns. I don’t want this for the forum.

    Do you remember to change the forum slug in Setting > Forums in your dashboard? By default, both of them are using the page slug “forums” so there’re conflict between Group Forum & Sitewide Forum.

    Read here for more info:

    https://codex.buddypress.org/getting-started/installing-group-and-sitewide-forums/

    For installing group & sitewide forums:

    https://codex.buddypress.org/getting-started/installing-group-and-sitewide-forums/3/

    You can change the forums slug in your bbPress setting. Just navigate to Setting > Forums in your dashboard and change the default value in “Archive Slugs” & “Single Slugs”

    It’s recommended that you keep the “Single Slugs” enabled, since it’s what differentiate between a topic, tag, reply & user. Just change it to something different.

    spidersilk
    Member

    I’m in the process of converting a standlone BBpress 1.1 installation into the 2.02 plugin version (well, really, recreating it from scratch in the plugin version, because the importer apparently doesn’t work if your blog actually has any users or content).

    And I’ve run into a problem – the default permalink structure for the BBpress plugin is really bizarre. It adds a “forums” slug for the forums area, which is fine and to be expected, but then it also insists on adding an additional “forum” slug before the name of each forum, so that instead of a normal URL like example.com/forums/announcements, you get example.com/forums/forum/announcements, which looks weird and awkward. I tried just removing the forum slug, but that left a double slash in the URL, which my web browser then reduced to a single slash, resulting in a 404 error.

    And for posts within forums, instead of the sort of URL you would normally expect – i.e. for a post in the announcements forum, something like example.com/forums/announcements/welcome, or example.com/forums/announcements/12345 or whatever, you have example.com/forums/topic/welcome – there doesn’t appear to be any way to associate the posts with the actual forum they’re in.

    Is there any way to fix this? Obviously the “forums/forum” thing is the most important – having the completely useless “topic” slug in the post URLs is annoying and pointless, but the “forums/forum” thing makes it look like I was drunk when I set the forums up or something – I really can’t let it go live with a glitch like that in the URLs. But I’d like to fix the topic issue too if possible. Any ideas?

    #113520

    In reply to: email notification

    locomo
    Participant

    not sure if this is the best way but I’m doing this to have the checkbox checked by default:

    /* set forum subscription field checked by default */

    function my_forum_topic_subscribed_by_default() {

    echo ‘<script type=”text/javascript”>jQuery(“#bbp_topic_subscription”).prop(“checked”,”checked”);</script>’;

    }

    add_action(‘bbp_theme_after_topic_form_subscriptions’, ‘my_forum_topic_subscribed_by_default’);

    add_action(‘bbp_theme_after_reply_form_subscription’, ‘my_forum_topic_subscribed_by_default’);

    #44637
    Nate
    Participant

    Problem: Remove sidebar from bbPress

    Solution: My theme has a Full Width option

    I know that if I input my shortcode into a Page, it will display the forum in the Template of my choosing. Presto, the forum index is within Full Width.

    Yet when the user decides to choose a forum, they’re relegated to the Theme’s default Template, which includes the sidebar.

    Meeeeh.

    Is there a quick and dirty way to tell bbPress to use the Full Width template that’s already available?

    I recently noticed that when I try to start a topic or posting a reply, it’s taking about 30+ second before the topic/reply is show up. If you try to tell me there may be a “bad plugin” and try to disable all of it except bbPress, save it. I have tried the following:

    1. Using different browser.

    I find out that when I try to use Firefox 12.0 to post, it’s loading extremely slow. But this is not happening in Internet Explorer 9 or Google Chrome 18.

    Try to start Firefox in safe mode? Yes I have tried to do that but it doesn’t make a difference.

    2. Using different user/computer.

    It’s still the same.

    3. Try to post a comment in a normal post.

    I was able to comment a post without any problems, so I think it may be a “bad plugin” problem.

    4. Disable all plugin (except bbPress & BuddyPress)

    But the same thing happen. FYI I don’t edit either the bbPress or BuddyPress files.

    5. Using different theme.

    I replace my modified custom community theme with BuddyPress Default theme and see if I putting bad codes in my theme. But this doesn’t solve problem even I tried other themes.

    6. Change permalink structure.

    It doesn’t make any changes, and I don’t think it will help.

    7. Reinstall WordPress, bbPress & BuddyPress

    Still doesn’t make any changes.

    8. Create a new install in another domain.

    I use http://scirefs.com/ as my main and http://www.scirefs.org as a sandbox (with the same configuration as in SCIREFs.com) with only bbPress and BuddyPress activated. But everything works fine in SCIREFs.org with either bbPress 2.02 or 2.1 and I have no issue with Firefox 12.

    9. The Cloudflare……

    Since I have Cloudflare as my CDN for SCIREfs.com but not SCIREFs.org, I tried to remove SCIREFs.com from Cloudflare and add SCIREfs.org to it and see what happens. The result: The issue with Firefox at SCIREFs.com disappear but SCIREfs.org is now facing the old issue.

    Do anyone here have any ideas what’s wrong with it? Or someone here is facing the same problem? This seems to be the first and the only problem I can’t figure it myself.

    You can login to SCIREFs.org using the following information:

    Username: demo

    Password: demo

    URL of the forums: http://www.scirefs.org/test-forums

    And try to start a topic or post a reply using Firefox and see if it’s happening to you.

    #109942
    kennymcnett
    Member

    Thanks mattsimo and jaredatch. Worked the charm.

    Here are all of the $args and the defaults, FYI (pulled from bbPress core file: bbp-common-template.php)

    // HTML
    'before' => '<div class="bbp-breadcrumb"><p>',
    'after' => '</p></div>',
    'sep' => is_rtl() ? __( '&lsaquo;', 'bbpress' ) : __( '&rsaquo;', 'bbpress' ),
    'pad_sep' => 1,

    // Home
    'include_home' => $pre_include_home,
    'home_text' => $pre_front_text,

    // Forum root
    'include_root' => $pre_include_root,
    'root_text' => $pre_root_text,

    // Current
    'include_current' => $pre_include_current,
    'current_text' => $pre_current_text

Viewing 25 results - 4,451 through 4,475 (of 6,788 total)
Skip to toolbar