Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 5,051 through 5,075 (of 32,481 total)
  • Author
    Search Results
  • #185420
    Robin W
    Moderator

    have you been to

    Custom Capabilities

    #185419
    Robin W
    Moderator

    bbpress hates local server !

    try adding this to your function file

    add_filter( 'bbp_verify_nonce_request_url', 'my_bbp_verify_nonce_request_url', 999, 1 );
    function my_bbp_verify_nonce_request_url( $requested_url )
    {
        return 'http://localhost:8888' . $_SERVER['REQUEST_URI'];
    }
    #185412
    Brandon Allen
    Participant

    @peterwsterling,

    The HTML tags are being converted to HTML entities in bbp_topic_pagination_count(), because of output esacping (esc_html() in this case). If you want to wrap the output from bbp_get_topic_pagination_count() in a <span>, you’ll need to replace all usages of bbp_topic_pagination_count() with your own custom output function, or echo bbp_get_topic_pagination_count(). The latter is not recommended. A custom output function might look like below:

    
    function my_topic_pagination_count() {
        echo '<span>' . esc_html( bbp_get_topic_pagination_count() ). '</span>';
    }
    
    #185409
    Stephen Edgar
    Keymaster

    @peterwsterling Can you add a copy of the exact code you’re using please?

    #185408
    peterwsterling
    Participant

    There seems to be some extra filtering going on in the bbp_get_topic_pagination_count filter that I use to insert some extra detail about who (which logged in users) has seen a post. That’s fine of course. The problem for me is that I insert a <span> (with a class) to enable styling of my extra content and this new filtering is coding the HTML, e.g. < becomes &lt ; etc. Can this be addressed please? Or can you direct me as to which filter to switch off please?

    #185370
    tonezzz
    Participant

    Oops! I think that’s the original WP code itself. Anyway, I found another code to fix in bbPress. Pls let me know if I should post it.

    tonezzz
    Participant

    Hello everybody.

    If this is off topic, pls help pointing me to the correct place.

    This is the first time I’m working with bbPress, I’m trying to import from vBulletin now.

    
    vBulletin = 3.8.6
    bbPress = bbPress 2.5.12
    WP = 4.7.5
    

    I’ve been struggling for a few days already (I’ve also tried the 2.6-rc-3 without any luck). Just today, I found an advice to enable WP_DEBUG and WP_DEBUG_LOG so I did so and saw some error messages so I decided to look into the code and try to fix it myself.

    Here’s the first one I found:

    
    PHP Notice:  Undefined index: user_pass in ...\wp\wp-includes\user.php on line 1425
    

    Here’s the code at line 1425:

    
    $user_pass = wp_hash_password( $userdata['user_pass'] );
    

    Should be changed to:

    $user_pass = empty($userdata['user_pass'])?wp_hash_password(''):wp_hash_password( $userdata['user_pass'] );

    There’re more errors I’m trying to fix right now. Pls let me know if it’s helpful and I should post them too.

    Cheers,
    Tony.

    #185355
    Droidism
    Participant

    WordPress version 4.8
    bbPress version 2.5.12
    Site URI: Localhost (I can create a temp vpn tunnel to the site if needed.)

    Hi,

    I am confused about the following setup and theme page template/bbPress weirdness.

    I have installed bbPress and set the forum root to “support” and saved changes.
    Then I created a page with the exact same name “support“. The slug matches the page name and reads: www.mysite/support/
    In this page I have added the bbpress short code [bbp-forum-index]

    With the current theme I have the option to choose a page template with or without a sidebar. When I set the page template to “sidebar“, the sidebar does NOT display.

    When I change the “forum root” from “support” to “forums” and leave the page name and template choice as is, the sidebar does display.

    The same applies when I do not change the Forum root and leave it as “support“, but I remove the bbPress shortcode [bbp-forum-index]. The page “support” does show the sidebar.

    I am wondering if I am doing something wrong with either setting the Forum root slug and the page name to the exact same; “support“.

    Maybe this is not possible and leads to url/permalink confusion in WP/bbPress and it instead uses the “standard” page template (which doesn’t utilises any sidebars in the current theme I am using.)

    In the end what I would like to see is the following (if possible at all.);

    When you visit the site’s support page the url/slug read: www.mysite.com/support/
    The page title matches the slug: “Support” and it uses the sidebar page template.

    In this page the support questions are shown by freshness and the breadcrumb actually displays “home >> support“, not “home >> forums“.

    Thanks in advance for any help in explaining the Forum root and page name scheme/setup.

    #185330
    ScottyChoc
    Participant

    WordPress version 4.8
    Genesis Theme version 2.5.2
    bbPress version: 2.5.12
    Site URL: http://staging.c-rad.org/

    My site has a members section for which all of the pages in it have a template applied to it with this simple logic:

    	if ( ! is_user_logged_in()) {
    		wp_login_form();
    		return;
    	} else {
    		// add the members only sidebar and show the content
    	}
    

    Is it possible to install bbPress such that I can apply this template logic to all forum pages?

    I also want all forum pages to exist under a parent page. e.g. c-rad.org/members/forums.

    I can place my forum there (c-rad.org/members/my-forum) using a shortcode, but then all other forum pages go to their default locations (c-rad.org/topic/my-topic).

    I tried changing the Forum Root to ‘members’, but then when I visit that page, the page template with my logic is removed.

    #185311
    ncrocketry
    Participant

    Also for reference, here is a page with the shortcode as described in the documentation to display a single forums topics. eg. [bbp-single-forum id=32].

    General

    #185310
    ncrocketry
    Participant

    I’ve tried to create pages with shortcodes, but the result is the same.

    #185306
    enacta2
    Participant

    @robin-w I applied your CSS code for root and forum and it works well. But the top part of the box is missing. I tried to ‘fix’ the button so it’s whole, but I’m unable. I tried many different CSS lines, including the following, and none worked.

    Can you please tell me how to make the button so it’s complete?

    I don’t have a live site with bbPress. It’s only on my localhost mirror for now, until I get it all setup the way I want.

    /* Set breadcrumb from topic to its forum with blue button */
    .bbp-breadcrumb-forum {
      background: #6D84B4;
      background-image: -webkit-linear-gradient(top, #6D84B4, #3B5998);
      background-image: -moz-linear-gradient(top, #6D84B4, #3B5998);
      background-image: -ms-linear-gradient(top, #6D84B4, #3B5998);
      background-image: -o-linear-gradient(top, #6D84B4, #3B5998);
      background-image: linear-gradient(to bottom, #6D84B4, #3B5998);
      -webkit-border-radius: 28;
      -moz-border-radius: 28;
      border-radius: 28px;
      -webkit-box-shadow: 0px 2px 0px #000000;
      -moz-box-shadow: 0px 2px 0px #000000;
      box-shadow: 0px 2px 0px #000000;
      font-family: Arial;
      color: #000000;
      font-size: 11px;
      padding: 7px 15px 7px 15px;
      text-decoration: none;
    }
    
    .bbp-breadcrumb-forum:hover {
      background: #AFBDE1;
      background-image: -webkit-linear-gradient(top, #AFBDE1, #6D84B4);
      background-image: -moz-linear-gradient(top, #AFBDE1, #6D84B4);
      background-image: -ms-linear-gradient(top, #AFBDE1, #6D84B4);
      background-image: -o-linear-gradient(top, #AFBDE1, #6D84B4);
      background-image: linear-gradient(to bottom, #AFBDE1, #6D84B4);
      text-decoration: none;
    }
    
    /* Set breadcrumb prepended text for button from topic to its forum */
    .bbp-breadcrumb-forum::before {
      content: "Back to the ";
    }
    
    /* Set breadcrumb appended text for button from topic to its forum */
    .bbp-breadcrumb-forum::after {
      content: " forum";
    }
    
    /*-------------------------------------------------------------------------------------------*/
    
    /* Set breadcrumb from forum to its root with blue button */
    .bbp-breadcrumb-root {
      background: #6D84B4;
      background-image: -webkit-linear-gradient(top, #6D84B4, #3B5998);
      background-image: -moz-linear-gradient(top, #6D84B4, #3B5998);
      background-image: -ms-linear-gradient(top, #6D84B4, #3B5998);
      background-image: -o-linear-gradient(top, #6D84B4, #3B5998);
      background-image: linear-gradient(to bottom, #6D84B4, #3B5998);
      -webkit-border-radius: 28;
      -moz-border-radius: 28;
      border-radius: 28px;
      -webkit-box-shadow: 0px 2px 0px #000000;
      -moz-box-shadow: 0px 2px 0px #000000;
      box-shadow: 0px 2px 0px #000000;
      font-family: Arial;
      color: #000000;
      font-size: 11px;
      padding: 7px 15px 7px 15px;
      text-decoration: none;
    }
    
    .bbp-breadcrumb-root:hover {
      background: #AFBDE1;
      background-image: -webkit-linear-gradient(top, #AFBDE1, #6D84B4);
      background-image: -moz-linear-gradient(top, #AFBDE1, #6D84B4);
      background-image: -ms-linear-gradient(top, #AFBDE1, #6D84B4);
      background-image: -o-linear-gradient(top, #AFBDE1, #6D84B4);
      background-image: linear-gradient(to bottom, #AFBDE1, #6D84B4);
      text-decoration: none;
    }
    #185295
    Martin
    Participant

    Hi @chadschulz. I Tried with that code but it didn’t work with [pgn] and the chessboard plugin.

    @yo35
    any Idea?

    Thanks a lot!

    #185290
    lrmo
    Participant

    I had only thought that this is perhaps a bug, or I did not see a setting. I then started with the adjustments, only I have determined, the adjustments take no end …

    There are so many things missing – and so much code which must be added to make it “usable”.

    The worst is the lack of proper moderation and the fast possibility to delete spam, as well as a fast support possibility. It is unfortunately not optimal always to be afraid I need help or not. Here is perhaps a payment support for bbpress optimal, which provides quick help.

    That is why I have now decided to use Xenforo, which is good with Xenword in WordPress. Does not work with Buddypress, but this is not so bad.

    Thanks for that I received at all from someone an answer 😉
    And I know that the support does this in his spare time, so as I mentioned above perhaps a payment support set up!

    #185283
    PinkishHue
    Participant

    @lalitavalon I haven’t tested it but you could try the ‘display posts shortcode’ plugin, set the post type to replies and the category to the forum ID? Not sure if that would work exactly but worth a try.

    Display Posts Shortcode

    #185282
    PinkishHue
    Participant

    @scottm-ldg Install the ‘bbp additional shortcodes’ plugin, that allows you to specify a different number of topics in the shortcode:

    bbp additional shortcodes

    Hope that helps.

    #185281

    In reply to: Link to latest post

    PinkishHue
    Participant

    You could install the ‘bbp additional shortcodes’ plugin, then use that to display just one topic

    bbp additional shortcodes

    Then use ‘do shortcode’ if you want to place this in a template file, like:

    // Use shortcodes in form like Landing Page Template.
    <?php echo do_shortcode( '[bbp-display-topic-index show='1']' ); ?>

    I think that should work for you.

    #185268
    Robin W
    Moderator

    sorry – I was half awake this morning

    try

    add_filter ('bbp_before_has_forums_parse_args', 'rew_show_all' ) ;
    
    function rew_show_all ($args) {
    	$args['posts_per_page'] = -1 ;
    return $args ;
    
    }
    #185263
    Robin W
    Moderator

    the code only shows 50

    put this in your functions file (untested, but should work)

    add_filter ('bbp_before_has_forums_parse_arguments', 'rew_show_all' ) :
    
    function rew_show_all ($args) {
    	$args['posts_per_page'] = -1 ;
    return $args ;
    
    }
    #185262
    PinkishHue
    Participant

    Just wondering if anyone has come across this before – I’m attempting to create a subforum for every postcode district in the UK of which there are 2000+ (this may seem a bad idea but having considered many different options it seems the best/simplest for my use case at the moment)

    I’ve imported the forums via the ‘WP CSV’ plugin, and they seem to have imported fine, but on the front end when viewing the full forum list it only shows the first 50. Is this by design? Or could it be something buggy I have done?

    If it’s unavoidable I guess I can make them sub-subforums of a smaller number of postcode areas.

    Thanks

    #185252

    In reply to: Multiple Forum Indexes

    Robin W
    Moderator

    If I understand what you want correctly, just set each ‘page’/index as a category and then the appropriate forums as belonging to that category.

    Then set up a page for each and use a shortcodes to display the appropriate forums for that page

    eg
    [bbp-single-forum id=1]
    [bbp-single-forum id=2]
    [bbp-single-forum id=3]

    #185251
    itayasa
    Participant

    I successfully managed to post messages into the forum by including WordPress in my php script and calling bbp_insert_topic.
    However, it seems like when I call bbp_insert_reply bbPress actually inserts a topic parented to another topic and these appear like replies in the site itself.
    Tried repairing the forums and it didn’t work.
    Any idea why?

    #185232
    Robin W
    Moderator

    this is doable, but you’ll need to modify the role

    see

    bbPress User Roles and Capabilities

    and

    Custom Capabilities

    you’ll probably want to create a new role which just lets this role create and edit replies

    PinkishHue
    Participant

    I see, to make the font on the sub-forums larger you can use:

    .bbp-forums-list .bbp-forum a {
    font-size: 18px;
    }

    Also if you want an easier way to alter sizes and styles etc. you could try Robin’s handy plugin:

    bbp style pack

    #185185
    theredeclipse
    Participant

    Hello,

    I’m trying to make a link to a latest topic in forum page. I achieved topic name by bbp_forum_last_topic_title function, but can’t figure out how to get a link for latest topic.

    I’ve tried to pull out something like this, but it links to forum index.
    <p><a href="<?php echo $link; ?>"><?php bbp_forum_last_topic_title(); ?></a></p>

Viewing 25 results - 5,051 through 5,075 (of 32,481 total)
Skip to toolbar