Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 7,251 through 7,275 (of 32,519 total)
  • Author
    Search Results
  • #169629
    Robkk
    Moderator

    @omj-1

    Your subforums are for some strange reason not wrapped in a list structure like this.

    <ul class="bbp-forums-list">
        <li class="bbp-forum">
            <a href="http://link" class="bbp-forum-link">Forum 1</a>
        </li>
        <li class="bbp-forum">
            <a href="http://link" class="bbp-forum-link">Forum 2</a>
        </li>
    </ul>

    But instead it is just links.

    Try this CSS instead to have the same layout.

    .bbp-forum-info a.bbp-forum-link {
        display: block;
    }
    #169626
    Robkk
    Moderator

    @reedy

    copy loop-forums.php or any other templates you want to edit to a child theme into a folder called bbpress and you should be fine.

    Theme Compatibility

    #169625
    Robkk
    Moderator

    Since I am sure your theme is using custom templates to have the edit/or replace the back to disscussions code with <?php bbp_breadcrumb(); ?>. It would be preferred if you copied the file you would need to edit to your child theme in a folder called bbpress.

    #169612
    erich199
    Participant

    @robkk,
    I thought the exact same thing when they sent the code. Hopefully we see this as a core feature in the future updates of bbpress.

    One can make the button visible to logged in users only by using the
    <?php if ( is_user_logged_in() ) : ?> button code here <?php endif; ?>


    @adventureridingnz
    ,

    I’m not sure, I’ll have to do some testing on my site to see if it will work with forums.

    #169611
    o.m.j
    Participant

    hello…I had this working when I 1st setup my site, I just noticed it has reverted back…

    I was using the following css code in my child theme:

    #bbpress-forums .bbp-forums-list li {
    display: block;
    }

    I just tried switching to the filter in functions but it’s not working either…

    any idea why this would stop working? thx!

    http://www.badboyzromz.com/forums/

    #169592
    Alex Seidanis
    Participant

    Currently at 67K and going.

    Some assistance please; this query:

    SELECT DISTINCT 'post_author'
    FROM 'wp_posts'
    AS t1
    LEFT JOIN 'wp_users' AS t2 
    ON t2.ID = t1.post_author
    WHERE t2.ID IS NULL AND t1.post_type = 'reply'
    ORDER BY 't1'.'post_author' ASC

    returns 306 results. This one:

    SELECT COUNT(*)
    FROM 'wp_posts'
    AS t1
    LEFT JOIN 'wp_users' AS t2 
    ON t2.ID = t1.post_author
    WHERE t2.ID IS NULL AND t1.post_type = 'reply'

    returns the number 29547.

    So, there are 29547 replies attributed to 306 users that don’t exist in the user table. Will that get fixed by the repair tools or should I stop the process and try something else?

    #169587

    In reply to: Featured slider

    galiulinr
    Participant

    The question is outdated, but I also needed a slider. Today I use “Yet Another Related Posts Plugin” + “Related Posts Slider“. It works for me.I added a shortcode in a page template forum. Maybe it will help someone.

    #169582
    dave1900
    Participant

    I have the same issue with my total theme, but your solution doesn’t work πŸ™ Do you have another solution? … maybe I have to set some <?php … ?> before and after the code?

    #169581
    WebsitesbyMark
    Participant

    I want to add additional infomation and help test to the regsiter page.

    I have added [bbp-register] to my register page but it does not show the additional content outside the shortcode.

    With the latest version of BBPpress how do I do that? (if its adding a file to my theme what do I use as a basis and what file structure does it need to sit in my theme? (i.e does it sit in the theme folder or does it need to match the structure of the defualt theme)

    #169572
    Stephen Edgar
    Keymaster

    The above was spam πŸ˜‰

    It theoretically continue to run at the same speed at reply 1-100 or 90,000 – 90,100.

    A recent case of similar behaviour was due to another plugin being active and hooking into pre_get_posts(), this caused every single post being imported to be run through this and was the cause of the slowness.

    Check what other plugins are running to see if this is the cause.

    And no, *all* bbPress data is stored in the standard WordPress db tables, bbPress does not create any tables of it’s own.

    #169550

    In reply to: Shortcodes and Menus

    bpakclac2015
    Participant

    Alright…It appears that setting the type of topics, as in; Normal, Sticky or Super Sticky, changes the behavior of the shortcode [bbp-single-forum id=].

    I made all test topics’ type in both forums, to Normal and the problem disappeared. Same behavior with Sticky.

    To wrap-up, a type Super-Sticky, will get these forums show up, no matter that you specify an exact one with the [bbp-single-forum id=] shortcode.

    #169548
    drewamca
    Participant

    I tried to put this code to my theme’s bbpress.css file but it didn’t work. Also I tried buddypress plugin’s bbpress.css but it didn’t work either.


    @robkk

    #169547
    Momshof
    Participant

    Any ideas why this happens? Still can not get the

    align left
    align center
    align right
    font family
    font size
    underline
    text color
    background color (for text)

    to work for front end users.

    I tried Tiny MCE Advanced and it caused alot of issues – half of an individual post showed up in my black background – half in the “white” text area – still did not allow proper showing of the above formatting (showed code when published) – really a mess so I went back to WP Edit.

    Also – all buttons are working fine in my other areas (like Sabai directory) for front end users – just BBPress?

    #169541
    Alex Seidanis
    Participant

    Update (and info for the developers):
    I have the import process running in one tab, and a random admin page in another, which I keep re-loading to maintain the session alive. Meanwhile, I also occasionally run this query on the database to keep an eye on things:

    SELECT COUNT(*) FROM 'wp_posts' WHERE 'post_type'='reply'

    Here’s what I noticed:

    Although the import process tab states that it’s

    Converting Replies (51700 – 51799)

    the actual total replies imported at any given time are in the next range, eg. between 51800 and 51899 (resulted by the MySQL query above).

    Whenever it stalls without outputting dashes, it’s always on a round figure, eg. 51600, and re-starting the import process starts at 51601 OK.

    Also, at one occasion, the session expired. I logged back in at the second tab, then returned to the importing tab and as soon as I closed the login modal, the import pane started outputting dashes.

    I’ll keep this topic updated with any further info until the import completes. Hope this proves useful to someone.

    #169538
    DealL
    Participant

    @casiepa thank you for the help πŸ™‚


    @robkk
    your code has worked perfectly πŸ™‚ thanks a lot πŸ™‚

    #169535
    Allyson
    Participant

    Hi, I’m trying to make some filters in my single-forum and other pages queries, but my changes with pre_get_posts results in “Content not found”.

    Here’s a example of my code:

    function bbpress_site_queries( $query ) {
    	if ( $query->is_main_query() && $query->is_single( 'forum' ) ) {
    		$query->set( 'order', 'DESC' );
        }
    }
    add_action( 'pre_get_posts', 'bbpress_site_queries' );

    What is wrong? There’s other way, better to modify bbPress queries? I want to change queries to make in front-end some order and other filters.

    #169530
    Stephen Edgar
    Keymaster

    Sorry this isn’t the best of experiences πŸ™

    Can you try the 2.6 alpha version, available from this page as “development version”
    β€’ https://wordpress.org/plugins/bbpress/developers/
    β€’ aka https://downloads.wordpress.org/plugin/bbpress.zip

    Also if you “right click” any of the items as they import and select “Inspect element” to view the source code you will see the direct MySQL queries as they happen, you can then use these to help debug directly in phpMyAdmin πŸ™‚

    #169504
    bpakclac2015
    Participant

    Good day guys!

    I have the same issue with two forums; an English and a French one.
    When I shortcode to one from a page called up by a menu item, it displays fine, but when I do the same from another menu item(the French one) from another page, and shortcode to the other forum, then bbPress shows both of the forums.

    See it here.
    http://www.businessperformances.com

    #169503
    Momshof
    Participant

    Hey – I entered the code above in my child theme functions php file and my site went white. No pages would come up – all just white.

    In chrome it said 500 error – in firefox just white screen. Any ideas?

    #169488
    drewamca
    Participant

    @robkk

    Hi, I’m looking for this kind of code for a long time and I’m so glad to find it. But I didn’t understand that where I should paste this code?

    Thanks πŸ™‚

    #169475
    Robkk
    Moderator

    @kallard

    Checking your site again, the padding for the bbPress forum header that shows the labels looks a little cozy to the left, you may need to edit the padding-left: 0 !important;, by default I think the padding is set to about 8px, maybe setting 0 to 8px or removing the !important might help with that.

    #169473
    Robkk
    Moderator

    @casiepa

    That code will make it where if you visit your profile the title tag will display Your, instead of, Your Profile, Your Topics, or Your Favorites, etc.


    @deall

    Use something like this for only the single topic, and single forum pages.

    Add this php code snippet into your child themes functions.php file, or in a plugin like functionality.

     function rkk_custom_titles( $new_title ){
       if ( bbp_is_single_forum() ) {
      		$new_title['format'] = esc_attr__( '%s', 'bbpress' );
    
      	// Topic page
        } elseif ( bbp_is_single_topic() ) {
      		$new_title['format'] = esc_attr__( '%s', 'bbpress' );
    
      	}
         return $new_title;
     }
    
     add_filter( 'bbp_before_title_parse_args', 'rkk_custom_titles' );
    #169472
    Pascal Casier
    Moderator

    Hi,
    You will have to look for the bbp_before_title_parse_args filter. Just an example below, but it will need tuning probably:

    function bbppc_format_titles( $new_title ){
            // Format to title only
    	$new_title['format'] = '%s';
    	return $new_title;
    
    }
    add_filter( 'bbp_before_title_parse_args', 'bbppc_format_titles' );

    Pascal.

    #169458
    Robkk
    Moderator

    No it is not really about content, what I think your experiencing is a bug. I have seen it before on these forums.

    It has to do with using lists <li> and not surrounding it in an unordered <ul> or ordered list <ol>.

    This issue might be happening, because bbPress uses lists for its forum layout.

    To fix it, you can edit your post and make sure that the lists <li></li> have a surrounding unordered or ordered list around it like so.

    <ul>
        <li>Some List</li>
    </ul>
    #169457
    Robkk
    Moderator

    How do I add the number of posts under the name and the symbolic images of the user?

    Post count is coming to a future release of bbPress. You can use a plugin like this to add the counts for now.

    https://wordpress.org/plugins/bbp-topic-count/

    What exactly do you mean by symbolic images??

    How do I change the title to any user of an optional title?
    Ex: the title of the current user in the Forum (supervisor) want to have the title of supervisor (supervisor pictures)

    You can rename the current forum roles to whatever you want with this php code snippet in this guide. Add the function to your child themes functions.php or in a plugin that can hold custom code snippets like functionality.

    Layout and functionality – Examples you can use

    You can also create custom user roles with custom capabilities and add the custom names there.

    Custom Capabilities

    How to determine the powers of the supervisors so far have not I transfer Lists Musharraf to it have all the powers modification and deletion of all sections I wanted to be the powers of the supervisor on only a particular section

    Assigning a user to a forum is not possible in the default functionality of the latest stable version of bbPress.

Viewing 25 results - 7,251 through 7,275 (of 32,519 total)
Skip to toolbar