Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 3,901 through 3,925 (of 32,481 total)
  • Author
    Search Results
  • #197693
    mattbru
    Participant

    Robin, Yes – I’ve dug pretty deep myself and it is all pretty complicated.

    I’ve tried the action you provided and it does not do anything different, unfortunately.

    Topics

    Earlier – I did try “hacking” (editing bbpress core plugin code) and changing the redirect as you did here with the hook. But I could not get it to stay on the homepage then either.

    Hm. Maybe its not possible? I coudlnt find the exact code where it was happening. I thought it was inside the bbp_favorites_handler() function located here: bbpress/includes/users/functions.php line 430 Looks like youre using that hook on line 481 (bbp_favorites_handler).

    I wonder if it has to do with either of these actions:
    template_redirect
    bbp_template_redirect

    I tried this modified version of your hook code:

    add_action( 'bbp_favorites_handler', 'tcdf_redirect_to_home_page' , 99, 1) ;
    function tcdf_redirect_to_home_page ($success) {
    	if ( true === $success && (is_front_page() || is_home() || is_page(2)) ) {
    		$redirect = home_url() ;
    		wp_safe_redirect( $redirect );
    		// For good measure
    		exit();
    	}		
    }

    No luck. 🙁

    #197690
    Robin W
    Moderator

    ok, this looks like it should work – add to your functions file – try it and come back

    add_action( 'bbp_favorites_handler', 'rew_redirect_to_home_page' ,10,1) ;
    
    function rew_redirect_to_home_page ($success) {
    	if ( true === $success && is_front_page()) {
    		$redirect = home_url() ;
    		wp_redirect( $redirect );
    
    		// For good measure
    		exit();
    	}		
    }
    #197677
    mattbru
    Participant

    Thank you for taking a look Robin.
    Below is the entire block of code for the post block.
    The lines youll be concerned with are 76-80 and 84-93. But ultimately it is line 92 <?php bbp_user_favorites_link($fav_args); ?>

    
    <?php
    /**
     * BuddyPress topic "query"
     * Show grid of all topics inside "ul.container"
     * @link http://hookr.io/plugins/bbpress/2.5.9/functions/bbp_has_topics/
     * 
     */
    	$topic_id = bbp_get_topic_id();
    	$forum_id = bbp_get_topic_forum_id($topic_id);
    	$date = bbp_get_topic_post_date($topic_id,true);
    	$time = reformat_bbp_post_time($date);
    
    	$title = bbp_get_topic_title();
    		$content = strip_tags(bbp_get_topic_content());
    		$content = trim(preg_replace('/^[ \t]*[\r\n]+/m','',$content)); 
    		$content = preg_replace('/(Attachments:).*$/','',$content); 
    		$content = preg_replace('/(This topic was modified).*$/m','',$content); 
    		$excerpt = getSummary($content,186);
    
    	$forum_title = get_post_field( 'post_title', $forum_id, 'raw' );
    	$forum_link = bbp_get_forum_permalink( $forum_id );
    	
    	$user_id = get_post_field('post_author', $topic_id);
    	$avatar = get_avatar( $user_id, 30 );
    	$author_name = esc_html( get_the_author_meta( 'display_name', $user_id ) );
    	
    	$voice_count = bbp_get_topic_voice_count($topic_id);
    	$voice_label = $voice_count === 1 ? 'voice' : 'voices';
    	$reply_count = bbp_get_topic_reply_count($topic_id);
    	$reply_label = $reply_count === 1 ? 'comment' : 'comments';
    	$image_size = 'post-featured';
    
    	// get topic post featured image
    	$src = wp_get_attachment_image_src( get_post_thumbnail_id($topic_id), $image_size);
    	$imgsrc = get_the_post_thumbnail($topic_id) != '' ? $src[0] : '';
    	$image_type = 'img';
    	$has_image = true;
    
    	// attempt to get the file attachment
    	$attachments = d4p_get_post_attachments($topic_id);
    	$attachment_url = wp_get_attachment_image_src( $attachments[0]->ID, $image_size);
    	$attachment_url = $attachment_url[0];
    
    	$cn = d4p_topic_attachments_count($topic_id);
    	
    	// if its empty, set src as attachment url
    	if ($imgsrc == '' && !empty($attachment_url)) {
    		$imgsrc = $attachment_url;
    		$image_type = 'bg-img attachment';
    	}
    	
    	// if its still empty, set src as first image found in the post
    	if (empty($imgsrc)) {
    		/**
    		 * catch_that_image()
    		 * Gets the first image in the body of the post
    		 * defined in /library/custom-theme-functions.php
    		 */
    		$imgsrc = catch_that_image($title,true);
    		if (empty($imgsrc)) {
    			$has_image = false;
    			$image_type = 'none';
    		} else {
    			$image_type = 'bg-img catch';
    		}
    	}
    
    	$is_ss = bbp_is_topic_super_sticky() ? 'super-sticky' : 'not-super-sticky';
    	$bgcolor = get_post_meta( $topic_id, 'sticky_post_color', $single = false );
    	$bgcolor = (!empty($bgcolor)) ? $bgcolor[0] : '';
    
    	if (!empty($bgcolor)) {
    		$image_type .= ' color-'.$bgcolor;
    	}
    
    	// gold count
    	$gold_count = bbp_get_topic_favoriters($topic_id);
    	$gold_count = count($gold_count);
    	$before_html = '<span class="gold-count">'.$gold_count.'</span>';
    	$fav_args = array('before' => $before_html);
    
    ?>
    	<li class="fourth a <?php echo $image_type; ?>" data-id="<?php echo $topic_id; ?>" data-userid="<?php echo $user_id; ?>" data-sticky="<?php echo $is_ss; ?>">
    		<?php if (!is_user_logged_in()) : ?>
    			<span id="favorite-toggle">
    				<?php echo $before_html; ?>
    				<span id="favorite-<?php echo $topic_id ?>" data-tooltip="Give Critter Gold">
    					<a href="#" class="favorite-toggle" data-topic="<?php echo $topic_id ?>" rel="nofollow">Favorite</a>
    				</span>
    			</span>
    		<?php else : ?>
    			<?php bbp_user_favorites_link($fav_args); ?>
    		<?php endif; ?>
    		
    		<a class="bbp-topic-permalink" href="<?php bbp_topic_permalink(); ?>">
    			<figure <?php if($has_image) : ?> style="background-image: url('<?php echo $imgsrc; ?>');"<?php endif; ?> class="<?php if(!$has_image) { echo 'no-img'; } ?>">
    			<?php if ($has_image) : ?>
    				<img src="<?php echo $imgsrc; ?>" alt="<?php echo $title; ?>">
    			<?php else : ?>
    				<h3><?php echo $title; ?></h3>
    			<?php endif; ?>
    				<span class="meta-inside">
    					<span class="read">Read Post</span>
    					<span class="data">
    						<span class="replies"><?php echo $reply_count; ?> <?php echo $reply_label; ?></span>
    					</span>
    					<span class="author">Started By <?php echo $avatar; ?> <?php echo $author_name; ?></span>
    				</span>
    			</figure>
    			<!-- <a href="<?php echo $forum_link; ?>"><?php echo $forum_title; ?></a> |  -->
    			<figcaption>
    			<?php if ($has_image) : ?>
    				<h3><?php echo $title; ?></h3>
    			<?php endif; ?>
    				<span class="meta">
    					<span class="category"><?php echo $forum_title; ?></span><span> | </span>
    <?php /*
    					<span><?php echo $voice_count; ?> <?php echo $voice_label; ?></span> | 
    */ ?>
    					<span class="comments"><?php echo $reply_count; ?> <?php echo $reply_label; ?></span> |
    					<time><?php echo $time; ?></time>
    				</span>
    			<?php if ($has_image) : ?>
    				<p><?php echo $excerpt; ?></p>
    			<?php endif; ?>
    			</figcaption>
    		</a>
    	</li>
    
    #197674
    Robin W
    Moderator

    Just had a look, and it should be possible to filter that function, but I really need to use the code you are using on the homepage to understand the issue.

    can you post that code?

    #197670

    In reply to: topic info widget

    Robin W
    Moderator

    not a simple lift of code, so I’ve created the widget in my style pack plugin.

    bbp style pack

    Once activated, you’ll find the new widgets in the widgets section and can configure what they show there.

    Note : these widgets only appear on the relevant pages, so you won’t see the single topic information widget unless you are in a single topic!

    #197668
    chaaampy
    Participant

    WP : 5.0.2
    bbPress : 2.5.14
    Theme : Custom (built with _S)

    Hi everyone,

    Im having some issues in my custom theme.
    I have a custom register page where I put this code :

    <?php echo do_shortcode( ‘[bbp-register]‘ ); ?>

    The thing is, I don’t want the user to be redirected to my wp-login page after registration, for obvious security reasons.
    I had a look to some codes but non of them fit to my issue.
    Do someone have any idea ?
    Cheers,

    Chaaampy.

    mattbru
    Participant

    WordPress v5.0.3
    bbPress v2.5.14

    Im using the function bbp_user_favorites_link() on my homepage post content to show a favorite link icon in the upper righthand corner of the post image.

    When you click it, it goes to the single topic page. The “like” gets liked or unliked but I want to remain on the homepage. i dont want to go to the single topic page when clicking that icon from the homepage.

    https://forum.thecritterdepot.com/

    Note: You cannot “like” when youre not logged in. But I made a dummy icon that tells you you need to log in when clicked.

    I tried looking through all the bbpress “favorites” functions but couldnt figure out how to remove this behavior.

    Thanks!

    #197639

    In reply to: phpBB import (again)

    maximemue
    Participant

    @Gregg: thanks a lot for your problem and solution description. I think I have the same issue (phpBB 3.1, current WordPress/bbpress)

    WordPress-Datenbank-Fehler: [Unknown column 'users.user_website' in 'field list']
    SELECT convert(users.user_id USING "utf8mb4") AS user_id,convert(users.user_password USING "utf8mb4") AS user_password,convert(users.user_form_salt USING "utf8mb4") AS user_form_salt,convert(users.username USING "utf8mb4") AS username,convert(users.user_email USING "utf8mb4") AS user_email,convert(users.user_website USING "utf8mb4") AS user_website,convert(users.user_regdate USING "utf8mb4") AS user_regdate,convert(users.user_aim USING "utf8mb4") AS user_aim,convert(users.user_yim USING "utf8mb4") AS user_yim,convert(users.user_icq USING "utf8mb4") AS user_icq,convert(users.user_msnm USING "utf8mb4") AS user_msnm,convert(users.user_jabber USING "utf8mb4") AS user_jabber,convert(users.user_occ USING "utf8mb4") AS user_occ,convert(users.user_interests USING "utf8mb4") AS user_interests,convert(users.user_sig USING "utf8mb4") AS user_sig,convert(users.user_from USING "utf8mb4") AS user_from,convert(users.user_avatar USING "utf8mb4") AS user_avatar FROM phpbb_users AS users LIMIT 0, 100
    

    If you say you exported the phpBB Database, do you mean simply with phpmyamdin? But then what do I have to do, simply create a new one in phpMyAdmin and import this database? this I would understand, but how do I tell bbpress to use this database?

    Thanks for your help!!

    Best

    Maxime

    #197637
    Robin W
    Moderator

    it’ll be in one of the next 3 releases, so keep the current code, and look at the ‘what’s new’ tab on updates

    #197585
    chaaampy
    Participant

    WP : 5.0.2
    bbPress : 2.5.14
    Theme : Custom (built with _S)

    Hi everyone,

    Im trying to build a custom tinyMCE menubar in my forums.
    I disabled the text editor and get to a pretty nice ending, but I don’t know why, I just can’t display the “media” and the “emoticons” button.

    Here is my code :

    function bbp_enable_visual_editor( $buttons = array() ) {

    $buttons[‘quicktags’] = false;
    $buttons[‘tinymce’] = array(
    ‘toolbar1′ =>’bold, italic, underline, strikethrough, blockquote, bullist, numlist, link, unlink, cleanup, media, image, emoticons’);
    return $buttons;
    }

    add_filter( ‘bbp_after_get_the_content_parse_args’, ‘bbp_enable_visual_editor’ );

    Other ones are working fine … Any idea ? Im also trying to build a custom spoiler button, without plugins, but I don’t know where to start either …

    Cheers,

    Champy.

    #197575
    InventiveWebDesign
    Participant

    I am trying to allow users to embed videos by using links such as Youtube. When I do so the videos appears but is cut off because the box is to small to fit the iframe that is added to the site when wordpress adds the embed code. You can see an example here: http://b67.3d8.myftpupload.com/no-shift/topic/messed-up-divorce/

    I did some searching and found some CSS that doesn’t work either. Basically it adjusts the width but breaks on the height.

    .bbp-reply-content {
        overflow:hidden;
        padding-bottom:56.25% !important;
        position:relative;
        height:0;
    }
    .bbp-reply-content iframe{
        left:0;
        top:0;
        height:100%;
        width:100%;
        position:absolute;
    }

    Is there a way to make the WordPress auto embed code responsive in BBPress?

    #197571
    Robin W
    Moderator

    not totally sure what you are trying to do, but you could create a page and out the following shortcodes in it

    [bbp-single-topic id=$topic_id] 
    [bbp-forum-index]
    

    where $topic_id is the topic you want at the top.

    If you just want some basic rules, then you can create this as text and put it on a page above the [bbp-forum-index]

    Michael Van Patten
    Participant

    Looking for the right solution…

    We would like to create a social community site like facebook where members have profile pages and can post videos, pictures and such. Create and join groups and get push notifications for chosen content.

    1ST PAGE – ENROLLMENT & INTRO VIDEO
    1. Three minute intro video
    2. MEMBERSHIP ENROLLMENT BUTTON:
    Most important this will be a paid membership site with a pay to enter button. Emails provided in this sign up should integrate with mailchimp

    2ND PAGE- POST ENROLMENT
    Once they’ve entered we would like a landing page that has
    1. A embedded live stream video player
    2. A randomized video playlist player
    3. A grid avatar list of our core contributors below these two players
    4. Tabs up top to navigate to members profiles, groups and more

    we welcome your suggestions. Thank you all so much in advance

    1. Which version of WordPress are you running? WordPress 5.0.2
    2. Did you install WordPress as a directory or subdomain install? Directory installation
    3. If a directory install, is it in root or in a subdirectory? Root
    4. Did you upgrade from a previous version of WordPress? If so, from which version? No Fresh Install 2 days ago
    5. Was WordPress functioning properly before installing/upgrading BuddyPress (BP)? e.g. permalinks, creating a new post, commenting. N/A
    6. Which version of BP are you running? 4.1.0
    7. Did you upgraded from a previous version of BP? If so, from which version? NO
    8. Do you have any plugins other than BuddyPress installed and activated? If so, which ones? BuddyPress, Google Analytics for WordPress by MonsterInsights, Jetpack by WordPress.com, OptinMonster API, WPForms Lite
    9. Are you using a standard WordPress theme or customized theme? Tonic
    10. Which theme do you use ? Tonic
    11. Have you modified the core files in any way? NO
    12. Do you have any custom functions in bp-custom.php? NO
    13. If running bbPress, which version? Or did your BuddyPress install come with a copy of bbPress built-in? NO
    14. Please provide a list of any errors in your server’s log files. https://codex.wordpress.org/Debugging_in_WordPress
    15. Which company provides your hosting? Bluehost
    16. Is your server running Windows, or if Linux; Apache, nginx or something else? Apache
    17. Which BP Theme are you using? Tonic
    18. Have you overloaded any BuddyPress template files. NO
    19. Any other site customisations that might have a bearing on the issue? NO

    #197533
    gamersk
    Participant

    Hello,

    I have problem. I have on website bbPress with demo data but when i chose some forum or some subpage it’s blank. https://gamenice.sk/forum/

    functions.php

    <?php
    show_admin_bar(false);
    ini_set('display_errors', 1);
    ini_set('display_startup_errors', 1);
    error_reporting(E_ALL);
    function theme_enqueue_scripts() {
    
        $template_directory_uri = get_template_directory_uri();
    
        wp_enqueue_style( 'reset', $template_directory_uri . '/assets/css/reset.min.css', false, '1.0' );
        wp_enqueue_style( 'app', $template_directory_uri . '/assets/css/app.min.css?v=' . time(), array( 'reset' ), '1.0' );
        wp_enqueue_style( 'forum', $template_directory_uri . '/assets/css/forum.min.css?v=' . time(), array( 'app' ), '1.0' );
    
        wp_enqueue_script( 'html5shiv', $template_directory_uri . '/assets/js/html5shiv.min.js' );
        wp_script_add_data( 'html5shiv', 'conditional', 'lt IE 9' );
        wp_enqueue_script( 'selectivizr', $template_directory_uri . '/assets/js/selectivizr.min.js' );
        wp_script_add_data( 'selectivizr', 'conditional', 'lt IE 9' );
    
        wp_enqueue_script( 'jquery', $template_directory_uri . '/assets/js/jquery.min.js', false, '3.3.1' );
        wp_enqueue_script( 'app', $template_directory_uri . '/assets/js/app.js', array( 'jquery' ), '1.0' );
    
        wp_localize_script( 'app', 'carouselSettings', array( 'timeout' => get_option('carousel_timeout').'000' ) );
    }
    add_action( 'wp_enqueue_scripts', 'theme_enqueue_scripts' );
    
    function get_excerpt($where = ''){
        $excerpt = get_the_content();
        $excerpt = strip_shortcodes($excerpt);
        $excerpt = strip_tags($excerpt);
        switch ($where) {
            case 'carousel':
                if ( wp_is_mobile() )
                    $excerpt = substr($excerpt, 0, 120);
                else $excerpt = substr($excerpt, 0, 250);
                break;
            case 'head':
                $excerpt = substr($excerpt, 0, 200);
                break;
            default:
                if ( wp_is_mobile() )
                    $excerpt = substr($excerpt, 0, 300);
                else $excerpt = substr($excerpt, 0, 725);
                break;
        }
        $excerpt = substr($excerpt, 0, strripos($excerpt, " "));
        $excerpt = $excerpt.'...';
        return $excerpt;
    }
    
    function get_thumbnail_url() {
        $thumbnail = get_the_post_thumbnail_url() != '' ? get_the_post_thumbnail_url() : get_template_directory_uri() . '/assets/img/og-image.png';
        return $thumbnail;
    }
    
    function themename_custom_logo_setup() {
        $defaults = array(
            'height'      => 111,
            'width'       => 220,
            'flex-height' => true,
            'flex-width'  => true,
        );
        add_theme_support( 'custom-logo', $defaults );
    }
    add_action( 'after_setup_theme', 'themename_custom_logo_setup' );
    add_theme_support( 'post-thumbnails' );
    function register_my_menus() {
      register_nav_menus(
        array(
          'header-menu' => __( 'Header Menu' ),
          'footer-menu' => __( 'Footer Menu' )
        )
      );
    }
    add_action( 'init', 'register_my_menus' );
    function show_menu($menu_name) {
        $defaults = array(
            'theme_location'  => '',
            'menu'            => $menu_name,
            'container'       => '',
            'container_class' => '',
            'container_id'    => '',
            'menu_class'      => $menu_name,
            'menu_id'         => '',
            'echo'            => true,
            'fallback_cb'     => 'wp_page_menu',
            'before'          => '',
            'after'           => '',
            'link_before'     => '',
            'link_after'      => '',
            'items_wrap'      => '<ul class="inline-list %2$s">%3$s</ul>',
            'depth'           => 0,
            'walker'          => ''
        );
        wp_nav_menu($defaults);
    }
    
    include 'inc/theme-settings.php';

    forum.php

    <?php include 'header.php'; ?>
    
    <section class="forum-wrapper">
        <div class="container">
            <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
    
                <?php the_content(); ?>
    
            <?php endwhile; endif; ?>
        </div>
    </section>
    
    <?php include 'footer.php'; ?>
    
    #197529
    Robin W
    Moderator

    can you post the code that creates the field in the reply form please

    #197525
    mariririn
    Participant

    Yes, this code does not check URLs. And I write it in “functions.php”.

    mariririn
    Participant

    I am implementing comment function by AJAX. At the moment wp insert post is used. However, this function does not have a key for entering three values of “reply attribute”.

    In other words, I want to input three values “forum ID”, “topic ID” and “Reply To ID” with wp insert post.

    It key is like the next “???” .

    wp_insert_post(array(
        'post_title'   => (string)$_POST['replyTitle'],
        'post_content' => (string)$_POST['replyContent'],
        'post_status'  => 'publish',
        'post_author'  => get_current_user_id(),
        'post_type'    => 'reply'
        '???'          => (string)$_POST['forumID'],
        '???'          => (string)$_POST['topicID'],
        '???'          => (string)$_POST['replyToID'],
    ), true);

    How can I register these three values with wp insert post?

    I look forward to your response.

    #197519
    Robin W
    Moderator

    as a temporary, add this to your functions file

    add_action( 'bbp_template_after_forums_index' , 'rew_add_breadcrumb'); 
    add_action( 'bbp_template_after_single_forum' , 'rew_add_breadcrumb'); 
    add_action( 'bbp_template_after_single_topic'  , 'rew_add_breadcrumb'); 
    
    function rew_add_breadcrumb () {
    	bbp_breadcrumb(); 
    	
    }

    I’ll look to add it to style pack shortly

    #197518
    Robin W
    Moderator

    so what is the code doing/not doing that you want it to ?

    I presume you have $_POST[‘input_url’] set in either the reply post template or a function ?

    #197515
    Robin W
    Moderator

    I suspect that it doesn’t know which user you want displayed

    untested but try this

    <?php 
    $current_user_id = (int) bbp_get_current_user_id();
    
    $topics = bbp_get_user_topic_count_raw($current_user_id);
     $replies = bbp_get_user_reply_count_raw($current_user_id);
    
    $totalTopics = $topics * 5;
     $totalsReplies = $replies * 2;
    
    $points = $totalTopics + $totalsReplies;
    
    echo " points = $points.";
    
    ?>
    
    #197514
    chaaampy
    Participant

    WP : 5.0.2
    bbPress : 2.5.14
    Theme : Custom (built with _S)

    Hi everyone,

    Im trying to simply display the number of “points” earned by the current user (points = replies + topics), but outside the profile page (in my header actually, so basically on my whole website).

    Here is what I tried :

    <?php

    $topics = bbp_get_user_topic_count_raw();
    $replies = bbp_get_user_reply_count_raw();

    $totalTopics = $topics * 5;
    $totalsReplies = $replies * 2;

    $points = $totalTopics + $totalsReplies;

    echo ” points = $points.”;

    ?>

    When Im on the user’s profile page, this code worked lovely, but when Im outside of this page, anywhere on my website, it displays nothing.
    Any idea of what is exactly my issue ?

    Cheers,

    Chaaampy.

    #197499
    mariririn
    Participant

    I want to check if the custom field at reply is “AllowedURL”.

    If applicable to “AllowURL”, I would like to have the custom field value go into the database, but can you tell me the correct way to write the following code?

    add_action( 'bbp_new_reply', 'bbp_save_reply_extra_fields', 10, 1 );
    add_action( 'bbp_edit_reply', 'bbp_save_reply_extra_fields', 10, 1 );
    
    function bbp_save_reply_extra_fields( $reply_id ) { 
    	
    	$input_url = $_POST['input_url'];
    	
    	$AllowURL = [
    		'^http?://example.com/[^/]{10}$',
    		'^http?://example.net/[^/]{20}$' 
    	];
    	
    	foreach ( $AllowURL as $AU ){
    		if( @preg_match( '|'.$AU.'|', $input_url ) ) {
    			if ( isset($_POST) && $_POST['input_url']!='' ) {
    				update_post_meta( $reply_id, 'input_url', $_POST['input_url'] );
    			}
    		}
    	}
    	
    }

    I look forward to your response.

    #197495
    odevbul
    Participant

    bbpress/templates/default/bbpress/pagination-replies.php line:15

    div class="bbp-pagination" temprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter">
    	<link itemprop="interactionType" href="http://schema.org/CommentAction" />
    	<div class="bbp-pagination-count" itemprop="userInteractionCount">

    bbpress/templates/default/bbpress/loop-single-reply.php line:42

    <span itemprop="author" itemscope itemtype="http://schema.org/Person">
    	<span itemprop="name"><?php do_action( 'bbp_theme_before_reply_author_details' ); ?>

    your template page.php edit

    <article itemid="<?php the_permalink(); ?>" itemscope itemtype="http://schema.org/DiscussionForumPosting" id="post-<?php the_ID(); ?>" <?php post_class( 'clearfix' ); ?>>
    								<h1 class="post-title" itemprop="headline"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
    #197494
    odevbul
    Participant

    @Robin I did that. Can I add codes to those who want to?

    #197488
    Robin W
    Moderator

    put this in your functions file or in code snippets

    add_filter( 'bbp_suppress_private_author_link', 'rew_remove_author_space' ) ;
    
    function rew_remove_author_space ($author_link ){
    	$author_link = str_replace( '&nbsp;', '',  $author_link );
    return $author_link;
    }

    Code Snippets

Viewing 25 results - 3,901 through 3,925 (of 32,481 total)
Skip to toolbar