Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 1,151 through 1,175 (of 32,432 total)
  • Author
    Search Results
  • #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

    bbspammedin2022
    Participant

    Thanks for the info! Do you do custom code?

    We are using akismet but it isn’t very effective. It is only catching a small percentage of the reply spam.

    #227842
    tomcrise
    Participant

    Hello,

    I found a bug when using bbrpess and WOOF (Woocommerce Product Filter). Indeed, when bbpress is activated, when you want to filter products by category, the WOOF’s widget disappears. With a lot of tests on multiples websites, I found this bug comes from bbpess.phpclass on setup_variables() function when the attribute topic_tag_tax_id gets apply_filters( 'bbp_topic_tag_tax_id', 'topic-tag' ) value. When you comment this line, the bug is solve.
    As I don’t need tags on my Forum, I just need to set $this->topic_tag_tax_id = 0 and hide Topic tags form.

    But Here is my final problem : How can I overwrite this class because it’s not a template but the plugin file ?

    PS : I tried every possibilities (plugins versions, select another theme, change product database, catch network and files errors), the bug really comes from here as strange as it may seem.

    Cheers,

    TomCrise

    #227825
    Robin W
    Moderator

    none of this testd, but the actual adding of an image to the post would be something like

    add_action('bbp_template_before_single_topic', 'pym_print_featured_image_single_forum', 11);
    		
    	function pym_print_featured_image_single_forum() {
    		if (has_post_thumbnail()) {
    			echo '<div class="pym-bbp-topic-thumbnail">';
    			echo get_the_post_thumbnail(null, 'thumbnail' );
    			echo '</div>';
    		}
    	}

    adding featured topic to the backend would be something like

    add_post_type_support('topic', array('thumbnail'));

    Code could be written to allow the user to add an image, but that’s a chunk of work !!

    Robin W
    Moderator

    1. is doable, but would require custom code beyond free help

    2. hmmm… that’s kinda how I do this on this site, but I only have a dozen or so each day. Are you using askimet to help reduce spam?

    3. again would depend on what format the list is in, but beyond free hep as site specific.

    if you need paid help, contact me via

    Contact me

    #227822
    Robin W
    Moderator

    not sure how this is related to bbpress.

    I suspect you will need to set something in your theme

    dashboard>appearance>customise

    this custom css might help if you can’t find where to set the width

    #wrapper.boxed #theme-header, #wrapper.boxed .breaking-news, #wrapper.boxed #main-content {
    	width: 1200px !important;
    }
    #227819
    Sello
    Participant

    Hello guys. Technically I’m not very good at web stuff. I opened a wordpress based website. I have a licensed “Sahifa” theme. Everything is fine on the site, but my site is very “thin” on desktop platforms. There is no adjustment in the page settings for this. Especially when accessing from high-resolution monitors, the left and right sides of the site are blank. I hope I was able to explain. There is a css code etc about that. is there?
    Thanks 🙂

    My site: https://www.turkishvibe.com

    danieldhl
    Participant

    In the database, I am able to grab all ranks with the following query:
    select distinct rank_title from wp_badgeos_ranks

    In addition, I also need the criteria for each rank (i.e. Rank Junior is triggered when user posts 10 times, or Rank Senior is triggered when user reaches 5000 points, etc)

    Thank you in advance!

    #227737

    In reply to: Issue with Polylang

    xxreef
    Participant

    Hi ecollart,
    you must put in your function.php in your theme folder

    
    function filter_pll_check_canonical_url( $redirect_url, $language ) {
        if(strpos($redirect_url, '/edit/') !== false && strpos($redirect_url, '/forums/') !== false && strpos($redirect_url, '/reply/') !== false) {
            $redirect_url = str_replace('/fr/', '/', $redirect_url);
            $redirect_url = str_replace('/en/', '/', $redirect_url);
        }
        return $redirect_url;
    }
    add_filter( 'pll_check_canonical_url', 'filter_pll_check_canonical_url', 10, 2 );
    

    and you must modify inside the folder topic of your bbpres plugin the file template.php

    from

    
    // Pretty permalinks, previously usedbbp_use_pretty_urls()
    // https://bbpress.trac.wordpress.org/ticket/3054
    if ( false === strpos( $topic_link, ‘?’ ) ) {
    $url = trailingslashit( $topic_link ) . bbp_get_edit_slug();
    $url = user_trailingslashit( $url );
    
    // Unpretty permalinks
    } else {
    $url = add_query_arg( array(
    bbp_get_topic_post_type() => $topic->post_name,
    bbp_get_edit_rewrite_id() => ‘1’
    ), $topic_link );
    }

    to

    
    // Pretty permalinks, previously usedbbp_use_pretty_urls()
    // https://bbpress.trac.wordpress.org/ticket/3054
    if ( false === strpos( $topic_link, ‘?’ ) && strpos($topic_link, ‘/fr/’) == false  && strpos($topic_link, ‘/en/’) == false ) {
    $url = trailingslashit( $topic_link ) . bbp_get_edit_slug();
    $url = user_trailingslashit( $url );
    
    // Unpretty permalinks
    } else {
    $url = add_query_arg( array(
    bbp_get_topic_post_type() => $topic->post_name,
    bbp_get_edit_rewrite_id() => ‘1’
    ), $topic_link );
    }
    
    

    Bye Renzo

    #227720
    ecollart
    Participant

    Hello,

    Sorry for the delay but I finally I tried your add_moderator_by_id and it seems to work but I cannot test mail notification for the moment and I can’t see the moderator added on the forum list.

    But I need to say that in that list, the “-” displayed in moderator column is not there for those I tested with your code…

    I will do more test probably next week…

    Eric Collart

    #227688
    RalfM
    Participant

    Hi,
    I found that the bbpress index is not shown in a Divi page made with the theme builder. While the forums work fine, the index is not. I can insert the shortcode [bbp-forum-index] into the page, but then only the index is shown and nothing else.
    After some writing back and forth with ET, I found that a not-given design shows the forum and the index as it should (besides a sidebar that CSS could delete), but the page – of course – is not in the design of the other pages.
    Is there another way to implement the forum into a page design? Any ideas?
    Every response is highly appreciated!
    Best regards

    #227675
    DeepBlue
    Participant

    Hi

    I am using this plugin and it works well

    I have just one problem about links

    the same problem as this user : https://wordpress.org/support/topic/links-in-signature-do-not-work/

    and i also tried in bbcode but it doesnt convert to a link

    but i would prefer html as most users are used to html

    of course a visual editor would be great, is that possible ?

    Tx a lot !

Viewing 25 results - 1,151 through 1,175 (of 32,432 total)
Skip to toolbar