Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 1,176 through 1,200 (of 32,459 total)
  • Author
    Search Results
  • #228090
    DeepBlue
    Participant

    Hi

    I use [bbp-forum-index] on a page but it show a search box on top right, how to get rid of it ?

    Thanks !

    #228089
    DeepBlue
    Participant

    Hi

    Im working on this on file loop-single-topic.php

    How can i show only user avatar ?

    as in the code above this line show avatar AND user name :
    <span class=”bbp-topic-freshness-author-av”><?php bbp_author_link( array( ‘post_id’ => bbp_get_topic_last_active_id(), ‘size’ => 48 , ‘type’ => ‘avatar’ ) ); ?></span>

    How can i show only avatar on left side and on right side date of last post AND last poster name

    like this bbpress site for instance:

    https://olympus.crumina.net/groups/hiking-route/forum/

    Thanks

    Robin W
    Moderator

    That is how it is supposed to be.

    The dashboard is for administration, generally sites hide the dashboard from ordinary users either by using code or a plugin such as

    Hide Admin Bar Based on User Roles

    #228078
    meembat
    Participant

    I am using bbpress notify (no spam). I just dropped the no spam part in the post.

    I am ok with the Bcc. Just need to figure out how to ensure bbpress notify (no spam) does not interfere with the notifications from subscriptions.

    The alternative would be default all users to be subscribers to all forums. Is there a plugin for that? Or else may need some code or direct database changes to implement that.

    #228077
    Robin W
    Moderator

    I had NOT set bbpress notify to override bbpress subscriptions, so not sure why it was still disabling those notifications.

    I suspect that plugin assumes you want to override the subscriptions – but no idea.

    However, the email seem to have been addressed to noreply@domain, with the user email Bcc’ed

    Yes this is how bbpress now does this. The idea is that many mailservers chop lots of emails being sent at once, so this avoids that pitfall in theory. The fact that the noreply goes nowhere is not an issue as such, and you’ll find that many sites use this method.

    You can use this to amend that, though old this plugin still works

    AsynCRONous bbPress Subscriptions

    and if you want to amend the sending email use

    bbp style pack

    and dashboard>settings>bbp style pack>Subscription Emails

    Finally you might want to try

    https://wordpress.org/plugins/bbpress-notify-nospam/ as a better version of the notify plugin

    #228069
    DeepBlue
    Participant

    Hi

    Subforums appear like this by default :

    Parent Forum
    Subforum

    Subforum

    Subforum

    When looking at the source code, there are 2 <br> between each subforum, which explains the line break : <br><br>

    i would like to remove those line breaks to have this :

    Parent Forum
    Subforum, Subforum, Subforum

    which is the way main Forum CMS show subforums

    Do i need to edit a file ? or any easier way with bbp style pack plugin ?

    Thank you 🙂

    #228032
    DeepBlue
    Participant

    Ok actually i found the solution, for those who are looking for this :

    create a /css/ folder in your child theme with a tinymce-custom-editor.css with :

    body#tinymce.wp-editor {
        font-family: Sans-serif,Arial!important;
    }

    then add in your functions.php :

    // EDITOR TINYMCE CHANGE POLICE
    add_filter( 'mce_css', 'add_custom_editor_style' );
    function add_custom_editor_style() {
        return get_stylesheet_directory_uri() . '/css/tinymce-custom-editor.css';
    }
    #228022
    Robin W
    Moderator

    sorry, I thought I had answered that above, you play with these settings

    .mce-content-body p {
    	font-family: Georgia, "Times New Roman", "Bitstream Charter", Times, serif;
    	font-size: 16px;
    	color: #333;
    	overflow-wrap: break-word;
    	word-wrap: break-word;
    }
    #228008
    Robin W
    Moderator

    Is this plugin not compatible with Enfold?

    or you could ask

    is enfold not compatible with this plugin?

    check out

    https://kriesi.at/support/topic/getting-bbpress-to-work-with-the-enfold-theme/

    and perhaps raise with enfold as this is a paid theme

    #228000

    In reply to: Similar topics bbpress

    Robin W
    Moderator

    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

    #227999

    In reply to: Similar topics bbpress

    Robin W
    Moderator

    add_action( 'bbp_template_after_single_topic', 'rew_other_topics' );

    #227990

    In reply to: Similar topics bbpress

    Robin W
    Moderator

    but latest 5 if you have style pack installed would be

    add_action( 'bbp_template_after_replies_loop', 'rew_other_topics' );
    
    function rew_other_topics () {
    	 $topic_id = bbp_get_topic_id() ;
    	 $forum_id = bbp_get_topic_forum_id($topic_id) ;
    		echo do_shortcode("[bsp-display-topic-index show='5' forum =".$forum_id." template = 'list']") ;
    }

    though this would show the topic again if it were in the latest 5!

    #227978
    Robin W
    Moderator

    bbpress just uses the .body font from the wp-content.css file.

    You could style it using

    .mce-content-body p {
    	font-size: 25px;
    }

    but this will not save to the post, it will just be what is shown in the form

    #227958
    ibergstrom
    Participant

    Hello,

    On my staging site, k9fitness1dev.wpengine.com/ for my client, I installed BBPress. The forum page works fine, but when I try to open a topic page, it shows the content from blog posts that were published a super long time ago. I tried unpublishing the blog posts, but it still shows these contents.

    I am using WP version 5.8, bbPress 2.6.9, the enfold theme which is to date, and I believe that this glitch has something to do with the Avia advanced page builder, because the content that is generating shows a bunch of short codes that look like avia shortcodes.

    I tried to repair the forums, under the forum settings, but this did not cause any changes.

    Thanks in advance for your help.

    #227950
    Robin W
    Moderator
    add_action( 'bbp_theme_after_topic_started_by' , 'rew_add_date' ); 
    
    function rew_add_date () {
    	echo ' on ' ;
    	bbp_topic_post_date() ;
    }

    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

    #227932
    ollietubb1
    Participant

    Sorry yes it has!

    Thank you, had some code in the wrong place in the functions file.

    Appreciate your help Robin 🙂

    #227931
    ollietubb1
    Participant

    Thank you Robin,

    I have added the code in my child theme functions.php file.

    It hasn’t changed the page title though. Any further suggestions?

    Thanks,
    Ollie

    #227930
    Robin W
    Moderator
    add_filter(  'gettext',  'rew_bbpress_translate', 20 , 3  );
    
    function rew_bbpress_translate( $translated, $text, $domain ) {
    	if ($domain == 'bbpress') {
         $words = array(
                            
                            'Forums' => 'Forum'						
                 );
         $translated = str_replace(  array_keys($words),  $words,  $translated );
    	}
         return $translated;
    }

    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

    #227912
    DeepBlue
    Participant

    Hi

    Of course you can 🙂

    XenForo

    #227877
    andalusian
    Participant

    Hi,

    I installed the plugin, but it doesn’t really show the account page, it only shows the link and it is not clickable? Am I correct? Is there not something like with WooCommerce where subs can click the link and it redirects them to their profile page? The short code for woo is [woocommerce_my_account].

    #227861
    Robin W
    Moderator

    so have you tried

    add_filter ('bbp_topic_tag_tax_id' , 'rew_return_null') ;
    
    function rew_return_null () {
    return 0 ;
    }

    or

    add_filter ('bbp_topic_tag_tax_id' , 'rew_return_null') ;
    
    function rew_return_null () {
    return false ;
    }

    or indeed

    add_filter ('bbp_topic_tag_tax_id' , 'rew_return_null') ;
    
    function rew_return_null () {
    return 'hello' ;
    }

    it would appear to be a known issue

    https://pluginus.net/support/topic/first-filter-disappears-when-set/

    otherwise suggest you raise with woof

    #227850
    DeepBlue
    Participant

    Phpbb issues :

    phpBB

    #227849
    Robin W
    Moderator

    that line allows the result to be filtered

    so this should work

    add_filter ('bbp_topic_tag_tax_id' , 'rew_return_null') ;
    
    function rew_return_null () {
    return ;
    }

    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

    #227848
    DeepBlue
    Participant

    It says 3x:

    Import Forums

    Robin W
    Moderator

    Do you do custom code?

    yes

Viewing 25 results - 1,176 through 1,200 (of 32,459 total)
Skip to toolbar