Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 10,101 through 10,125 (of 32,504 total)
  • Author
    Search Results
  • #154714
    kup1986
    Participant

    Hi

    We are using this plug in for one of our clients. Their site just went live after being designed, built, and tested on our beta server. Everything worked great, so we moved it to the live server this week.

    However, now that they’re on the live site, new forum users are not receiving their email notifications containing their password. In Beta, there was no email “link” as far as I could tell between the Beta site and our hosting. When a new user would register, they would receive an email from wordpress@clientname.org. Within our hosting back end, I can see that emails were actually sent from ourusername@ourbetaserver.com.

    Within the Dashbaord/Settings/General, I’ve made certain that the email account listed on that screen matches what was set up with their hosting provider. I’ve dug through the files until I can see code with my eyes close and cannot figure out how to make this work again.

    I’ve just now learning development, so please help (at a 101 level). I appreciate any insight!!

    jscooper
    Participant

    I know this is old, but I added this code to a functions.php file in my custom theme folder

    add_filter( ‘bbp_get_single_forum_description’, ‘ja_return_blank’ );
    add_filter( ‘bbp_get_single_topic_description’, ‘ja_return_blank’ );
    function ja_return_blank() {
    return ”;
    }

    and now this appears at the top of my page (and the forum message is still there):

    add_filter( ‘bbp_get_single_forum_description’, ‘ja_return_blank’ ); add_filter( ‘bbp_get_single_topic_description’, ‘ja_return_blank’ ); function ja_return_blank() { return ”; }

    Any ideas?

    Thanks,

    Jeff

    #154699
    Robin W
    Moderator

    put the following in your functions file

    add_filter('protected_title_format', 'ntwb_remove_protected_title');
    function ntwb_remove_protected_title($title) {
    	return '%s';
    }
     
    add_filter('private_title_format', 'ntwb_remove_private_title');
    function ntwb_remove_private_title($title) {
    	return '%s';
    }
    
    

    Functions files and child themes – explained !

    webcoreinteractive
    Participant

    I don’t have any of the plugins mentioned here and have this issue occurring as well.
    Definitely a bbpress – WP conflict. We have tested on our vanilla site.

    I had to implement fix by Yolle. Thanks for the code.

    Hopefull this bug gets fixed in next bbpress update.

    #154683
    Robkk
    Moderator

    you need to create a bbpress.php file, follow this link to read more info about it.

    https://codex.bbpress.org/theme-compatibility/getting-started-in-modifying-the-main-bbpress-template/

    #154677
    gipsypainter
    Participant

    Hi

    I am setting up a new BBPRess forum and I have changed the default reply order to descending so new replies begin at the top. So far so good.

    However, when a new reply is submitted the user is taken to the other end of the thread rather than to the newest end. Is there a tweak I need to the reverse order code?

    this is what I have in my functions:

    function custom_bbp_has_replies() {
      $args['order'] = 'DESC'; // 'ASC' (Ascending, Default), 'DESC' (Descending)
      
      return $args;
    }
     
    add_filter('bbp_before_has_replies_parse_args', 'custom_bbp_has_replies' );

    thanks for any help.

    #154665
    robertosalemi
    Participant

    I’m sorry, I resolved.

    I copied and pasted the shortcode from this link.

    Well, I copied the teletype tag too!

    Thanks!

    #154664
    robertosalemi
    Participant

    Hi,
    I using this two shortcode ( [bbp-login], [bbp-lost-pass] ) in my page.

    With debug, I saw that there is a tag <tt> (teletype) before and after the paragraph tag.

    I would remove this tags so the style is equals in all site.

    How can I resolve?

    Thanks.

    izzyian
    Participant

    This works for me :

    function role_show () {
    $displayed_user = bbp_get_reply_author_id() ;
    $role = bbp_get_user_role( $displayed_user);
    if ( bbp_is_user_keymaster($displayed_user) ||$role == 'bbp_moderator')  $args['show_role'] = true ;
    else $args['show_role'] = false ;
    return $args ;
    }
    add_filter ('bbp_before_get_reply_author_link_parse_args', 'role_show' )
    

    BUT

    It removes the avatar from showing and the “last post by” name, on the Forums topic post lists. How can I fix this ?

    #154654
    Chad
    Participant

    Hi folks. Saw this page, https://codex.bbpress.org/import-forums/vbulletin/

    It hasn’t been updated in 2 years. Just wondering if there are any improvements made to this tool?

    Some of my concerns are these listed:

    1. Custom vBulletin BBCodes are not supported eg. [youtube] – You will have to manually change these yourself either before importing in vBulletin or after importing into bbPress using phpMyAdmin.

    2. All ‘Ordered Lists’

      will be displayed as numerical lists.

      3. You may find extra page breaks <br> and paragraph <p> elements in topics and replies and is less than ideal and is from the way the BBCodes are converted during the forum import conversion. You will find these primarily around ‘blockquotes’ and ‘lists’

      In regards to

      #1 If I create the exact bbocodes in BBPress prior to the import, I assume this would rectify this area correct?

      #2 This is definitely not good. I’m hoping someone knows a trick around this.
      #3 Same as above.

    #154652

    In reply to: Photo in Latest posts

    Robkk
    Moderator

    since you have custom bbpress templates in your theme

    you would have to look at the loop-single-topic.php file in your bbpress folder and compare it to this one which is the plugins version of the file

    https://raw.githubusercontent.com/ntwb/bbPress/master/src/templates/default/bbpress/loop-single-topic.php

    basically you need this for the started by author avatar

    <?php do_action( 'bbp_theme_before_topic_started_by' ); ?>
    
    <span class="bbp-topic-started-by"><?php printf( __( 'Started by: %1$s', 'bbpress' ), bbp_get_topic_author_link( array( 'size' => '14' ) ) ); ?></span>
    
    <?php do_action( 'bbp_theme_after_topic_started_by' ); ?>

    and this for the freshness author avatar

    <?php do_action( 'bbp_theme_before_topic_freshness_author' ); ?>
    
    <span class="bbp-topic-freshness-author"><?php bbp_author_link( array( 'post_id' => bbp_get_topic_last_active_id(), 'size' => 14 ) ); ?></span>
    
    <?php do_action( 'bbp_theme_after_topic_freshness_author' ); ?>
    izzyian
    Participant

    Hi, what code can I add to my functions that would basically allow all other roles tags to show but keep the tag participant at a display none ?

    ( note: hopefully there is a function for this so core files could be avoided ? but if not what is the name of the core file id be looking for )

    – Thank you

    #154642

    In reply to: bbp-forum-index issues

    Robkk
    Moderator

    i found this function doing a search , i havent tested though.

    plop the code into your child themes functions.php file or your functionality plugin
    and change 100 to whatever you like

    function bbp_increase-forum-per-page( $args = array() ) {
    $args['posts_per_page'] = get_option( ‘_bbp_forums_per_page’, 100 );
    return $args;
    }
    add_filter( ‘bbp_before_has_forums_parse_args’, ‘bbp_increase-forum-per-page’ );

    code is from this topic

    Hitting 50 forum limit? What can I do?

    #154641
    Robkk
    Moderator

    the font is light gray because you closed the topic.

    add this css anywhere you can add custom css,
    also maybe change #000 to whatever shade of black you use for your fonts on your content.

    #bbpress-forums .status-closed, 
    #bbpress-forums .status-closed a {
    color: #000;
    }
    Robin W
    Moderator

    I’m having trouble finding a way to get the current user’s role for bbPress

    use

    bbp_get_user_role()

    in

    \bbpress\bbpress\includes\users\capabilities.php

    #154634
    Robin W
    Moderator

    sorry for the late reply, I have been busy elsewhere.

    Read private forums is fine, and as it should be.

    I have carefully read through the above, and am struggling to help you further.

    The best I can suggest is that you set up a test site

    https://codex.bbpress.org/creating-a-test-site/

    so that you can try with a default theme and not break you live site

    #154633
    Robin W
    Moderator

    Without spending hours in code, as a moderator I can trash or spam, but having ‘spam’med an entry, I cannot then trash.

    Is this not what you are getting?

    #154631
    ten9inc
    Participant

    I am new to bbPress and am troubleshooting some issues. I created a page and am using the [bbp-forum-index] shortcode, but only around 50 of 80 forums are listed and there is no pagination to list the rest on successive pages. What am I missing and/or doing wrong?

    #154629
    pplegend
    Participant

    i use twentythirteen theme as my parent theme and bbpress plugin to bulid my forum. In the search results page, the first result format is a bit different with the others.
    according to my understanding, the execute order is: page.php->content-search.php->loop-search.php->loop-search-topic.php
    in page.php:

          <div class="entry-content">
               <?php the_content(); ?>
           </div><!-- .entry-content -->

    in content-search.php:
    <?php bbp_get_template_part( 'loop', 'search' ); ?>

    in loop-search.php:

    
              <?php while ( bbp_search_results() ) : bbp_the_search_result(); ?>
    
                   <?php bbp_get_template_part( 'loop', 'search-' . get_post_type() ); ?>
    
              <?php endwhile; ?>
    

    in loop-search-topic.php:

    
        <div id="post-<?php bbp_topic_id(); ?>" <?php bbp_topic_class(); ?>>
    
        </div>
    

    If there are three topics,the results should be:

    
        <div class="entry-content">
          <div id="post-<?php bbp_topic_id(); ?>" <?php bbp_topic_class(); ?>>
          <div id="post-<?php bbp_topic_id(); ?>" <?php bbp_topic_class(); ?>>
          <div id="post-<?php bbp_topic_id(); ?>" <?php bbp_topic_class(); ?>>
        </div>
    

    However, the result is:

    
        <div class="entry-content">
          <div id="post-<?php bbp_topic_id(); ?>" <?php bbp_topic_class(); ?>>
          </div>
        </div>
        <div id="post-<?php bbp_topic_id(); ?>" <?php bbp_topic_class(); ?>>
        <div id="post-<?php bbp_topic_id(); ?>" <?php bbp_topic_class(); ?>>
    

    The first element is inside <div class=”entry-content”> tag.

    #154626
    m_elghag
    Participant

    Ok, thought there might be an easy way to just add an conditional to the whole code and test if the forum has a certain parameter.

    #154624
    Robin W
    Moderator

    That’s great! 🙂 how? 🙂

    Spend several years learning to code PHP 🙂

    Sorry but there isn’t a better answer to your question, so the short answer to your original question is NO, unless you learn to code or the particular plugin has been written to do that.

    #154586
    Robin W
    Moderator

    lots of different users here with same symptoms but probably different problems.

    Suggest you all start with

    Step by step guide to setting up a bbPress forum – Part 1

    and if that doesn’t fix, start a fresh thread so that we can fix these individually.

    #154585
    Robkk
    Moderator

    well its not really a limit on having a certain number of forums
    i think its just a limit of it being on the root page since it doesn’t have pagination.

    for example if you have over 50 forums displayed in the forum root page any additional forum will not display

    i found this function doing a search , i havent tested though.

    plop the code into your child themes functions.php file or your functionality plugin
    and change 100 to whatever you like

    function bbp_increase-forum-per-page( $args = array() ) {
    $args['posts_per_page'] = get_option( ‘_bbp_forums_per_page’, 100 );
    return $args;
    }
    add_filter( ‘bbp_before_has_forums_parse_args’, ‘bbp_increase-forum-per-page’ );

    code is from this topic

    Hitting 50 forum limit? What can I do?

    #154583
    webUI1
    Participant

    My domain is:
    forum.mydomain.com

    I have set an static page as Front Page Displays with following short-codes:

    Some Welcome text….
    [bbp-forum-index]
    [bbp-topic-index]

    Also I have set an URL to restrict users to redirect if they are not logged in (Under plugin: bbP Members Only).

    Now I am facing following issue:
    1. If someone visits forum.mydomain.com first time by entering the URL: forum.mydomain.com, yet they are not redirected to page specified under plugin bbP Members Only
    Infect they get following info:

    Some Welcome text….
    You do not have permission to view this.
    You do not have permission to view this.

    So they should have redirected to page specified under plugin bbP Members Only. Although if I click on sidebar forums list then they are redirected.

    This can be solved out by:
    Either redirect to page specified.
    Or, this text “You do not have permission to view this.” must display only once.

    Please help guys to fix me.

    Thanks.

    #154580
    Robkk
    Moderator

    @evilhare probably , i would just use the custom sidebars plugin by itself though.

    unless you really care the login links widget , which if you do you can create simple html links to your login form in the text widget.

    example:

    <a href="http://example.com/login" title="login">Login</a>

Viewing 25 results - 10,101 through 10,125 (of 32,504 total)
Skip to toolbar