Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 1,226 through 1,250 (of 32,481 total)
  • Author
    Search Results
  • 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

    #227565
    zuraiz
    Participant

    Hi, I am working on a Forums site which uses bbpress, but the topics created doesnt show up in the forums, unless you run the repair tool from Admin Panel. Is there any way of doing it automatically, through code?
    My idea is to run repair tool in CronJob, so I dont have to manually run the Repair tool every single time!

    #227514
    Robin W
    Moderator
    #227494

    In reply to: Issue with Polylang

    xxreef
    Participant

    I finally fixed my forum with another workaround.
    I change template.php in topics folder, 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 );
    }`

    I disable permalinks for edit of the topic when It’s Italian

    // Pretty permalinks, previously usedbbp_use_pretty_urls()`
    // https://bbpress.trac.wordpress.org/ticket/3054
    if ( false === strpos( $topic_link, ‘?’ ) && strpos($topic_link, ‘/it/’) == 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 );
    }`

    I hope this helps.
    You can check the behavior on http://www.mischianti.org

    Bye Renzo

    #227488

    In reply to: Issue with Polylang

    xxreef
    Participant

    Hi again,
    I did some progress.

    With this code

    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('/it/', '/', $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 );

    reply works correctly, but if I remove the “reply” filter I had an issue with topics, the forum ID of the Italian language is not present on the selection in editor.

    The solution can be not to use “pretty” edit links like

    http://localhost:82/it/forums/topic/moved-reply-to-prova-manipolazione-url/edit/

    but the link in a query string, like when the topic isn’t approved.

    http://localhost:82/it/?post_type=topic&p=18604&topic=moved-reply-to-prova-manipolazione-url&edit=1&view=all

    there is a way to enable this kind of link as default for edit and the other topic action?

    Thanks Renzo

    #227483
    Mike Witt
    Participant

    @viridw,

    I may misunderstand what you’re asking. But assuming you’re enabling the WP visual editor by doing something like this:

    function bbp_enable_visual_editor( $args = array() ) {
        $args['tinymce'] = true;
        return $args;
    }
    add_filter('bbp_after_get_the_content_parse_args', 'bbp_enable_visual_editor');

    I used to do that, but new WP releases seemed to break it in various ways. And there were other problems primarily with mobile devices. I decided it wasn’t worth the trouble and got rid of it.

    Just sharing my experience. Your milage may vary 🙂

    #227480
    wpa2mik
    Participant

    Add added the JS code and it helped.
    I tried bbp style pack, but it’s too comprehensive and complex for my needs.
    Thank you.

Viewing 25 results - 1,226 through 1,250 (of 32,481 total)
Skip to toolbar