Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'bbpress'

Viewing 25 results - 31,951 through 31,975 (of 64,744 total)
  • Author
    Search Results
  • #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!

    #44904
    deathbybear
    Participant

    hey everyone – i’m a newbie at wordpress, bbpress and php – but pretty decent with general html/css stuff.

    i’m working on customizing a bbpress installation with the twentyten bbpress theme and want to set it up so on the main “Forums” page there is a Recent Activity column that displays information about the most recent post –

    1. the topic the post was made in

    2. the poster

    3. the poster’s avatar

    4. how long ago the post was mad

    i have edited the loop-forums.php file to add the additional “Recent Activity” column to to the list of Forums – now I just need to figure out how to pull those pieces of information into the column.

    i have created a placeholder column in loops-single-forum.php file where the information will be pulled, i just don’t know how to get it in there – i imagine there are existing functions i can call to pull this data, i just don’t happen to know what those are or where to find them!

    any guidance you could give me would be greatly appreciated. thanks a lot!

    #113692
    vibol
    Member

    This looks like an issue with WP_Meta_Query issuing a CAST for all rows in wp_postmeta during the query.

    Relevant LOCs in meta.php:

    $where[$k] = ' (' . $where[$k] . $wpdb->prepare("CAST($alias.meta_value AS {$meta_type}) {$meta_compare} {$meta_compare_string})", $meta_value);

    There are several options to pursue:

    * Store thread ids in a separate table and intercept get_meta_sql filter to update the query to look in the correct table for _bbp_topic_id lookups.

    * Update WP_Meta_Query to read relevant types from type-specific tables (i.e. wp_postmeta_unsigned) for topic_id lookups. Requires updating mechanisms to save metadata into type-specific tables as well.

    What are some other options?

    #44892

    Hi,

    How can I rename Topics to Tickets in BBPress? I have renamed the tags as such but would like the actual topics heading to read Tickets.

    I also notice on this message system you have a sub menu ‘not resolved’, ‘resolved and ‘not a support question’, which is something I would also like to include.

    I am trying to build a Project Management and Support system that includes tickets. I already have a general forum function via Buddypress, so I created a secondary forum page called tickets and included the shortcodes to configure it as a ticket system.

    I have looked around the net and here extensively, so forgive me if I have overlooked something obvious.

    Thanks in advance.

    #44891

    Topic: 2 Bugs

    in forum Troubleshooting
    cus003
    Member

    I have 2 bugs to report. Latest WordPress and BBpress plugin. No bbpress plugins.

    1) I don’t know if anyone else has experienced this, but when I update my profile using the front-end profile editor, it resets the “disable visual editor” and “show admin bar on frontend” thingys so that I always see the visual editor (which i hate) and I don’t see the admin bar. So every time, I have to go back to backend and manually change them again!

    2) I logged out, after replying to a thread, then immediately logged in on another account. Yellow text appeared above the reply box saying “you are now logged out”. Then I immediately posted a reply with apostrophies in, and instead of posting it, it reloaded the page with slashes added. I manually removed the slashes, hit the post button, and this time it worked as normal.

    Anyone else got either of these?

    #113691
    vibol
    Member

    This seems to have the right idea, but I’m not sure it covers WP_Query queries where the search criteria is against a meta key. The query has to cast an unindexed full-text field to char across N rows to find matching values.

    The generated query fragment that is problematic is this:

    wp_postmeta.meta_key = '_bbp_topic_id'
    AND CAST(wp_postmeta.meta_value AS CHAR) = '787852'

    It’s a core issue since Threads are used to group up Posts.

    #113690
    Gautam Gupta
    Participant

    #1823 should address this.

    #44887
    HgtuRgg
    Member

    Hi all,

    I have been going nuts as to how I can successfully install bbpress latest version. Well, I tried everything and all just failed.

    I downloaded the latest files, uploaded it in my root directory but never I did get the bbpress installation page. I am using latest WP installation (this is the intended URL http://www.easyenglishlearning.org/ask/) but I never got the bbpress installation instructions page.

    Moreover, I also uploaded it to my plugins directory as mentioned in the downloading page and I got it in my Wp dashboard but it came just as a plugin and nothing a different forum software where I can change theme, and everything. Now, please guide me.

    Kalyan

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

    #62780

    I couldn’t make it work.

    Is this translation regarding admin or front end?

    #113679
    acousticwebdesign
    Participant

    Thanks for the reply Jarret, but there is no “Enable Fancy Editor” setting in Settings -> Forums.

    I’m using BBPress 2.0.2.

    What Section is it under on the settings page (Main Settings, Per Page, Per RSS Page,…)?

    #113677
    acousticwebdesign
    Participant

    How do you enable tinymce. I am using bbpress 2.0.2 and don’t see this option anywhere.

    Also, users can’t enter anything that looks like xhtml tags. It gets deleted when submitted. How can I enable this as well?

    #113676
    Gautam Gupta
    Participant

    bbPress 2.0 (the plugin) has built-in support for tinymce. I guess bbPress 1 would not see any more feature additions.

    #113438

    In reply to: User registration

    pimarts
    Participant

    bbPress uses the default WordPress registration page.

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

    #113147
    scheena
    Member

    I just wanna ask, how did you add the latest discussion at the very top? Im kinda a newbie about this :D

    vibol
    Member

    I was troubleshooting an issue with a rather large migration to bbPress (1.6MM posts) and bbPress 2.0.2 is very slow to load thread pages.

    It looks like bbPress (WP_Query) is trying to do an unindexed query lookup:

    CAST(wp_postmeta.meta_value AS CHAR) = '787852'

    The query takes quite some time and does a full table scan:

    # Time: 120518 19:23:53
    # User@Host: db[db] @ localhost []
    # Query_time: 9.688145 Lock_time: 0.000050 Rows_sent: 3 Rows_examined: 1623367
    SET timestamp=1337387033;
    SELECT SQL_CALC_FOUND_ROWS wp_posts.* FROM wp_posts INNER JOIN wp_postmeta ON (wp_posts.ID = wp_postmeta.post_id) WHERE 1=1 AND wp_posts.post_type IN ('topic', 'reply') AND (wp_posts.post_status = 'publish' OR wp_posts.post_status = 'closed') AND ( (wp_postmeta.meta_key = '_bbp_topic_id' AND CAST(wp_postmeta.meta_value AS CHAR) = '787852') ) GROUP BY wp_posts.ID ORDER BY wp_posts.post_date ASC LIMIT 0, 25;

    Here’s a simple stack trace:

    /home/site/public_html/wp-includes/query.php   2498   get_sql ()   -- /home/site/public_html/wp-includes/
    /home/site/public_html/wp-includes/query.php 2913 get_posts () -- /home/site/public_html/wp-includes/
    /home/site/public_html/wp-includes/query.php 3000 query () -- /home/site/public_html/wp-includes/
    /home/site/public_html/wp-content/plugins/bbpress/bbp-includes/bbp-reply-template.php 129 __construct () -- /home/site/public_html/wp-content/plugins/bbpress/bbp-includes/
    /home/site/public_html/wp-content/themes/site/bbpress/content-single-topic.php 35 bbp_has_replies () -- /home/site/public_html/wp-content/themes/site/bbpress/
    /home/site/public_html/wp-includes/theme.php 1117 require () -- /home/site/public_html/wp-includes/
    /home/site/public_html/wp-includes/theme.php 1091 load_template () -- /home/site/public_html/wp-includes/
    /home/site/public_html/wp-includes/general-template.php 128 locate_template () -- /home/site/public_html/wp-includes/
    /home/site/public_html/wp-content/plugins/bbpress/bbp-includes/bbp-core-compatibility.php 144 get_template_part () -- /home/site/public_html/wp-content/plugins/bbpress/bbp-includes/
    /home/site/public_html/wp-content/themes/site/single-topic.php 33 bbp_get_template_part () -- /home/site/public_html/wp-content/themes/site/
    /home/site/public_html/wp-includes/template-loader.php 43 include () -- /home/site/public_html/wp-includes/
    /home/site/public_html/wp-blog-header.php 16 require_once () -- /home/site/public_html/
    /home/site/public_html/index.php 17 require () -- /home/site/public_html/

    Here’s the $bbp_r query passed into WP_Query:

    Array
    (
    [meta_query] => Array
    (
    [0] => Array
    (
    [key] => _bbp_topic_id
    [value] => 1623928
    [compare] => =
    )

    )

    [post_type] => Array
    (
    [0] => topic
    [1] => reply
    )

    [orderby] => date
    [order] => ASC
    [posts_per_page] => 25
    [paged] => 1
    =>
    [post_status] => publish,closed
    )

    #44874
    Konamito
    Member

    Hi there,

    I’ve looking for a solution to show below one of my blog pages a topic discussion from bbpress forum. The problem I have is that this page has the Visual Editor off in order to write PHP inside for my convenience.

    So I can’t use the shortocodes there and neither the php code as it appears in the plugin templates. Because the code has to make a loop to show all the discussion for this certain topic I think it is not possible to integrate a PHP code for that on my own PHP code…

    Any idea about this?

    #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

    #44867
    serulin
    Member

    I’m surprised that BBpress doesnt have a visual text editor. Are there any plans to create one or have support for integrating existing ones like tinymce/ckeditor ?

    I’m currently using bbPress Post Toolbar and find it kind of lacking.

    #113603

    In reply to: BBPRESS SLUG PROBLEM

    WordPress runs post slugs through a sanitization filter to make sure there are no collisions. As such, no two slugs can be the same, regardless of the type of content that it is.

    Lynq
    Participant

    No problem at all, I didn’t like the formatting either lol.

    Jarret
    Participant

    Made a few edits to use syntax highlighting and section headings, hope you don’t mind!

    Jarret
    Participant

    Yeah, had to help with that just last night. I checked your doc page though regarding bbp_list_forums and the formatting is a bit off making it hard to read for those still learning.

    Lynq
    Participant

    Awesome, it works!

    You should be able to login here https://codex.bbpress.org/wp-admin/ with your bbPress username/pass.

    Then just head to pages.

Viewing 25 results - 31,951 through 31,975 (of 64,744 total)
Skip to toolbar