Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 6,126 through 6,150 (of 32,519 total)
  • Author
    Search Results
  • #176623
    pcpro178
    Participant

    Thanks, Robin. I’ve already done that for the Forum Index and Forum pages. In concert with a few .htaccess redirects, it works fine, as can be seen here:

    https://sopearly.com/forums/
    https://sopearly.com/forum-introductions/

    Any links to the bbPress-generated https://sopearly.com/forum/introductions/ are redirected to https://sopearly.com/forum-introductions/.

    Redirect /forum/introductions/ https://sopearly.com/forum-introductions/

    The biggest problem I am having right now is with the Topic pages, since I do not have control over which discussion topics be created by my users in each of the forums; the Topic page links are automatically generated by bbPress. Here is a good example:

    https://sopearly.com/topic/welcome-to-the-sopearly-community/

    I can make the colors, spacing, etc. match the rest of my site with a little work, but the page backgrounds and header are managed by the theme I’m using. What I’ve been able to gather by the reading I’ve done is that I should be able to take the contents of one of the files located at wp-content/plugins/bbpress/templates/default/bbpress, insert that into the appropriate (copied) theme file (single, template, etc.), and rename that file to one of the following:

    • plugin-bbpress.php
    • bbpress.php
    • forums.php
    • forum.php

    I can get with my theme’s support to find out which of their files I should start with, but (unless you think there is a better way) I guess my question is which of the files from wp-content/plugins/bbpress/templates/default/bbpress should I use, and to which of the four filenames should I copy it in my child theme? Thanks so much for your help. 🙂

    #176628
    BekBek20
    Participant

    Sorry if my response was not good.

    What i meant was, Your suggestion was together with a few adjustments i made to the code, which i used to get the alphabetically arrangement of a specific forum topic.

    Now i want to arrange another specific forum topic in a specic order using there ID i guess.

    For example, I want to arrange the following topic to another arrangement.

    Topic ID
    I enjoy bbpress 655
    I want bbpress 658
    I love bbpress 660
    bbpress 662

    To be arranged like this

    Topic ID
    I love bbpress 660
    I want bbpress 658
    bbpress 662
    I enjoy bbpress 655

    That’s what i want to do now, I was hoping you could help me.

    Thanks for your time

    #176626
    Robin W
    Moderator

    Try adding this to your functions file:

    function amend_bbpress_search ($args) {
    $args[‘post_type’] = ‘any’ ;
    return $args ;
    }

    add_filter (‘bbp_before_has_search_results_parse_args’ , ‘amend_bbpress_search’) ;

    Functions files and child themes – explained !

    #176621
    Robin W
    Moderator

    it depends what you mean by integration.

    In essence if you create a page in your site called say ‘forums’ and put the shortcode [bbp-forum-index] in it, then you have integrated it.

    Let us know beyond that what you want, and we’ll try and help further

    #176611
    pcpro178
    Participant

    I’ve read a lot of the documentation and posts on this, but it unfortunately is not sinking into my skull. From what I can tell, there are basically three pages to the standard bbPress installation & usage: Forum Index page, Forum page, and Topic page. I saw something referring to the wp-content/plugins/bbpress/templates/default/bbpress folder, available after installing bbPress. How do I know which of these files to copy/modify, and to which file name should I copy it? Any help or insight you might be able to offer would be appreciated. I am completely lost on this.

    #176609

    In reply to: BBPress slowness save

    Stephen Edgar
    Keymaster

    The bbp_setup_current_user issue is not caused by bbPress, bbPress alerts you of this issue though because it is important for bbPress. If you have disabled ALL your plugins and the error remains you MUST switch the theme to Twenty Thirteen (or Twenty Fourteen, Fifteen, Sixteen etc).

    Once you know what plugin or theme causes the issue then you can contact the author and let them know they need to fix it and problem solved.

    #176605
    Dysschord
    Participant

    I have tried searching, and haven’t found this issue. I may not be using proper terms.

    The email notifications are being sent just fine. However, they all are proceeded by a bunch of characters, i.e. similar to the following (plus there are strange codes within the email itself)

    =?UTF-8?Q?ly=20To:=20Safety=20in=20Chir?==?UTF-8?Q?iqui?=
    MIME-Version: 1.0
    Content-Type: text/plain; charset=UTF-8
    Content-Transfer-Encoding: quoted-printable

    The subject lines are fine. However, there are also lines of the notification showing extraneous codes and line breaks in strange places, including middle of a word, like the following:

    A new reply has been posted by a user. Please login to read full p=
    osting and respond.
    IMPORTANT: You cannot reply to forum postings via email. You must be logged=
    in to reply.=20

    Lastly, the end of the excerpts show codes too, such as =E2=80=A6

    Using latest version of WP and plugin.

    #176593
    Robin W
    Moderator

    if you’ve copied/pasted it from your code, then you have a space after ‘my_custom_display_topic_index_query and before the closing ‘ bracket

    ie

    ‘my_custom_display_topic_index_query '
    

    when it should be

    ‘my_custom_display_topic_index_query' 
    
    
    #176590
    BekBek20
    Participant

    Hello everyone.

    I have been issues with sorting my BBpress forum topic on the front end.

    So i tried to use a custom function i got from one of the threads.

    Here is the code i used.

    //* Change sort order of Topics within a specified bbpress forum
    function my_custom_display_topic_index_query ($args) {
    $thisforumid = bbp_get_forum_id();

    if($thisforumid == 43135) {
    $args[‘orderby’] = ‘date’;
    $args[‘order’] = ‘ASC’;
    }

    return $args;
    }
    add_filter(‘bbp_before_has_topics_parse_args’, ‘my_custom_display_topic_index_query ‘ );

    and i got this error

    Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘my_custom_display_topic_index_query ‘ not found or invalid function name in /home/flexol5/public_html/wp-includes/plugin.php on line 235

    Warning: array_merge(): Argument #2 is not an array in /home/flexol5/public_html/wp-content/plugins/bbpress/includes/common/functions.php on line 1419

    I don’t know what i did wrong or maybe the coding structure of bbpress as changed. I would like someone to help with a way to arrange a specific forum topic in ascending order.

    Thanks

    #176589
    expectancy
    Participant

    For anyone that hasn’t solved this yet, it’s actually a very easy and quick fix!

    In the W3 spec (http://www.w3.org/TR/dom/), the “insertBefore” method requires 2 arguments. The second can be null, but it is still required. It looks like IE doesn’t require the second argument (which is why it works in IE as is) while Chrome, Firefox, and Safari do.

    bbpress/templates/default/js/reply.js – line 18
    Added a null argument as the second argument on “insertBefore”.

    Before Fix: reply.parentNode.insertBefore(respond);
    After Fix: reply.parentNode.insertBefore(respond, null);

    
    reply.parentNode.insertBefore(respond, null);
    if ( post && postId )
    	post.value = postId;
    parent.value = parentId;
    cancel.style.display = '';
    
    #176587

    In reply to: SMF to bbpress

    Stephen Edgar
    Keymaster

    Firstly, you should use bbPress 2.6-alpha, it has a heap of importer improvements, you can get it from this page https://bbpress.org/download/

    boards, log_notify, topics, messages, and members are the only SMF tables you need, these might also be prefixed with smf_, e.g. smf_boards

    #176582
    Stephen Edgar
    Keymaster

    Use this to get rid of that silly Private prefix 🙂

    https://gist.github.com/ntwb/8662354

    p.s. We’ll get that removed from bbPress and/or WordPress proper one of these days ;P

    #176579
    Stephen Edgar
    Keymaster

    Use bbPress’ “Private Forums”:
    * Private – Only logged in registered users with a forum role can see these forums

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

    #176576
    Stephen Edgar
    Keymaster

    Excellent, glad that worked.

    The full details and code for bbPress’ fix is here if that kind of thing interests you 🙂

    https://bbpress.trac.wordpress.org/changeset/6061

    #176568

    In reply to: PHP 7.0 Compatibility

    Stephen Edgar
    Keymaster

    bbPress compatible with PHP 7 and HHVM

    The warnings you see are from a 3rd party library, these issues would only affect you if you are importing forums from another forum software package.

    You can see our Travis CI PHP 7 tests here: https://travis-ci.org/ntwb/bbPress/jobs/147321446
    (We don’t have 100% code coverage yet but we are progressing nicely)

    #176560
    Texiwill
    Participant

    Hello,

    I ran the PHP 7 Compatibility test against bbPress with the following results. Be nice if they could be fixed so I can use bbPress with PHP 7.

    FILE: /usr/share/wordpress/wp-content/plugins/bbpress/includes/admin/converter.php
    ------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    ------------------------------------------------------------------------------------------------
     310 | ERROR | INI directive 'safe_mode' is deprecated from PHP 5.3 and forbidden from PHP 5.4.
    ------------------------------------------------------------------------------------------------
    
    FILE: /usr/share/wordpress/wp-content/plugins/bbpress/includes/admin/parser.php
    --------------------------------------------------------------------------------------------------------
    FOUND 3 ERRORS AND 1 WARNING AFFECTING 4 LINES
    --------------------------------------------------------------------------------------------------------
      293 | ERROR   | Deprecated PHP4 style constructor are not supported since PHP7
     1149 | ERROR   | preg_replace() - /e modifier is forbidden in PHP 7.0
     1150 | ERROR   | preg_replace() - /e modifier is forbidden in PHP 7.0
     1386 | WARNING | The use of function split is discouraged from PHP version 5.3; use preg_split instead
    --------------------------------------------------------------------------------------------------------

    THank you,
    Edward

    #176559
    Matthijz98
    Participant

    I have made some adjustment to the default theme files it now looks like this:

    In the last Colom I want to display the last activitie in that category something like this
    ””
    But I don’t know which function I need and how I need to implement it in the theme.
    The code looks something like this
    ””

    archon
    Participant

    Hello,

    I am very new to bbPress. I have a few basic questions:
    1. To simplify my question, suppose I create page A, B, C, D. For each separate page, I create forum A, B, C, D. When creating the forums, bbPress creates a page for each forum, let’s call them page FA, FB, FC, and FD. My goal is to add a shortcode for forum A to page A such that whenever a user submit a question, it will stay on page A instead of getting forwarded to page FA. The same goes for page B, C, and D. Is it possible to do this? I create these pages and forums, but everytime I submit a question or subscribe to the forum, the site brings me to page FA instead of letting me stay on page A.

    2. Is it possible to change the front end of the text editor? here we have “b i link b-quote del img ul ol li code close tags”. For general user, they will be more familiar with more common buttons like Bold, Italic, Underline, a button to attach image, a button to add symbols, etc.

    wordpress version: 4.5.3
    bbPress version: 2.5.10

    Thank you so much for your help!

    #176518
    akkuakku
    Participant

    Hi Robkk,

    Thanks for the CSS code. Your code has solved this problem for me

    https://bbpress.org/forums/topic/reply-threading-width-eating-in-to-post-width/#post-176517

    #176517
    akkuakku
    Participant

    Hi Pascal,

    Thanks for your replies. Using the CSS code mentioned in the below post has solved my problem

    https://bbpress.org/forums/topic/shifting-forum-posts-to-the-left/

    #176496
    thwright
    Participant

    Necro. I am using the Evolve theme, WordPress 4.5.3, and have tried running this code in a child theme, but the effects only take place in the parent theme’s functions.php. I tried a mu-plugin as well. I am thoroughly pleased with the results in the parent theme but would love this in a child. Any thoughts?

    #176495
    ady2929
    Participant

    Hi all —

    I’m giving this topic a boost. Multiple users on our message board are reporting that their logins do not work. I’ve updated BBPress on the off chance that this was the problem.

    However, I also do not understand the coding solutions suggested above. Can anyone walk me through these steps in language that a non-coder could understand? Something very simple and step-by-step is necessary.

    Thank you very much.

    #176483
    pleyades38
    Participant

    Wordpress version: 4.5.3
    bbPress version: 2.5.10
    theme: Zippy Courses
    site: http://escuela.palabrasalavida.com/forums/forum/el-yoga-de-las-palabras/

    Hi,

    Pleased I’m stuck with this. I have my WordPress installed in es_ES, I have translated the Zippy Courses theme without problems and now I am trying to translate the bbpress pluging by copying the es_ES.mo file into the languages folder and it doesn’t work. The plugin is not getting translated.

    I have tried to do it using the plugin “Codestyling localization” and I get this message:

    Loading Issue: Author is using load_textdomain instead of load_plugin_textdomain function. This may break behavior of WordPress, because some filters and actions won’t be executed anymore. Please contact the Author about that.

    Any hints?

    Thanks for your help!

    renanno
    Participant

    So, I have recently found out that my topics content weren’t showing correctly. Spent a lot of time trying to solve this, and finally came with a solution to my case.

    I use ElasticPress on every query on my WP installation, including, of course, bbpress queries. Because some bug or something I really don’t know what, ElasticPress query filter was conflicting with bbpress queries.

    The solution I found is “ep_skip_query_integration” filter of EP.

    This is what I did, I’m running this in functions.php:

    function disable_elasticpress_integration( $query_args ) { 
    		add_filter( 'ep_skip_query_integration', '__return_true' );
    		return $query_args;
    }
    add_filter( 'bbp_include_all_forums', 'disable_elasticpress_integration' );

    Hope it helps.

    Renan

    #176455
    Stephen Edgar
    Keymaster

    $content_dir (from the constant ‘WP_CONTENT_DIR’) resolves as:
    /var/lib/openshift/hexkey/app-root/data/current/wp-content

    content_url gives mydomain/wp-content

    and the file location starts out as :
    /var/lib/openshift/hexkey/app-root/data/plugins/bbpress/templates/default/js/editor.js

    That last path, I’d expect that to be /var/lib/openshift/hexkey/app-root/data/wp-content/plugins/bbpress/templates/default/js/editor.js

    i.e. after data is wp-content which is before plugins

    Plugins are “typically” installed unto the wp-content directory, WordPress has some constants available to change these, typically WP_CONTENT_DIR and WP_CONTENT_URL are used, WP_PLUGIN_DIR and WP_PLUGIN_URL are not used anywhere near as much, maybe the Openshift configuration has these defined in the wp-config.php file in the root directory?

    https://codex.wordpress.org/Determining_Plugin_and_Content_Directories#Constants

    This probably needs further investigation by bbPress, mainly to check the constants WP_PLUGIN_DIR and WP_PLUGIN_URL so these can be used standalone when WP_CONTENT_DIR and WP_CONTENT_URL are not used at all.


    @oldshaghat
    can you check in your wp-config.php if any of the above constants are defined please?

Viewing 25 results - 6,126 through 6,150 (of 32,519 total)
Skip to toolbar