Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 401 through 425 (of 32,358 total)
  • Author
    Search Results
  • #237479
    enkoes
    Participant

    Hi, just want to know how can we make the codes below role-specific? e.g. auto-subscribe moderator to forum with ID 3.

    $list = get_users();
    if (empty (get_option ('rew_done'))) {
    	foreach ($list as $user) {
    		$user_id = $user->ID ;
    		$forum_id = 3 ;
    		bbp_add_user_forum_subscription( $user_id, $forum_id ) ;
    	}
    	update_option ('rew_done' , 'done' ) ;
    }

    Regards.

    #237475

    In reply to: Forum display

    Robin W
    Moderator

    toy want to use either the

    [bbp-forum-index]

    or

    [bbp-single-forum id=$forum_id]

    shortcodes

    #237470

    Topic: Forum display

    in forum Installation
    ditout
    Participant

    Hi,
    I have setup a forum in using bbpress,
    forum name is travel, now I want to place this forum on my page in using the shortcode [bbp-forum-form] , but my travel forum didn’t display on the site,
    How can I do it to modify that ?
    Thank you very much!

    #237467

    In reply to: Search form and widget

    thxwp
    Blocked
    #237449

    In reply to: Search form and widget

    Robin W
    Moderator

    When a specific keyword is searched for in the search form, it searches across all pages on the site. How can I set it up so that it only searches within the forum?

    is this the forum search widget – if so link to a live example please

    Also, the widget for bbPress is not visible in the widget area. How can I set it up to be visible?

    Widgets

    please explain which widget you mean

    #237445
    alexandra440382
    Participant

    I’ve found this easaly “header-subnav.php”

    https://meta.trac.wordpress.org/browser/sites/trunk/buddypress.org/public_html/wp-content/themes/bb-base/header-subnav.php

    <?php if ( !is_front_page() ) : ?>
    	<div id="subnav"><div id="subnav-inner">
    		<ul id="nav-secondary" class="menu">
    			<?php if ( is_user_logged_in() && function_exists( 'bbp_forums_url' ) ) : ?>
    				<li><a href="<?php bbp_forums_url( '/new-topic' ); ?>"><?php esc_html_e( 'Create New Topic', 'bborg' ); ?></a></li>
    			<?php endif; ?>
    		</ul>
    
    		<ul id="nav-user" class="menu">
    			<?php if ( ! is_user_logged_in() ) : ?>
    				<li><a href="<?php echo wp_login_url(); ?>"><?php esc_html_e( 'Log In', 'bborg' ); ?></a></li>
    				<li><a href="<?php echo wp_registration_url(); ?>"><?php esc_html_e( 'Register', 'bborg' ); ?></a></li>
    			<?php elseif ( function_exists( 'bbp_favorites_permalink' ) ) : ?>
    				<li><a href="<?php bbp_favorites_permalink( bbp_get_current_user_id() ); ?>"><?php esc_html_e( 'Favorites', 'bborg' ); ?></a></li>
    				<li><a href="<?php bbp_subscriptions_permalink( bbp_get_current_user_id() ); ?>"><?php esc_html_e( 'Subscriptions', 'bborg' ); ?></a></li>
    			<?php endif; ?>
    		</ul>
    	</div></div>
    	<hr class="hidden" />
    <?php endif;
    
    
    #237444
    Robin W
    Moderator

    ok that is not a tweaked WordPress toolbar, just a ‘look alike’

    the code would be somewhere in here

    https://meta.trac.wordpress.org/browser/sites/trunk/buddypress.org/public_html/wp-content/themes/bb-base

    But it would take ages to find it, so sorry not sure I can help

    #237438
    dianedeboer
    Participant

    I can’t say. I noticed that the default lay-out is used for this page. I used to have a custom made lay-out which is developed by a specialist. He placed the codes for this in a child theme and everything worked just fine. But for a few weeks now, this lay-out is gone. The child theme is still active.
    So I guess this is the problem.

    While I do want to re-use the custom lay-out it is more important that when looking at the forum page without login people see only the latest activity.

    So how can I make this happen?

    Robin W
    Moderator

    try this

    .single-topic  .navigation {
    display : none !important;
    }

    add this to the custom css in my plugin or your theme’s custom css area

    #237410
    Robin W
    Moderator
    #237404
    #237396
    dianedeboer
    Participant

    Hi, when using the widget Recent Topics or Recent Activity nothing shows on my Forum page.

    I don’t know why, because in the past this page always showed this information.It should show latest activity of the different topics. Should I use shortcodes?

    Recente forum berichten

    Can somebody help me with this?

    Diane de Boer

    #237367
    rbirkey
    Participant

    I am working on a new client site and have started integrating bbPress into it, using the DIVI theme. I have created the Forums, Register, Member, Password Reset, and Login pages using shortcodes. I can create topics, threads, and replies. However, if I use the Search function, it displays a blank page. The URL structure of the search results is mydomain/forums/search/searchterm. There is no header or footer. I have no page created for mydomain/forums/search/

    Do I need to create a template for this page, and if so, what is the shortcode I would use to display the search results?

    The same thing is true for the “Users” page which displays at this URL – mydomain/forums/users/username – but is blank.

    I’ve searched for shortcodes or details about this and have come up empty-handed.

    #237359
    simon_a6
    Participant

    It’s as I think we are using a Memberships plugin for it.
    But I couldn’t see how to do this via BBPress properly.
    I thought it would give me the shortcodes to add to a page, or a guide on how to do it.

    Simon

    #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

Viewing 25 results - 401 through 425 (of 32,358 total)
Skip to toolbar