Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 351 through 375 (of 32,294 total)
  • Author
    Search Results
  • #237350
    simon_a6
    Participant

    Hi
    We have a website that uses this plugin, but it’s not quite right.
    We are using the bpress shortcode on the register page, but it forces it to only allow email, and that sends out the pass.

    How do we enable it to show the Password field too? OR is there a way to use the WordPress Reg form, that uses the Password too?

    Simon

    #237349
    Robin W
    Moderator

    try

    #bbpress-forums p input {
    	width: 240px !important;
    }
    #237332
    alexandra440382
    Participant

    I had been using that one, now I’m switching to the latest version of tinyMCE (https://www.tiny.cloud/get-tiny/) and I’ve been trying to make it do the same (enable HTML for it only).

    I’ve tried this function with no succeeds

    add_filter( 'bbp_kses_allowed_tags', 'ntwb_bbpress_custom_kses_allowed_tags' );
    
    function ntwb_bbpress_custom_kses_allowed_tags() {
    	return    array(
        'a' => array(
            'href' => true,
            'target' => true,
            'rel' => true,
            'title' => true
        ),
        'abbr' => array(),
        'acronym' => array(),
        'address' => array(),
        'applet' => array(),
        'area' => array(
            'shape' => true,
            'coords' => true,
            'href' => true,
            'alt' => true
        ),
        'article' => array(),
        'aside' => array(),
        'audio' => array(
            'src' => true,
            'controls' => true
        ),
        'b' => array(),
        'base' => array(
            'href' => true,
            'target' => true
        ),
        'basefont' => array(),
        'bdi' => array(),
        'bdo' => array(),
        'big' => array(),
        'blockquote' => array(
            'cite' => true
        ),
        'body' => array(),
        'br' => array(),
        'button' => array(
            'type' => true,
            'name' => true,
            'value' => true
        ),
        'canvas' => array(
            'width' => true,
            'height' => true
        ),
        'caption' => array(),
        'center' => array(),
        'cite' => array(),
        'code' => array(),
        'col' => array(
            'span' => true
        ),
        'colgroup' => array(
            'span' => true
        ),
        'data' => array(
            'value' => true
        ),
        'datalist' => array(),
        'dd' => array(),
        'del' => array(
            'cite' => true
        ),
        'details' => array(),
        'dfn' => array(),
        'dialog' => array(),
        'dir' => array(),
        'div' => array(),
        'dl' => array(),
        'dt' => array(),
        'em' => array(),
        'embed' => array(
            'src' => true,
            'type' => true
        ),
        'fieldset' => array(),
        'figcaption' => array(),
        'figure' => array(),
        'font' => array(),
        'footer' => array(),
        'form' => array(
            'action' => true,
            'method' => true
        ),
        'frame' => array(),
        'frameset' => array(),
        'h1' => array(),
        'h2' => array(),
        'h3' => array(),
        'h4' => array(),
        'h5' => array(),
        'h6' => array(),
        'head' => array(),
        'header' => array(),
        'hr' => array(),
        'html' => array(),
        'i' => array(),
        'iframe' => array(
            'src' => true,
            'width' => true,
            'height' => true
        ),
        'img' => array(
            'src' => true,
            'alt' => true,
            'width' => true,
            'height' => true
        ),
        'input' => array(
            'type' => true,
            'name' => true,
            'value' => true
        ),
        'ins' => array(
            'cite' => true
        ),
        'kbd' => array(),
        'label' => array(
            'for' => true
        ),
        'legend' => array(),
        'li' => array(),
        'link' => array(
            'href' => true,
            'rel' => true,
            'type' => true
        ),
        'main' => array(),
        'map' => array(
            'name' => true
        ),
        'mark' => array(),
        'menu' => array(),
        'menuitem' => array(),
        'meta' => array(
            'name' => true,
            'content' => true
        ),
        'meter' => array(),
        'nav' => array(),
        'noframes' => array(),
        'noscript' => array(),
        'object' => array(
            'data' => true,
            'type' => true,
            'width' => true,
            'height' => true
        ),
        'ol' => array(),
        'optgroup' => array(
            'label' => true
        ),
        'option' => array(
            'value' => true
        ),
        'output' => array(),
        'a',
        'abbr',
        'address',
        'area',
        'article',
        'aside',
        'audio',
        'b',
        'base',
        'bdi',
        'bdo',
        'blockquote',
        'body',
        'br',
        'button',
        'canvas',
        'caption',
        'cite',
        'code',
        'col',
        'colgroup',
        'data',
        'datalist',
        'dd',
        'del',
        'details',
        'dfn',
        'dialog',
        'div',
        'dl',
        'dt',
        'em',
        'embed',
        'fieldset',
        'figcaption',
        'figure',
        'footer',
        'form',
        'h1',
        'h2',
        'h3',
        'h4',
        'h5',
        'h6',
        'head',
        'header',
        'hr',
        'html',
        'i',
        'iframe',
        'img',
        'input',
        'ins',
        'kbd',
        'label',
        'legend',
        'li',
        'link',
        'main',
        'map',
        'mark',
        'menu',
        'menuitem',
        'meta',
        'meter',
        'nav',
        'noscript',
        'object',
        'ol',
        'optgroup',
        'option',
        'output',
        'p',
        'param',
        'picture',
        'pre',
        'progress',
        'q',
        'rp',
        'rt',
        'ruby',
        's',
        'samp',
        'script',
        'section',
        'select',
        'small',
        'source',
        'span',
        'strong',
        'style',
        'sub',
        'summary',
        'sup',
        'svg',
        'table',
        'tbody',
        'td',
        'template',
        'textarea',
        'tfoot',
        'th',
        'thead',
        'time',
        'title',
        'tr',
        'track',
        'u',
        'ul',
        'var',
        'video',
        'wbr',
     
    	);
    }
    #237330
    Robin W
    Moderator

    try

    function rew_enable_visual_editor( $args = array() ) {
        $args['tinymce'] = true;
        $args['teeny'] = false;
        return $args;
    }
    add_filter( 'bbp_after_get_the_content_parse_args', 'rew_enable_visual_editor' );

    Put this in your child theme’s function file –

    ie wp-content/themes/%your-theme-name%/functions.php

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

    or use

    Code Snippets

    #237327
    Robin W
    Moderator

    suspect something your theme is doing, as works fine on my test site.

    try

    .bbp-topic-form, .bbp-reply-form, .bbp-topic-tag-form {
    	width: 80% !important;
    }

    or

    .bbp-topic-form, .bbp-reply-form, .bbp-topic-tag-form {
    	width: 300px !important;
    }

    and play with the 80% or 300px – you can’t have both rules – they are just different ways of changing width.

    #237321
    Robin W
    Moderator

    try this in the custom css of your theme

    .bbpress div#ast-mobile-header.ast-mobile-header-wrap {
    	display: none !important;
    }
    #237319
    ibnat
    Participant

    I have asked this same question myself over the last few weeks as I am busy making my BBPress forum compatible and converted to a fully funcioning mobile app.

    I decided to push ahead because the support forum of wordpress itself is running on the BBpress plugin and there seems to be no signs at all of it being switched to something else (as @robin-w says)

    Whilst there are hundreds of plugins that are no longer maintained, the BBpress essential plugins very much are, and support for them is absolutely excellent. ( @amauric and @codejp3 ) 🙂

    I believe that the future of niche forum websites like mine are in the mobile app direction with push notifications etc to users through their smart phones. WP and BBpress is lightweight enough to work fantastic on a mobile.

    The three authors I mentioned earlier are great examples of why BBpress will carry on for the foreseable future no? Thanks guys for your continued help and support!

    #237291
    Robin W
    Moderator

    the title is put in by your theme.

    Suggest you try method 2 in this (item 3) :

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

    #237264
    ibnat
    Participant

    Hi Robin. Thank you so much for your quick reply.

    I can confirm that the code you suggested works perfectly if it is added to my themes custom CSS area in (theme customization – Astra theme) and also works if it is added to the custom CSS area of the most excellent bbp style pack plugin.

    Great and thanks once again 🙂

    #237263
    Robin W
    Moderator

    if it is the default bbpress one, then add this to your custom css

    #mceu_12 {
    	display: none;
    }

    otherwise I’d need a link to a live example on your site

    #237234
    Robin W
    Moderator

    so which method are you using in item 3 of this

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

    #237228

    In reply to: remove user Forum Role

    newtech1
    Participant

    I found this code to remove IP address:

    function vvd_no_view_ip ($author_ip, $r, $args) {
        return __return_empty_string ();
    }
    add_filter ('bbp_get_author_ip','vvd_no_view_ip', 10, 3);

    I was in wrong functions.php file. Did not realize I needed to do these edits in my theme functions.php.

    #237227

    In reply to: remove user Forum Role

    newtech1
    Participant

    I found these two different codes that is supposeto what I want (I do not want moderator or keymaster roles shown in forntend), but when I insert either in the bbpress functions.php page nothing happens.

    
    function hide_role ($args) {
    $args['show_role'] = false ;
    Return $args ;
    }
    add_filter ('bbp_before_get_reply_author_link_parse_args', 'hide_role') ;
    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' );

    I also do not want IP address shown for anyone on the frontend. (Yes even for moderators ND KEYMASTERS)

    #237214
    newtech1
    Participant

    On our forum topics there are no replies, thus there is no need for the Subscribe button to appear on topic posts. Where do I go to edit code to remove Subscribe?

    #237210
    Robin W
    Moderator

    so your code shows

    .bbp-breadcrumb, .bbp-breadcrumb-home {
    font-size: 14px !important;
    font-family: Roboto !important;
    }

    and your image shows this being the setting, so I am confused as to what is not working?

    I am not doubting that you are seeing an issue, this is just me getting to understand the issue.

    #237182
    lmstearn
    Participant

    @robin-w, thank you for the code and idea, will try it out. 🙂

    #237179
    enkoes
    Participant

    Hi, I also want to know how do I make use of this filter bbp_current_user_can_access_create_topic_form to make one of my forum solely for admin posting only? Appreciated if @scottmotion can share your solutions with us.

    Regards.

    #237173
    Robin W
    Moderator

    untested, but this should work

    add_filter( 'bbp_get_topics_per_page', 'rew_amend_topics', 10 , 2) ;
    
    function rew_amend_topics ($retval, $default ) {
    	$forum = bbp_get_forum_id() ;
    	if ($forum == 123) $retval = 10 ;
    	if ($forum == 456) $retval = 5 ;
    return $retval ;
    }

    Put this in your child theme’s function file –

    ie wp-content/themes/%your-theme-name%/functions.php

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

    or use

    Code Snippets

    shimdayo
    Participant

    I use bbpress in Japanese.

    In the bbpress search window, if you search for two or more words with double-byte spaces, no search results will appear.

    I tried replacing half-width with full-width, and it worked in the wordpress search window, but not in the bbpress search window.

    advice please.
    thank you.

    function empty_search( $query ) {
        if ( $query->is_main_query() && $query->is_search && ! $query->is_admin ) {
        $s = $query->get( 's' );
        $s = str_replace(' ',' ', $s );
        $query->set( 's', $s );
        }
    }
    add_action( 'pre_get_posts', 'empty_search' );
    #237151
    Robin W
    Moderator

    It looks like it is theme/builder related

    the width is being set by

     .h-row>.h-col-lg-auto {
        flex:0 0 auto;
        width:auto;
        max-width:100%
      }

    You may need to talk to your theme provider, or read the documentation

    #237146
    newtech1
    Participant

    Well thus far it looks like this works:
    Remove this code:

    if ( empty( $r['links'] ) ) {
    			$r['links'] = apply_filters( 'bbp_topic_admin_links', array(
    				'edit'    => bbp_get_topic_edit_link   ( $r ),
    				'merge'   => bbp_get_topic_merge_link  ( $r ),
    				'close'   => bbp_get_topic_close_link  ( $r ),
    				'stick'   => bbp_get_topic_stick_link  ( $r ),
    				'trash'   => bbp_get_topic_trash_link  ( $r ),
    				'spam'    => bbp_get_topic_spam_link   ( $r ),
    				'approve' => bbp_get_topic_approve_link( $r ),
    				'reply'   => bbp_get_topic_reply_link  ( $r )
    			), $r['id'] );
    		}
    
    #237145
    newtech1
    Participant

    I want to remove the moderation links that appear within a topic post.

    moderator links

    I believe this is controlled by the following in bbpress/includes/topics/template.php. What edit would I do if this is the correct area to edit:

    function bbp_get_topic_admin_links( $args = array() ) {
    
    		// Parse arguments against default values
    		$r = bbp_parse_args( $args, array(
    			'id'     => bbp_get_topic_id(),
    			'before' => '<span class="bbp-admin-links">',
    			'after'  => '</span>',
    			'sep'    => ' | ',
    			'links'  => array()
    		), 'get_topic_admin_links' );
    
    		if ( empty( $r['links'] ) ) {
    			$r['links'] = apply_filters( 'bbp_topic_admin_links', array(
    				'edit'    => bbp_get_topic_edit_link   ( $r ),
    				'merge'   => bbp_get_topic_merge_link  ( $r ),
    				'close'   => bbp_get_topic_close_link  ( $r ),
    				'stick'   => bbp_get_topic_stick_link  ( $r ),
    				'trash'   => bbp_get_topic_trash_link  ( $r ),
    				'spam'    => bbp_get_topic_spam_link   ( $r ),
    				'approve' => bbp_get_topic_approve_link( $r ),
    				'reply'   => bbp_get_topic_reply_link  ( $r )
    			), $r['id'] );
    		}
    
    #237091
    Frederic Pilon
    Participant

    Oh sorry, I did not mention, i’m the one building the car;

    I can do changes in the code as you need; could even give you access to the site if it would help; but it does really feel like I’m hitting a plugin bug with those pages;

    It kinda looks like if someone stripped all the tags on the output.

    #237088
    Frederic Pilon
    Participant

    It is a custom theme.

    But trying the twenty twentytwo theme gives a white page.

    Am i supposed to load something in particular? I have control over the code so I can make some changes.

    Frederic Pilon
    Participant

    I’m looking for the shortcode or bit of code needed to show this bit of the current site?

Viewing 25 results - 351 through 375 (of 32,294 total)
Skip to toolbar