Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 326 through 350 (of 32,294 total)
  • Author
    Search Results
  • #237574
    Milan Petrovic
    Participant

    No, GD bbPress Toolbox Pro is a complex plugin with 50+ major features, and many are sharing the code and other things.

    #237563

    In reply to: Edit profile menu

    Milan Petrovic
    Participant

    This is hardcoded in bbPress, the only way to change it, is to override the template and make the changes.

    #237559
    mybittypops
    Participant

    Hello,
    I’m in need of a little help.

    Forum

    I am struggeling with getting my forum to full width.
    My theme supports full width with an own template.
    I added a new site and added the bbpress [bbp-forum-index] code.
    The main site is full width.
    But when I open a category or forum it switches back to the oder template.
    I’m not good enough at css and stuff to fix it myself.
    Hope someone can help me!
    Regards,

    Jens

    #237554
    Robin W
    Moderator
    #237535
    sarkarify
    Blocked

    If bove code not working then use this code;

    $wp_roles = new WP_Roles();
    $wp_roles->remove_role(“bbp_keymaster”);
    $wp_roles->remove_role(“bbp_moderator”);
    $wp_roles->remove_role(“bbp_participant”);
    $wp_roles->remove_role(“bbp_spectator”);
    $wp_roles->remove_role(“bbp_blocked”);

    #237510

    In reply to: Feasibility questions

    Robin W
    Moderator

    so to answer (or not!) your questions

    by default the forum page is /forums you can amend this by changing the slug in dashboard>settings>forums or by using a page with a shortcode – see

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

    No idea what ‘ Hearthpwn’s deck builder to query Hearthstone’s card API ‘ means so cannot answer, but in terms of customization, then try this additional plugin, which has a ton of customizations in it.

    bbp style pack

    bbpress just uses the WordPress user account, and there is no way to detach this. But bbpress has a whole set of roles of it’s own, so if you set the user WordPress role to ‘no role for this site’, you pretty much achieve the same thing.

    #237497
    sarkarify
    Blocked

    After completing the steps mentioned above add this code in your site theme’s functions.php file and reload the site, once done then remove this code from funtions.php file and save the file:

    // This function will remove user roles. You may need to inspect the user role dropdown on the user profile page to see the correct user role label to use below
    function wps_remove_role() {
    remove_role( ‘bbp_moderator’ );
    remove_role( ‘bbp_blocked’ );
    remove_role( ‘bbp_spectator’ );
    remove_role( ‘bbp_keymaster’ );
    remove_role( ‘um_admin’ );
    remove_role( ‘um_member’ );
    }
    add_action( ‘init’, ‘wps_remove_role’ );

    #237491

    In reply to: Forum display

    Robin W
    Moderator

    [bbp-single-forum id=$forum_id]

    where $forum_id is the id of the forum.

    You can find the forum ID by going to

    dashboard>forums>edit forum and when editing you will see this in the url

    wp-admin/post.php?post=1245&action=edit

    so in this example 1245 is the forum ID

    #237489

    In reply to: Forum display

    ditout
    Participant

    Hi,
    Thank you for your reply,
    I would create 2 different forums in 2 different pages,
    how could I have 2 different shortcodes which respect of each forum ?
    Thank a lot !

    #237487
    enkoes
    Participant

    Thanks @robin-w, it works beautifully!

    For anyone who want to execute the code 2nd time (or more), reset the ‘rew_done’ option by running update_option('rew_done', ''); before activating the code again.

    Regards.

    #237484
    Robin W
    Moderator

    this should do it

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

    }

    #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

Viewing 25 results - 326 through 350 (of 32,294 total)
Skip to toolbar