Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 1,201 through 1,225 (of 32,462 total)
  • Author
    Search Results
  • #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 !

    #227671
    DeepBlue
    Participant

    Hi

    Those 2 select are not necessary as you already have options to stick and status topics in the first post of each topic

    here is the css :

    /*HIDE TWO SELECT STICK AND STATUS BELOW FORM (ALREADY OPTION ON FIRST POST OF EACH TOPIC)*/
    label[for=bbp_stick_topic] {
        display: none!important;
    }
    
    select#bbp_stick_topic_select {
        display: none!important;
    }
    
    label[for=bbp_topic_status] {
        display: none!important;
    }
    
    select#bbp_topic_status_select {
    	display: none!important;
    }
    #227667

    In reply to: Private groups forum

    Robin W
    Moderator

    nit knowing what your ‘ecommerce theme profiles’ does code wise, I cannot guarantee, but suspect it should be ok, this plugin affects what is displayed, not how it looks

    DeepBlue
    Participant

    Hi Robin

    This plugin has been closed from WordPress plugins on 11 february

    Any other plugin to moderate topics ?

    i was hoping that the feature for comments :

    Before a comment appears
    1) Before a comment appears Comment must be manually approved
    2) Comment author must have a previously approved comment

    would also work for bbpress

    but i tested and it doesnt work…

    Apparently only the 2 settings comment moderation blacklist are working :

    – number of links
    – stopwords

    but the problem is there is no warning message showing if someone adds 2 links for instance and then submits, nothing tells him his post is pending moderation (same test for stop words)

    Also the admin doesnt have any notification of pending post, no mail, nothing on dashboard, i had to go directly to admin topics to see the pending topics

    Best moderation would be to always moderate the first post for any user, how could i do that ?

    i just found this other moderation plugin that does exactly what im describing but it’s 8 years old without update, does it still work ?

    Thanks a lot !

    #227648
    Robin W
    Moderator
    #227645
    Robin W
    Moderator

    untested (as I am on holiday without test server access), but try

    add_filter ('bbp_get_reply_author_link' , 'rew_return_null' ) ;
    add_filter ('bbp_get_topic_author_link' , 'rew_return_null' ) ;
    add_filter ('bbp_get_author_link' , '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

    #227636
    Robin W
    Moderator

    sorry I’m just a bbpress user who helps out here and I have limited time to try stuff.

    you could look at

    https://codex.bbpress.org/step-by-step-guide-to-setting-up-a-bbpress-forum/ item 3 method 2

    #227616
    Robin W
    Moderator

    unless you want to learn coding, then another plugin is the only way. Using a plugin or putting the code in your theme functions file has exactly the same impact on performance – typically nothing that is noticeable other than by using a stopwatch !!

    bbP Signature

    #227614
    DeepBlue
    Participant

    Hi

    How to show the number of posts just under the avatar on every messages ?

    php function or shortcode in template ? (i would like to avoid a new plugin)

    thank you 🙂

    #227613
    DeepBlue
    Participant

    Hi

    I noticed users have a bio in their profile settings

    How can i show this bio as a signature at the end of all their messages ? (with clickable links)

    what is the php (or shortcode) i can use on template file ?

    thank you (i would like to avoid another plugin)

    #227602
    hitlis
    Participant

    Hello, same problem, installed Template Library and Redux Framework Version 4.3.10 + bbpress, when opening the forum page in the role Participant i get an error:

    Error thrown
    Call to a member function get_users_for_object() on null

    please help, how can i fix it?

    #227586
    Robin W
    Moderator

    to hide

    #bbpress-forums fieldset.bbp-form label {
    	display: none;
    }

    put this in the custom css of your theme or the custom css of my style pack

Viewing 25 results - 1,201 through 1,225 (of 32,462 total)
Skip to toolbar