Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 3,251 through 3,275 (of 32,522 total)
  • Author
    Search Results
  • johnnyontheweb
    Participant

    Thanks for your reply. I’ve added the capability by adding in theme functions these lines:

    function my_mime_types($mime_types){
        $mime_types['nvn'] = 'text/plain'; //Adding nvn extension
        return $mime_types;
    }
    add_filter('upload_mimes', 'my_mime_types', 1, 1);

    I made the tests:
    subscriber and keymaster: Sorry, this file type is not permitted for security reasons.
    admin and participant: Sorry, this file type is not permitted for security reasons!!! THE SAME! I modified the same user that was a subscriber, I cannot figure out what’s happening here…

    #207181
    Barry
    Participant

    Hey there @wproyal,

    Do you happen to be using the GetShopped Support Forums plugin? The reason I ask is I see hooks or functions in the error message you shared as follows:

    bbps_lock_to_author

    bbps_get_all_premium_topic_ids

    The bbps_* prefix is used by the plugin I mentioned (though it’s entirely possible it is also used by other plugins). So, a good starting point toward resolving this could be to temporarily deactivate that plugin, if you can, and see if things clear up.

    If that does fix things and you still need this plugin, perhaps a good immediate step would be thinking about what recently changed to introduce the problem (an update either to it or to bbPress itself? A change in some custom code someplace? A settings change?) and then think about ways to roll back.

    Of course, you could also reach out to the author/support team for the GetShopped plugin and see if they can offer help with this 🙂

    #207149
    Chuckie
    Participant

    I should clarify that the image has to be already online. In TinyMCE you just provide a link. Just like with BBCode.

    #207148
    WP Royal
    Participant

    Hi All,

    In the WordPress log file, I am getting error

    [21-Dec-2019 07:42:06 UTC] WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1 for query SELECTidFROM wp_posts WHEREpost_parentIN () made by require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), apply_filters('template_include'), WP_Hook->apply_filters, call_user_func_array, bbp_template_include, apply_filters('bbp_template_include'), WP_Hook->apply_filters, call_user_func_array, bbp_template_include_theme_compat, bbp_buffer_template_part, bbp_get_template_part, bbp_locate_template, load_template, require('/plugins/bbpress/templates/default/bbpress/content-single-user.php'), bbp_get_template_part, bbp_locate_template, load_template, require('/plugins/bbpress/templates/default/bbpress/user-topics-created.php'), bbp_get_user_topics_started, bbp_has_topics, bbp_parse_args, apply_filters('bbp_after_has_topics_parse_args'), WP_Hook->apply_filters, call_user_func_array, _bbp_has_topics_query, apply_filters('bbp_has_topics_query'), WP_Hook->apply_filters, call_user_func_array, bbps_lock_to_author, bbps_get_all_premium_topic_ids

    Can anyone suggest what might be an issue to this?

    Thanks

    #207147
    newwper3
    Participant

    Hi,

    I’m using the setting “Allow guest users without accounts to create topics and replies”, I’d like to remove the comment_author_cookies, comment_author_email, and comment_author_url. I added the code : remove_action( ‘set_comment_cookies’, ‘wp_set_comment_cookies’ ); in function.php, but it’s does’t work. May I know how to remove these cookies in bbpress?

    Thanks

    #207130
    Chuckie
    Participant

    Why did I suddenly have to add the following into my list of allowed HTML tags in the editor:

    // Headings
    'h1'         => array(),
    'h2'         => array(),
    'h3'         => array(),
    'h4'         => array(),
    'h5'         => array(),
    'h6'         => array(),

    I didn’t have to do that before. Just curious why I only needed to start doing that now.

    #207124
    baqacreatives
    Participant

    Here is my code in functions.php which displays the image under the title:

    add_action('bbp_template_before_replies_loop', 'bbp_show_extra_fields');
    function bbp_show_extra_fields() {
      echo "<img src=http://baqacreatives.com/azam/Capture1.jpg>";
    };
    #207098

    In reply to: Is it safe?

    Robin W
    Moderator

    depends on what you mean by safe?

    in virus terms, it is as safe as allowing guests to comment on posts. On saving, WordPress checks for code, but there is never 100% guarantee.

    The revolution slider plugin was the route used to get the Panama Papers, but it has to be said that there firewall was crap, so you can never consider WordPress to be 100% secure.

    The most common issue is spam and links to bad sites – expect to get these and need to keep an eye out for them.

    #207093

    Topic: Is it safe?

    in forum Installation
    Danishsard
    Participant

    Hello, I will add the code add_post_type_support (‘topic’, ‘thumbnail’) to the functions file; is it safe if guests can post and post topics on my forum?

    Guests will not have access to add images on the site? Because they can now post topics and write answers

    #207088
    jazimmer
    Participant

    WP 5.2.5
    Theme Enfold 4.5.7
    bbPress 2.6.3
    http://www.infogovsolutions.com

    Forum roles are added by site admin for access to private forums. Users with participant role get the 404 “Oh, bother” message when they try to log into page containing short code : [bbpress forum-index]. I have tested with all other roles and they access the forums as expected. This issue has been identified with new participants being added to the forums. I am not sure if all prior participants are experiencing the same issue. Any help would be appreciated. Thanks.

    #207083
    thecraneadmin
    Participant

    I am still waiting for an answer. Anyone??? Any ideas?? I realize that bbPress always call the core wp-login.php to login, register or reset your password. I know that I can probably add code to wp-login.php but that would be a very bad thing to do as it is a core file and any updates to WP will overwrite your changes. I need a way to intercept the call from bbPress to wp-login.php.

    Thanks,
    J

    David
    Participant

    Hi All,

    Is there a way to re-direct users that are logged in and land on the bbpress home location e.g /chat/ and re-direct them to a specific forum.

    E.g, logged in users visits mysite.com/chat, and it redirects them to mysite.com/chat/forum/support.

    i am using the code below found in the bbpress forums which re-directs guest to another page. It works great.

    /**
    * Redirect bbPress pages to registration page
    */
    function kleo_page_template_redirect()
    {
        //if not logged in and on a bp page except registration or activation
        if( ! is_user_logged_in() && is_bbpress() ) {
            wp_redirect( home_url( '/register/' ) );
            exit();
        }
    }
    add_action( 'template_redirect', 'kleo_page_template_redirect' );
    #207043
    David
    Participant

    Hi, the CSS provided does not work in the latest version? Is there an update code?

    Thanks

    David

    #207042
    David
    Participant

    Hi All,

    I am seeking a way to hide/disable the “Insert Link Button” for users in bbpress when creating a post.

    Does anyone have a code snippet for this, or know of a way to achieve this?

    Thank you

    David

    #207018
    Robin W
    Moderator

    not with css I’m afraid.

    you will need to know how to transfer files to/from your site using ftp. If so then

    find
    wp-content/plugins/bbpress/templates/default/bbpress/form-anonymous.php

    transfer this to your pc and edit

    remove lines 32-35 ie

    
    <p>
    			<label for="bbp_anonymous_website"><?php esc_html_e( 'Website:', 'bbpress' ); ?></label><br />
    			<input type="text" id="bbp_anonymous_website" value="<?php bbp_author_url(); ?>" size="40" maxlength="200" name="bbp_anonymous_website" />
    		</p>

    and save

    create a directory on your theme called ‘bbpress’
    ie wp-content/themes/%your-theme-name%/bbpress

    where %your-theme-name% is the name of your theme

    Then transfer the file you saved above and put in in the directory called bbpress that you created above, so you end up with
    wp-content/themes/%your-theme-name%/bbpress/form-anonymous.php

    bbPress will now use this template instead of the original

    mvaneijgen
    Participant

    @johnjamesjacoby that sounds amazing! I’ve did some digging already, but I couldn’t find an easy fix to get it working again.

    If you’ve some pointers to get the code from
    Sven (https://wpup.co/bbpress-threaded-nested-replies-with-paging/) working with the latest version, I’ll gladly do some testing.

    #207011
    9march
    Participant

    Hi

    Can anyone please help with with the right css code to use to hide the ‘website’ field for guest users who want to reply.

    Thanks,

    #206982
    Rodrigo
    Participant

    Hi,

    I’m creating a forum with bbPress in which I want to run only a forum/”room”, showing all the topics in the front page. I achieved that in settings, selecting that the forum root should show most recent topics.

    On the front page, however, I wish any user could post new topics straight from a form. So, I opened content-archive-topics.php and add this line of code right after the topics’ loop:

    <?php bbp_get_template_part( 'form', 'topic' ); ?>

    It worked like a charm, except only for admins. Participants (the role) are shown a message saying they aren’t allowed to post topics. On the other hand, when a participant enter the (only) forum page, the form appears working below the topics.

    Any idea about how to fix this?

    #206978
    Chuckie
    Participant

    Please look here:

    Compact Workbook Schedule – With Student Assistants

    I would like to find a replicating the code snippets like on my posts in BBPress and have not found a solution.

    I would suggest starting with 2.6 instead. There are so many improvements since 2.5, you’ll want to make sure you have them all. The farther behind you’re working, is the more work you’ll end up needing to do later.

    The code changes in your original post are all still pretty close to correct if you want to make paginated hierarchical replies work like Comments do. If you need more help, I can guide you here for the time being. Then maybe we can take that work and turn it around into getting it done for 2.7. What do ya say? 😄

    If we can’t see your forums, we can’t debug them.

    You’ll need to make someone an account so they can login and browse around and see what you see. Screenshots simply aren’t enough to help anyone. We’ve gotta see the code, inspect it, and then recommend changes to improve it.

    #206946

    Engagements.php received a last minute fix specifically for code that is running on WordPress.org. Your best bet is to simply ignore the warning and wait for 2.6.4 to be released next week.

    #206925
    tolgahat
    Participant

    Did he solve this problem? I stayed in the next cycle. constantly repeating itself.

    I’m importing it from mybb.

    
    Toggle panel: Import Status
    9.Calculating topic stickies (50 through 50 of 50)100%
    
    9.Calculating topic stickies (50 through 50 of 50)100%
    
    9.Calculating topic stickies (50 through 50 of 50)100%
    
    9.Calculating topic stickies (50 through 50 of 50)100%
    
    9.Calculating topic stickies (50 through 50 of 50)100%
    
    9.Calculating topic stickies (50 through 50 of 50)100%
    
    9.Calculating topic stickies (50 through 50 of 50)100%
    
    9.Calculating topic stickies (50 through 50 of 50)100%
    
    9.Calculating topic stickies (50 through 50 of 50)100%
    
    9.Calculating topic stickies (50 through 50 of 50)100%
    
    9.Calculating topic stickies (50 through 50 of 50)100%
    
    9.Calculating topic stickies (50 through 50 of 50)100%
    
    9.Calculating topic stickies (50 through 50 of 50)100%
    Oleksandr Kramer
    Participant

    Custom Field doesn’t work with bbpress 2.6 and above
    I use custom fields for bbpress topics.
    I tried to turn off all plugins and change the theme to default but always receive next javascript error in the console:

    load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils,suggest,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse&ver=5.3.1:4 POST https://test.3d-kstudio.com/wp-admin/admin-ajax.php 400
    send @ load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils,suggest,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse&ver=5.3.1:4
    ajax @ load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils,suggest,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse&ver=5.3.1:4
    ajaxAdd @ load-scripts.php?c=0&load[chunk_0]=hoverIntent,common,hoverintent-js,admin-bar,wp-ajax-response,jquery-color,wp-lists,jquery-ui-sortable,postbox,jquery-ui-position&load[chunk_1]=,jquery-ui-menu,jquery-ui-autocomplete,tags-suggest,tags-box,word-count,wp-sanitize,post,editor-expand,thickbox,shortcode,backbo&load[chunk_2]=ne,wp-util,wp-backbone,media-models,wp-plupload&ver=5.3.1:9
    i.wpList.<computed> @ load-scripts.php?c=0&load[chunk_0]=hoverIntent,common,hoverintent-js,admin-bar,wp-ajax-response,jquery-color,wp-lists,jquery-ui-sortable,postbox,jquery-ui-position&load[chunk_1]=,jquery-ui-menu,jquery-ui-autocomplete,tags-suggest,tags-box,word-count,wp-sanitize,post,editor-expand,thickbox,shortcode,backbo&load[chunk_2]=ne,wp-util,wp-backbone,media-models,wp-plupload&ver=5.3.1:9
    (anonymous) @ load-scripts.php?c=0&load[chunk_0]=hoverIntent,common,hoverintent-js,admin-bar,wp-ajax-response,jquery-color,wp-lists,jquery-ui-sortable,postbox,jquery-ui-position&load[chunk_1]=,jquery-ui-menu,jquery-ui-autocomplete,tags-suggest,tags-box,word-count,wp-sanitize,post,editor-expand,thickbox,shortcode,backbo&load[chunk_2]=ne,wp-util,wp-backbone,media-models,wp-plupload&ver=5.3.1:9
    dispatch @ load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils,suggest,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse&ver=5.3.1:3
    r.handle @ load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils,suggest,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse&ver=5.3.1:3

    PS. For getting the error the topic must be saved.

    #206856
    chanwood
    Participant

    Hi,

    Can we know how to create bb shortcode to hide portion content (text or URL) in the post or replies?

    for example, only logged-in users can view some content/URL in the post/replies.

    I saw lots articles to make this work in WordPress post, but could not find for Bbpress.

    Please help.

    thanks

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