Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 1,876 through 1,900 (of 32,522 total)
  • Author
    Search Results
  • #218996
    juventino199
    Participant

    Hi, Robin thank you for your reply,

    is there a way to add in a background refresher then? Maybe the form of an external plugin etc? Or some code that will automatically refresh the page without the user knowing?

    If not then don’t worry but if there is a way, (and it’s not free work) I am happy to pay!

    #218992
    Robin W
    Moderator
    #218943
    kaanair
    Participant

    I would like change avatar style for media….480px responsive design which I attached screenshots.I use custom theme on my local server.I tried some of code in stylesheet but didn’t worked.
    Default code about avatar and author section

    #bbpress-forums li.bbp-body div.hentry {
        display: block;
      }
      #bbpress-forums li.bbp-body div.bbp-topic-author,
      #bbpress-forums li.bbp-body div.bbp-reply-author {
        -ms-flex-align: start;
            align-items: flex-start;
        width: 100%;
        margin: 0 0 16px;
        padding: 0 0 16px;
        border-bottom: 1px solid var(--color-divider);
        box-sizing: border-box;
      }
      .vikinger-forum-reply-author {
        -ms-flex-align: start;
            align-items: flex-start;
            
      }
    }

    #218941
    Robin W
    Moderator

    ok, this raises a number of questions, but let’s start with

    You talk about a sidebar, but I cannot see this in the code sent to the screen. How are you adding the sidebar to your forums page?

    I’d suggest that instead of rendering a register form on the sidebar, you have the login widget which has a register link on it, which you can direct to a register page with the register shortcode on it.

    #218920
    Robin W
    Moderator

    hmmm…

    Titles are not put in that part as default – bbpress uses the theme/page to do that, so I would not expect to see an <h2> tag after the <div id="bbpress-forums" class="bbpress-wrapper">

    do you have a theme or plugin that is altering bbpress display?

    Themes

    As a test switch to a default theme such as twentytwenty, and see if this fixes.

    Plugins

    If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    If you cannot do this to your site (say because it is live) then use the ‘troubleshooting’ features of this plugin to let you test without affecting other users

    Health Check & Troubleshooting

    Then come back

    #218915
    r083r7
    Participant

    I wish I could but the way that bbPress has implemented the CSS there is no middle.

    Please review the screenshots I took

    Index page with forum title
    https://monosnap.com/file/tKb4Y6GEkWf2GUMB88ghljeprh37Nt

    Topic page with topic question
    https://monosnap.com/file/M3hhJhX7wW4on9Ym2s4ecMcFqmjHOj

    This is the code that bbPress outputs for both the index page and topic page title

    <div id="bbpress-forums" class="bbpress-wrapper">
    <h2>main forum topipc</h2>

    If I get rid of one I get rid of the other one 🙁

    Still searching for a solution.

    #218913
    neon67
    Participant

    write the css selector #bbpress-forums ???? h2 more precisely – there will be a difference

    #218912
    neon67
    Participant

    in the menu (after installing bbpress) Nothing will appear – you must create and customize the menu yourself.
    Or use bbpress shortcodes for home page.

    Robin W
    Moderator

    untested but this should do it

    add_filter ('bbp_current_user_can_publish_topics' , 'rew_disallow_anon') ;
    
    function rew_disallow_anon ($retval) {
    	if ( ! is_user_logged_in() ) $retval=false ;
    return $retval ;
    }
    neon67
    Participant

    How to allow unauthorized users to post replies in threads only, but disallow new topics?
    There is a check-box in the forums tab – “Allow unauthorized users to create replies in topics.”
    But when I turn on, anonymous can create both: replies and new topics also ((

    How to split this permission? maybe code in functions.php…

    Thanks 🙏

    #218860
    Robin W
    Moderator

    if it didn’t work in style pack there are 3 reasons

    code error so does not work
    wrong element targeted
    something else is overwriting

    1st looks ok
    second could be the issue

    so let’s try 3rd to check, so add this

    #bbpress-forums #bbp-user-wrapper h2.entry-title {display: none !important;}

    #218848
    neon67
    Participant

    Hola!
    Someone knows the full code for bbpress – remove the site field in anonymous form?

    I’ve tried something like this (for the whole WP) but it doesn’t work

     function remove_url_from_comments($fields) {
        unset($fields['url']);
        return $fields;
    }
    add_filter('comment_form_default_fields', 'remove_url_from_comments');

    Thank!

    #218846
    tw2021
    Participant

    HI
    I got a code that i would like to hide thee username. For e.g when someone click on the profile member from the post in forum, it will bring to the profile page

    #bbpress-forums #bbp-user-wrapper h2.entry-title {display: none;}

    I have got the bbstyle pack and i entered the code above in the css customization but its not working. Is there a place I can insert the code above?
    thanks

    #218809
    Robin W
    Moderator

    ok, put this is in the custom css part of the bbp style pack plugin

    blockquote {
    	font-size: 12px !important;
    }
    #218806
    Robin W
    Moderator

    just put this in your theme’s custom css area

    blockquote {
    	font-size: 12px;
    }

    and change the size to whatever you want

    #218789
    Jens
    Participant

    Is there a plugin (or another way) to find out about the subscriptons in bbPress? The shortcode [bbp-stats] doesn´t help and statistic plugins seem to be closed. Any idea where to look in the database?

    #218782

    In reply to: Setting up pagination

    Robin W
    Moderator

    hmm, can’t say why it isn’t working – it is code that I put together from a number of sources.

    If I can find time, I’ll look through the code, but no promises

    #218772
    Robin W
    Moderator
    #218754

    In reply to: a link on the picture

    frenchlemans
    Participant

    Thanks Robin,

    I just added the “title” line because it came out with an error.
    Otherwise it works very well.

    $title = bbp_get_forum_last_reply_title( $topic_id );
    I think this function can be useful to other people.

    Have a good day.

    #218752
    thodoris7
    Participant

    Hi,
    The code with 404 error is this <a href="<?php bbp_user_topics_created_url($tessera_user_ID); ?>"><?php esc_html_e( 'Topics Started', 'tessera' ); ?></a>
    The only function that works is <a href="<?php bbp_user_profile_url($tessera_user_ID); ?>"><?php esc_html_e( 'Profile', 'tessera' ); ?></a>

    Do i have create any pages for the topics as for the forum;

    #218747
    vincenzon617
    Participant

    Hi there,

    Is it possible to use the forum title rather than the forum id when using shortcode to display the forum? In my website I am using a plugin which has virtual pages and I would like the user to search for the title of the forum they want and then it to be displayed – by means of shortcode.

    Just in case, I would like to add that duplicate naming of the fourms would not be an issue in my website (it is not possible for the user to create a fourm with the same name).

    Also, is there a way in which I am able to query the forum index? If so, am I able to check if a forum with this name (used in the query) already exists? If it doesn’t I would like the user to be able to start it, is this also possible?

    WordPress version 5.6.2
    bbPress version 2.6.6

    Thanks in advance!

    #218739
    Robin W
    Moderator

    hmmm…

    try using

    Code Snippets

    The code works fine in my functions file

    #218732
    Robin W
    Moderator

    so can you give us the code surrounding this use please

    #218731

    In reply to: a link on the picture

    Robin W
    Moderator

    might have been too complicated, maybe just try

    add_action( 'bbp_theme_after_topic_freshness_author', 'rew_freshness_display_reply');
    
    function rew_freshness_display_reply ($topic_id = 0) {
    		$topic_id   = bbp_get_topic_id( $topic_id );
    		$link_url   = bbp_get_topic_last_reply_url( $topic_id );
    		
    		$anchor = '<a class="rew_freshness_display_image" href="' . esc_url( $link_url ) . '" title="' . esc_attr( $title ) . '"><img class="plato" style="width: 29px; height: 20px;" src="https://webershoot.com/mesimages/transplato.png">' . '</a>';
    	
    echo '<p class="platopost">'.$anchor.'</p>';
    }
    #218729
    hamza21
    Participant

    It shows nonce_failure error when I add the above code in my theme function.php file.

Viewing 25 results - 1,876 through 1,900 (of 32,522 total)
Skip to toolbar