Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 6,701 through 6,725 (of 32,522 total)
  • Author
    Search Results
  • #173202
    twiz911
    Participant

    WordPress 4.3
    bbPress 2.5.7

    My forums have topics but no topics are showing. It is correctly showing:

    “This forum contains 1 topic, and was last updated by…”

    but also displays

    “Oh bother! No topics were found here!”

    an no topics are listed.

    I checked /wp-admin/edit.php?post_type=topic and no topics are associated with any forums. However, I re-associated each topic with the correct Forum and these changes were persisted on /wp-admin/edit.php?post_type=topic but does not make any difference to the error above and no topics are listed within any forums.

    Please advise where in the code I should start debugging?

    Thanks

    Example forum with 1 topic not showing:
    http://www.trenerrycrescent.com/forums/forum/potential-electrical-fire-risk-bathroom-fan-timers/

    #173189
    talhawp
    Participant

    Hi Everyone,

    I finally upgraded my bbpress 1.x to bbpress 2.5.6 after running it for 7 years. The import process took almost a day with 0.5+ million posts.

    Now I am facing issue with slow performance, despite running on physical server with 16 core CPU and 16 GB RAM. The upgrade ran fine for few hours has but been very slow from last 12 hours.

    The wordpress and bbpress are both so slow that sometimes even the site fails to load. HTOP shows all CPU cores running mysql up to 90%.

    I enabled slow query on mysql (mariadb) and it is giving the following output:

    [root@server]# mysqldumpslow -t 5 -s at /var/log/mariadb/mysql-slow.log 
    
    Reading mysql slow query log from /var/log/mariadb/mysql-slow.log
    Count: 7485  Time=25.48s (190747s)  Lock=2.85s (21328s)  Rows_sent=10.0 (74810), Rows_examined=1582056.1 (11841689862), user[database]@localhost
      SELECT   wp_posts.ID FROM wp_posts  INNER JOIN wp_postmeta ON ( wp_posts.ID = wp_postmeta.post_id ) WHERE N=N  AND ( 
      ( wp_postmeta.meta_key = 'S' AND CAST(wp_postmeta.meta_value AS SIGNED) NOT IN ('S','S') )
      ) AND wp_posts.post_type = 'S' AND ((wp_posts.post_status = 'S' OR wp_posts.post_status = 'S')) GROUP BY wp_posts.ID ORDER BY wp_posts.post_date DESC LIMIT N, N
    

    I tried disabling other plugins but it did not make any difference, however the CPU returns to low if I disable bbpress plugin.

    Can anyone guide me on what could be the issue here?

    Regards,
    T

    #173187

    In reply to: Help!

    Robin W
    Moderator

    ok, so go into your dashboard and go to

    dashboard>plugins>add new plugin and you’ll see near the top left a box that says ‘upload plugin’ ‘ click that and then navigate to were you saved the downloaded bbpress plugin zip file.

    Click install and then activate

    Then for further help go to

    https://codex.bbpress.org/step-by-step-guide-to-setting-up-a-bbpress-forum/

    krroken
    Participant

    Hi everyone,

    i am new to bbPress, i took some time to search the forums for answers but i have only found a few things.

    So here is my issue. I’m starting a new blog and i would like :
    1. my blog posts to be automatically posted to the forums (either with full post content or with excerpt & link back to the blog).
    2. people that want to comment blog posts to do it from the forum (after registering)
    3. forum comments being displayed on the blog

    That’s something i used to have on an old project using IPB and WP (i had my own plugin coded to do that) but i was expecting bbPress to allow that directly.

    Apparently i was wrong, i only found the Topics for posts plugin to do that but it seems outdated.

    Any other simple solution to do what i want ?

    #173162
    r-a-y
    Participant
    #173159
    Robin W
    Moderator

    ok, put this into your child theme css

    .legend {
    display : none ;
    }
    
    

    or amend line 17 of pretitude.com#2 to change the display

    #173142
    dasboo125
    Participant

    Hi there

    I am using WordPress Version 4.4.2 and BBPress v2.5.8. I am using a magazine theme called Soledad which allows a number of custom sidebars.

    After setting the forum root to community (and I removed the shortcode from a page) and seeing that I did not have a sidebar, I created a new bbpress.php in a child theme to enable it.

    At first the sidebar was showing as the default one on the main forum index and the individual forums and topics were showing a custom side bar that I had assigned to posts (it shows the author bio)

    After I installed BB WP Tweaks, the main forum index page is showing the correct side bar after adding in the widgets into the BBPress sidebar. However, individual forums and topics are still showing the sidebar assigned to post.

    Any help much appreciated. I have read the how to page on setting up specific sidebars, but not luck.

    Thanks
    Laura

    #173138
    alwaysalready
    Participant

    Just in case anyone is looking to do this, I found a way to remove the pagination altogether (although not top and bottom independently).

    Add the following to the functions.php file in your active theme folder:

    add_filter( 'bbp_get_forum_pagination_count', '__return_false' );

    #173137
    imagecrisis
    Participant

    Try changing:

    $active_topic = $bbp->current_topic_id;

    …to:

    $active_topic_id = $bbp->topic_query->post->ID;

    #173133
    blackbird16k
    Participant

    I did a site insert and I found out it’s the “bbp-forum-content” How do I go about editing it to make the font bigger? What code would I use??

    #173132
    blackbird16k
    Participant

    I did a site insert and I found out it’s the “bbp-forum-content” How do I go about editing it to make the font bigger? What code would I use?

    #173126
    Pascal Casier
    Moderator

    Hi,
    Is this the standard /forums ? Then start creating a standard WordPress page and add the [bbp-forum-index] on it. Now you can add any other shortcut or text on this same page.

    Pascal.

    Shortcodes: https://codex.bbpress.org/features/shortcodes/

    #173121
    blackbird16k
    Participant

    Hello, So I changed the forums topic size. For my forum, but somehow the titles of the threads and the forum names were enlarged but the description of each forum is still small (12px.) I wanted to know, did anybody know how I can change the forums topic description font size as well with the code below? What would I put to change the description size along with the title font size. Thanks. 🙂

    #bbpress-forums div.even,
    #bbpress-forums ul.even {
    background-color: #fff;
    font-size: 18px;
    }

    #bbpress-forums div.odd,
    #bbpress-forums ul.odd {
    background-color: #fbfbfb;
    font-size: 18px;
    }

    #173116
    blackbird16k
    Participant

    Hello, so I’m looking forward to editing and changing some things on my bbpress. I’m looking to edit the backgrounds of the header, footer, reply header etc… But I notice through the link below the edits only show background color to change…

    bbPress Styling Crib

    I’m actually planning on using background images instead of a plain color. So I was wondering, if anybody knew how I go about putting a background image in place of the background color without messing up the code. Thanks in advance.

    Also for 7. Template Notices Do anybody know which one is strictly for the color of the background? Without changing the text color, I just want to change the blue box to a certain orange color. Thanks…

    one last change question…

    for the editing of 4. Topic/reply background, is there a possible way of just editing the topics background and leaving the actual post background white? Since both of them are considered under the same category. I was interested in changing the topics boxes and not affecting the background of the actual posts background.

    #173105
    pazzaglia
    Participant

    OK, started my own topic as I was, obviously, not clear enough for my question. I thought it would have been a simple tweak (for someone who know what they’re doing) of this code but, apparently not.

    How to set single default thumbnail for all “topic” content types?

    Ciao,

    L

    #173100

    In reply to: Recents topics

    Pascal Casier
    Moderator

    Use this as CSS:

    .bbp-search-form {
        display: none;
    }
    #173096
    tech55541
    Participant

    Hello,
    Site is still a little unstable, but I think it is good enough to get this problem fixed.
    Just so we all understand, here is what is going on. The menu is designed to open on mouse hover and then close when the mouse pointer leaves the menu. On mobile devices such as phones and tablets, you cannot close the menu because clicking Options opens it. We need to add some additional code to first check if the menu is open, if not, on click open it, if so, on click close it. Would this be a doable task?

    You do have to login to see the options menu, this user account will be deleted as soon as we are done using it.
    Username: bbpress.org-support
    Password: 5oj^gI6OOx*DrCeAlM4J7ZKG
    URL: http://yourtechadvisors.com/forums/topic/testing/

    Thanks for your help.

    munkitkat
    Participant

    I tried creating a plugin from the code above, but I couldn’t activate it. Can someone please help me with a step by step fix for a regular WP install?

    #173081
    Pascal Casier
    Moderator

    Thanks for the code !
    Pascal.

    #173074
    MarcGuay
    Participant

    Hi Pascal,

    Thanks for replying. It seems that the bbp_form_option() function is not available where I’m trying to get the value, but it’s basically a wrapper for get_option() so I can use that. Also, I was trying to grab the forum root slug, so the following has worked for me:

    home_url(get_option( '_bbp_root_slug', 'forums' ));

    Thanks for pointing me in the right direction.
    Salut,
    Marc

    #173072
    Pascal Casier
    Moderator

    Can’t test here, but did you check echo bbp_form_option( '_bbp_forum_slug', 'forum', true ); ?

    #173068
    MarcGuay
    Participant

    Here’s a filter that will redirect admins and editors to the admin panel after login.

    add_filter('bbp_redirect_login', 'custom_bbp_redirect_login', 10, 3);
    function custom_bbp_redirect_login($url, $raw_url, $user){
    	if ( !empty($user) && !empty($user->roles) && (in_array( 'administrator', (array)$user->roles ) || in_array( 'editor', (array)$user->roles )) ) {
    		return get_admin_url();
    	} 
    	return $url;
    }
    #173063
    Robin W
    Moderator

    @tech55541

    If it works on PC, tablets etc. but doesn’t on a mobile, this will not be code functionality, but either JS or CSS.

    Given that few mods will have the time to work out what this code is doing, let alone load it to their site, a URL to a page where it works on a PC but doesn’t on a mobile would be useful.

    #173058
    karthickeyang
    Participant

    i want to show search bar on top of category page,
    i pasted <?php echo do_shortcode(“[bbp-search-form]“); ?>
    above shortcode in content-single-forum.php , i get search bar in category page but in sub forums page
    i get 2 search bar..

    #173050
    kodacollider
    Participant

    I’m not, I am using a child theme of Twenty Twelve that I’ve been creating.

    I actually got this figured out, on a whim I decided to try your $args[‘type’] = ‘list’; again and for whatever reason this time it worked. I don’t know if I may have just overlooked it the first time, or what.

    My function:

    function bbp_custom_pagination_links( $args ) {
        $args['type'] = 'list';
        return $args;
    }
    add_filter ('bbp_topic_pagination','bbp_custom_pagination_links');

    I will still have to go through and do the same thing for other instances of pagination within bbPress, but that has worked for the topic list. It’s just a matter of styling the list elements with CSS at that point to get them aligned horizontally.

    Thanks for all of your help, I really do appreciate it.

Viewing 25 results - 6,701 through 6,725 (of 32,522 total)
Skip to toolbar