Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 4,426 through 4,450 (of 32,522 total)
  • Author
    Search Results
  • #190894
    Partizan
    Participant

    Hi!

    First of all thanks for quick response. Its not just breadcrumbs that are affected – all topics links have the same problem. Ok let me try to describe…
    1. I made change with method 1.
    2. I have changed forum root from original permalink forums to forums-test.
    3. New page permalink is set to forums and i call index forum with code on this page and it works – it shows forum root but all links of topics and subforums offcourse are affected with change of forum root link change and links to forums-test.
    4. If i set forums-test back in forum settings to just forums then my page that is supposed to show forum index called with code gets overridden with original forum page and page theme i don’t want.

    #190827
    atouba1887
    Participant

    Hello,
    thanks for the answer. No we use the shortcode [bbp-register]

    #190816
    ericross
    Blocked

    Hi,
    I got the below information from http://forum.wpbeaverbuilder.com/ this site .

    You’ll want to check the bbPress codex for that. Check the link below for more info.
    https://codex.bbpress.org/themes/theme-compatibility/getting-started-in-modifying-the-main-bbpress-template/

    #190815
    ericross
    Blocked

    I think this could work try this code, may be it works.

    1- Please add following code to Quick CSS in Enfold theme options under General Styling tab

    .single-topic #bbpress-forums {
    margin-top: 0;
    }
    2- They do not show up on the bottom by default. If you would like to show, please add following code to Functions.php file in Appearance > Editor

    add_action( ‘bbp_template_after_single_topic’,’bbp_bottom_pagination’ );
    function bbp_bottom_pagination() {
    $output = bbp_get_template_part( ‘pagination’, ‘replies’ );
    return $output;
    }

    #190809
    Robin W
    Moderator

    your theme is loading css with the page including

    .btn-primary, .btn-secondary, .btn-success, .btn-info, .btn-warning, .btn-danger {
    	color: #fff !important;
    }

    this area is using .btn-primary

    as it comes up as inline, it is almost impossible to overwrite.

    Don’t know how your sign-up form is done, is it a plugin?

    #190797
    Jacob_26
    Participant

    Hello,

    I’m trying to style my subforums (background, h1 entry text etc.) but unfortunately when I change the css it also affects and overwrites my other posts…

    Can I assign ids or classes? When I insert the subforums with shortcodes in custom pages, how can I change the breadcrumb links in the main forum page and all subpages?

    I hope somebody can help me out. Thanks in advance.

    Best

    Jacob

    #190796

    In reply to: Repair tool with cron

    Robin W
    Moderator

    what functions are you using to create the topics/replies – if you are creating topics and replies using bbpress functions, then repair shouldn’t be needed.

    do you want me to take a look at your import code ?

    #190793
    liderxlt
    Participant

    Hi, I have a project which updates the forum daily through an import program.

    What I need is to run the repair tool that has bbpress once a day, when all imports are finished.

    I found this code but I can not make it work.

    function bbp_register_default_repair_tools() {
    
      // Topic meta
      bbp_register_repair_tool( array(
      'id' => 'bbp-sync-topic-meta',
      'description' => __( 'Recalculate parent topic for each reply', 'bbpress' ),
      'callback' => 'bbp_admin_repair_topic_meta',
      'priority' => 5,
      'overhead' => esc_html__( 'Low', 'bbpress' ),
      'components' => array( bbp_get_reply_post_type() )
      ) );
    
      // Forum meta
      bbp_register_repair_tool( array(
      'id' => 'bbp-sync-forum-meta',
      'description' => __( 'Recalculate parent forum for each topic and reply', 'bbpress' ),
      'callback' => 'bbp_admin_repair_forum_meta',
      'priority' => 10,
      'overhead' => esc_html__( 'Low', 'bbpress' ),
      'components' => array( bbp_get_topic_post_type(), bbp_get_reply_post_type() )
      ) );
    
      // Forum visibility
      bbp_register_repair_tool( array(
      'id' => 'bbp-sync-forum-visibility',
      'description' => __( 'Recalculate private and hidden forums', 'bbpress' ),
      'callback' => 'bbp_admin_repair_forum_visibility',
      'priority' => 15,
      'overhead' => esc_html__( 'Low', 'bbpress' ),
      'components' => array( bbp_get_forum_post_type() )
      ) );
    
      // Sync all topics in all forums
      bbp_register_repair_tool( array(
      'id' => 'bbp-sync-all-topics-forums',
      'description' => __( 'Recalculate last activity in each topic and forum', 'bbpress' ),
      'callback' => 'bbp_admin_repair_freshness',
      'priority' => 20,
      'overhead' => esc_html__( 'High', 'bbpress' ),
      'components' => array( bbp_get_forum_post_type(), bbp_get_topic_post_type(), bbp_get_reply_post_type() )
      ) );
    
      // Sync all sticky topics in all forums
      bbp_register_repair_tool( array(
      'id' => 'bbp-sync-all-topics-sticky',
      'description' => __( 'Recalculate sticky relationship of each topic', 'bbpress' ),
      'callback' => 'bbp_admin_repair_sticky',
      'priority' => 25,
      'overhead' => esc_html__( 'Low', 'bbpress' ),
      'components' => array( bbp_get_topic_post_type() )
      ) );
    
      // Sync all hierarchical reply positions
      bbp_register_repair_tool( array(
      'id' => 'bbp-sync-all-reply-positions',
      'description' => __( 'Recalculate the position of each reply', 'bbpress' ),
      'callback' => 'bbp_admin_repair_reply_menu_order',
      'priority' => 30,
      'overhead' => esc_html__( 'High', 'bbpress' ),
      'components' => array( bbp_get_reply_post_type() )
      ) );
    
      // Sync all BuddyPress group forum relationships
      bbp_register_repair_tool( array(
      'id' => 'bbp-group-forums',
      'description' => __( 'Repair BuddyPress Group Forum relationships', 'bbpress' ),
      'callback' => 'bbp_admin_repair_group_forum_relationship',
      'priority' => 35,
      'overhead' => esc_html__( 'Low', 'bbpress' ),
      'components' => array( bbp_get_forum_post_type() )
      ) );
    
      // Update closed topic counts
      bbp_register_repair_tool( array(
      'id' => 'bbp-sync-closed-topics',
      'description' => __( 'Repair closed topics', 'bbpress' ),
      'callback' => 'bbp_admin_repair_closed_topics',
      'priority' => 40,
      'overhead' => esc_html__( 'Medium', 'bbpress' ),
      'components' => array( bbp_get_topic_post_type() )
      ) );
    
      // Count topics
      bbp_register_repair_tool( array(
      'id' => 'bbp-forum-topics',
      'description' => __( 'Count topics in each forum', 'bbpress' ),
      'callback' => 'bbp_admin_repair_forum_topic_count',
      'priority' => 45,
      'overhead' => esc_html__( 'Medium', 'bbpress' ),
      'components' => array( bbp_get_forum_post_type(), bbp_get_topic_post_type() )
      ) );
    
      // Count forum replies
      bbp_register_repair_tool( array(
      'id' => 'bbp-forum-replies',
      'description' => __( 'Count replies in each forum', 'bbpress' ),
      'callback' => 'bbp_admin_repair_forum_reply_count',
      'priority' => 50,
      'overhead' => esc_html__( 'High', 'bbpress' ),
      'components' => array( bbp_get_forum_post_type(), bbp_get_reply_post_type() )
      ) );
    
      // Count topic replies
      bbp_register_repair_tool( array(
      'id' => 'bbp-topic-replies',
      'description' => __( 'Count replies in each topic', 'bbpress' ),
      'callback' => 'bbp_admin_repair_topic_reply_count',
      'priority' => 55,
      'overhead' => esc_html__( 'High', 'bbpress' ),
      'components' => array( bbp_get_topic_post_type(), bbp_get_reply_post_type() )
      ) );
    
      // Count topic voices
      bbp_register_repair_tool( array(
      'id' => 'bbp-topic-voices',
      'description' => __( 'Count voices in each topic', 'bbpress' ),
      'callback' => 'bbp_admin_repair_topic_voice_count',
      'priority' => 60,
      'overhead' => esc_html__( 'Medium', 'bbpress' ),
      'components' => array( bbp_get_topic_post_type(), bbp_get_user_rewrite_id() )
      ) );
    
      // Count non-published replies to each topic
      bbp_register_repair_tool( array(
      'id' => 'bbp-topic-hidden-replies',
      'description' => __( 'Count pending, spammed, & trashed replies in each topic', 'bbpress' ),
      'callback' => 'bbp_admin_repair_topic_hidden_reply_count',
      'priority' => 65,
      'overhead' => esc_html__( 'High', 'bbpress' ),
      'components' => array( bbp_get_topic_post_type(), bbp_get_reply_post_type() )
      ) );
    
      // Recount topics for each user
      bbp_register_repair_tool( array(
      'id' => 'bbp-user-topics',
      'description' => __( 'Recount topics for each user', 'bbpress' ),
      'callback' => 'bbp_admin_repair_user_topic_count',
      'priority' => 70,
      'overhead' => esc_html__( 'Medium', 'bbpress' ),
      'components' => array( bbp_get_topic_post_type(), bbp_get_user_rewrite_id() )
      ) );
    
      // Recount topics for each user
      bbp_register_repair_tool( array(
      'id' => 'bbp-user-replies',
      'description' => __( 'Recount replies for each user', 'bbpress' ),
      'callback' => 'bbp_admin_repair_user_reply_count',
      'priority' => 75,
      'overhead' => esc_html__( 'Medium', 'bbpress' ),
      'components' => array( bbp_get_reply_post_type(), bbp_get_user_rewrite_id() )
      ) );
    
      // Remove unpublished topics from user favorites
      bbp_register_repair_tool( array(
      'id' => 'bbp-user-favorites',
      'description' => __( 'Remove unpublished topics from user favorites', 'bbpress' ),
      'callback' => 'bbp_admin_repair_user_favorites',
      'priority' => 80,
      'overhead' => esc_html__( 'Medium', 'bbpress' ),
      'components' => array( bbp_get_topic_post_type(), bbp_get_user_rewrite_id() )
      ) );
    
      // Remove unpublished topics from user subscriptions
      bbp_register_repair_tool( array(
      'id' => 'bbp-user-topic-subscriptions',
      'description' => __( 'Remove unpublished topics from user subscriptions', 'bbpress' ),
      'callback' => 'bbp_admin_repair_user_topic_subscriptions',
      'priority' => 85,
      'overhead' => esc_html__( 'Medium', 'bbpress' ),
      'components' => array( bbp_get_topic_post_type(), bbp_get_user_rewrite_id() )
      ) );
    
      // Remove unpublished forums from user subscriptions
      bbp_register_repair_tool( array(
      'id' => 'bbp-user-forum-subscriptions',
      'description' => __( 'Remove unpublished forums from user subscriptions', 'bbpress' ),
      'callback' => 'bbp_admin_repair_user_forum_subscriptions',
      'priority' => 90,
      'overhead' => esc_html__( 'Medium', 'bbpress' ),
      'components' => array( bbp_get_forum_post_type(), bbp_get_user_rewrite_id() )
      ) );
    
      // Remove unpublished forums from user subscriptions
      bbp_register_repair_tool( array(
      'id' => 'bbp-user-role-map',
      'description' => __( 'Remap existing users to default forum roles', 'bbpress' ),
      'callback' => 'bbp_admin_repair_user_roles',
      'priority' => 95,
      'overhead' => esc_html__( 'Low', 'bbpress' ),
      'components' => array( bbp_get_user_rewrite_id() )
      ) );
      }
    #190791

    In reply to: Freshness Date Format

    Robin W
    Moderator

    ok so leave in the code that you have – that will make the default into date

    then add this

    function rew_forum_freshness_link( $forum_id = 0) {
    	echo rew_get_forum_freshness_link( $forum_id );
    }
    
    function rew_get_forum_freshness_link( $forum_id = 0 ) {
    		$forum_id  = bbp_get_forum_id( $forum_id );
    		$active_id = bbp_get_forum_last_active_id( $forum_id );
    		$link_url  = $title = '';
    
    		if ( empty( $active_id ) )
    			$active_id = bbp_get_forum_last_reply_id( $forum_id );
    
    		if ( empty( $active_id ) )
    			$active_id = bbp_get_forum_last_topic_id( $forum_id );
    
    		if ( bbp_is_topic( $active_id ) ) {
    			$link_url = bbp_get_forum_last_topic_permalink( $forum_id );
    			$title    = bbp_get_forum_last_topic_title( $forum_id );
    		} elseif ( bbp_is_reply( $active_id ) ) {
    			$link_url = bbp_get_forum_last_reply_url( $forum_id );
    			$title    = bbp_get_forum_last_reply_title( $forum_id );
    		}
    
    		$time_since = bbp_get_forum_last_active_time( $forum_id );
    
    		if ( !empty( $time_since ) && !empty( $link_url ) )
    			$anchor = '<a href="' . esc_url( $link_url ) . '" title="' . esc_attr( $title ) . '">' . esc_html( $time_since ) . '</a>';
    		else
    			$anchor = esc_html__( 'No Topics', 'bbpress' );
    
    		return apply_filters( 'rew_get_forum_freshness_link', $anchor, $forum_id, $time_since, $link_url, $title, $active_id );
    	}

    and where you want to show a ‘since’ freshness link change

    bbp_forum_freshness_link() to
    rew_forum_freshness_link()

    You should put any amended templates into your child theme

    come back if you don’t know how to do that

    #190782
    Robin W
    Moderator

    ok try this

    add a page called ‘forums’ and put the shortcode

    [bbp-forum-index] 
    

    in it.

    Your site should then see it as a page, and you should be able to use this page in your menu swapper

    #190774
    emgb_520
    Participant

    I have installed a plugin called “MENU SWAPPER”. This allows for each page/post on the site to choose any menu that has been created to be displayed on that page/post.

    Originally, the functionality of this plugin did not include ANY of the forum pages. I figured out what to add to the menu swapper code to get the individual forums and the topics to have the functionality to swap menus. See the code below, I added “forum” and “topic” to make that happen.

    function mswp_add_swap_meta_box() {
    $post_types = array(
    ‘post’,
    ‘page’,
    ‘forum’,
    ‘topic’
    );

    The only pages on the site where there is no MENU SWAPPER functionality are the forums archive page here: https://scoutfantasysports.com/forums/

    I am assuming this is because there isn’t really a “PAGE” in wordpress for this.

    The menu on that page needs to be the same as on the individual forum pages here: https://scoutfantasysports.com/forum/fantasy-talk/

    I need to know how to make this happen because it looks like I will need to edit a bbPress plugin file to do it.

    Thanks.

    #190770
    Robin W
    Moderator

    adding an editors choice field to the topic form is doable, and creating a view of these also possible, but would be a chunk of code.

    #190758
    Robin W
    Moderator

    This can be done with gravity forms and some code.

    How technical are you ?

    #190739
    u_Oi
    Participant

    Hi,

    In my forum some users post great topics and I don’t want disappear them in the pagination. I wonder if there is a way to mark topics as for example “Editor´s Choice” to keep a record and display them in other page with a shortcode or generate a view?

    For example, allow keymaster and moderator roles mark topics as Editor´s Choice?

    Any idea?

    Thanks,

    #190720

    In reply to: Freshness Date Format

    Caroline Hehemann
    Participant

    1. I’m using the code because I need the ‘d.m.y’ format.
    2. Exactly.
    I need both the date format filtered (date) and the original freshness function (‘since’) in the topic-single-loop.

    #190718
    Robin W
    Moderator

    you would think that was easy – but placeholder is a concept for <input> and <textarea> tags, and wordpress doesn’t use that for then visual editor.

    I found several bits of code that do this for posts and pages, but couldn’t get them to work on topics/replies – I haven’t yet worked out why.

    I’ll have a further play later to see if I can work it out

    Robin

    #190713

    In reply to: Freshness Date Format

    Robin W
    Moderator

    1. are you using code from above or my plugin https://wordpress.org/plugins/bbp-last-post/
    2. so you want some as a date and some as ‘since’ ?
    3. if so, which ones are which

    #190705

    In reply to: Text background

    Robin W
    Moderator

    try

    .bbp-the-content {
    	background-image: url("paper.gif") !important;
    }

    ie add the !important bit

    if that fails, then it is beyond general help !

    #190704

    In reply to: Text background

    simondevries
    Participant

    1 fixed the code \/

    Image and video hosting by TinyPic

    2. i put my own image inside

    Image and video hosting by TinyPic

    but it is still black

    any ideas?

    #190697

    In reply to: Text background

    Robin W
    Moderator

    your css area is very picky, most just accept what they are given

    try

    .bbp-the-content {
    	background-image: url("paper.gif");
    }
    
    #190689
    Robin W
    Moderator

    not sure if it’s theme or plugin – maybe be a combination

    anyway if you are happy not to have the avatar showing in that line, then this fixes

    #bbpress-forums div.bbp-template-notice img.avatar {
    	float: left;
    }

    add it to your custom css.

    Yanur Islam Piash
    Participant

    I am using [theme-my-login] shortcode in login and register button in the top bar. And a caldera form shortcode in “contact us” button in the footer.

    You can see it here: https://www.bohubrihi.com/forum/support-forum/support-for-students/

    #190682

    In reply to: Text background

    Robin W
    Moderator

    add this to your custom css and alter the image to the one you want

    #bbpress-forums div.bbp-the-content-wrapper textarea.bbp-the-content {
    	background-image: url("paper.gif");
    }
    Robin W
    Moderator

    what shortcodes are you using ?

    Yanur Islam Piash
    Participant

    Hi,

    No shortcodes are working in the bbpress pages. The shortcodes are runnng very well in all other pages of my site. Just not working on bbpress topics, forums and replies pages. So I guess the problem is within bbpress. I tried to find out plugin conflict but no conflict was found.

    Here is one of my topic pages: click on the “Login” or “register” button in the top menu. A hover will appear where I put a shortcode that works well in any other pages. Also, you can click on “contact” in the footer to see another shortcode not working. No problem with the plugins created shortocode or the popup modal, as they are working just fine in all other pages.

    All the plugins, themes and applications are updated.

Viewing 25 results - 4,426 through 4,450 (of 32,522 total)
Skip to toolbar