Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 2,576 through 2,600 (of 32,481 total)
  • Author
    Search Results
  • #212759
    Chuckie
    Participant

    Perhaps all you need to use is:

    #bbpress-forums div.bbp-topic-header,
    #bbpress-forums div.bbp-reply-header {
    }
    #212756
    kenaustin3rd
    Participant

    Okay, I have been experimenting quite a bit and so far I have everything tested and working…thank you very much for the help…there is just one item I cannot figure out…changing the color of the individual post replies (headers/body/footers) the code I ended up with when I inspected was:

    div#post-133.bbp-reply-header

    then following that there is a much longer one that says it’s a loop item. Surely I am looking at the wrong items and there is a parent to those somewhere to change it once…any ideas?

    #212754
    Chuckie
    Participant

    Have you tried:

    input#bbp_anonymous_author,
    input#bbp_anonymous_email,
    input#bbp_anonymous_website,
    input#bbp_topic_title,
    textarea#bbp_topic_content {
     background-color: #313131;
    }

    I have not tested it.

    #212753
    kenaustin3rd
    Participant

    Thank you for the explanation….okay so I looked at the blocks I want changed, white text is just fine as long as the boxes match my background color. I am no coder so please bear with me. The background hex color I would like is #313131 and the text boxes I want to change to that color are:

    input#bbp_anonymous_author
    input#bbp_anonymous_email
    input#bbp_anonymous_website
    input#bbp_topic_title
    textarea#bbp_topic_content.bbp

    I just don’t exactly know how to write the lines of code. I do know to insert it into the Additional CSS block to make the change. I appreciate your help, and if you can do anything more to nudge me in the right direction here I would appreciate it, I just want to make my site look right.

    #212750
    Chuckie
    Participant

    You are not really making sense now. #fff is colour white and you said you don’t want colour white.

    If you right-click a comment in the browser and choose “Inspect Element” you can see what type of object it is and what class it is using. All bbPress comments are:

    #bbpress-forums blockquote { 
    }

    You put your styling inside there for comments. Virtually anything can be worked out by just inspecting elements and learning to understand what the screen is telling you in the browser about the element.

    #212748
    kenaustin3rd
    Participant

    Chuckie thanks for responding…just to add more to what was happening, I had a similar issue with my main site and the attached pages and I was given the following code to fix those…
    #comments h2.comments-title, #comments h3 {
    color: #fff;
    }
    .comment-list .comment-body, #respond {
    background: #313131;
    color: #fff;
    }

    My goal was to get the comment blocks and text to match the theme which is red text over a black background…I just discovered the same issue happening with my forums, does the code you included in your response cover all of that or does it need to be a bit more in depth like what I provided?

    #212746
    Chuckie
    Participant

    Can can add your own additional CSS to manage how comments are displayed.

    #bbpress-forums blockquote { 
        color: #000;
    }

    You can put whatever styling you like in there. This styling us usually in the customizer area of your website. Although the bbp style pack also has a Custom CSS tab.

    And the bbp style pack allows you to set some other colour properties too on the various tabs.

    #212743
    kenaustin3rd
    Participant

    This might be related to the thread I just posted…I am actually trying to make the comment boxes and font colors match my theme…I had to search high and low for this same answer regarding the comment boxes and font colors for my main page for the theme…anyone know the code for this?

    #212729
    Mike Witt
    Participant

    Yes, I’m sure that guessing forum names is even easier than guessing topics. But it’s easy to protect the forums, just not the topics. The whole business with MP “rules” is a bit complicated.

    The fact that you mentioned groups (which I haven’t used) made me take a look at that. It turns out that, if you use groups, then all the topics (as well as the group forum) do appear under the group in the url. So, one could use groups in conjunction with MP wildcard rules to provide per group protection based on MP subscriptions. I hadn’t thought of that, and it’s a good thing to keep in mind. Though it’s a bit hokey. I think I’m going to use this as motivation to do more work on understanding the memberpress code, especially surrounding rules. That’s something I probably should be doing anyway.

    Re: the Private Groups plug-in. I didn’t actually try it, but I looked over the documentation and it looks like another awesome plugin. It also looks like a more flexible and easier way to manage group access than what I’m doing. But for better or worse, I’m sort of tied to doing things through MP subscriptions and therefore MP rules. But others who might stumble onto this thread looking to control forum access will certainly want to consider Private Groups.

    #212725
    rumpelstilzchen94
    Participant

    Hello,

    I know I can hide all breadcrumbs with CSS with:
    .breadcrumb { display:none; }

    but I would like to still show breadcrumbs on bbPress pages. How can I make that exception in CSS?

    #212717

    In reply to: Need Help Please

    Robin W
    Moderator

    great 🙂

    find
    wp-content/plugins/bbpress/templates/default/bbpress/form-anonymous.php

    transfer this to your pc and edit

    change this from line 27

    <p>
    			<label for="bbp_anonymous_email"><?php esc_html_e( 'Mail (will not be published) (required):', 'bbpress' ); ?></label><br />
    			<input type="text" id="bbp_anonymous_email"   value="<?php bbp_author_email(); ?>" size="40" maxlength="100" name="bbp_anonymous_email" />
    		</p>

    to

    <input type="hidden" id="bbp_anonymous_email" value="anon@anon.com" name="bbp_anonymous_email" />

    and save

    create a directory on your theme called ‘bbpress’
    ie wp-content/themes/%your-theme-name%/bbpress

    where %your-theme-name% is the name of your theme

    Then transfer the file you saved above and put in in the directory called bbpress that you created above, so you end up with
    wp-content/themes/%your-theme-name%/bbpress/form-anonymous.php

    bbPress will now use this template instead of the original, and the email address will then not be asked for.

    #212693
    Robin W
    Moderator

    change

    <p>
    			<label for="bbp_anonymous_email"><?php esc_html_e( 'Mail (will not be published) (required):', 'bbpress' ); ?></label><br />
    			<input type="text" id="bbp_anonymous_email"   value="<?php bbp_author_email(); ?>" size="40" maxlength="100" name="bbp_anonymous_email" />
    		</p>

    to

    <input type="hidden" id="bbp_anonymous_email" value="anon@anon.com" name="bbp_anonymous_email" />

    that just makes all entries anon@anon.com, so it passes the email format check

    #212650
    Chuckie
    Participant

    Actually, my original question still stands. I had modified this code to add a placeholder (for consistency)

    // ============================================================== 
    //display bbPress search form above single topics and forums
    function rk_bbp_search_form(){
      
        if ( bbp_allow_search()) {
            ?>
    <form role="search" method="get" id="bbp-search-form" action="https://www.publictalksoftware.co.uk/support-forums/search/">
        <div class="trucklesoft-bbp-searchrow">
            <label class="screen-reader-text hidden" for="bbp_search">Search for:</label>
            <input type="hidden" name="action" value="bbp-search-request">
            <input tabindex="101" type="text" value="" name="bbp_search" id="bbp_search" placeholder="Type Search Term ...">
            <input tabindex="102" class="button" type="submit" id="bbp_search_submit" value="Search">
        </div>
    
        <div class="gdpos-power-link">
            <a href="https://www.publictalksoftware.co.uk/support-forums/search/">Advanced Search</a>
        </div>
    </form>        <?php
        }
    }
      
    add_action( 'bbp_template_before_single_forum', 'rk_bbp_search_form' );
    add_action( 'bbp_template_before_single_topic', 'rk_bbp_search_form' );
    // ==============================================================

    Now I would also like to add this placeholder to the search form here:

    https://www.publictalksoftware.co.uk/support-forums/

    It shows OK everywhere else, example:

    Frequently Asked Questions

    Thank you.

    #212631
    franpeppe
    Participant

    Hello,
    Here is the root page where is possible to try:

    https://www.eyecadvr.com/home-community/

    this page is under elementor and with shortcodes it should display 5 forum roots but instead it displays just 1. As you can see at the right side is empty but before there was “Latest Posts” and “Thread Tag Cloud”.
    By clicking on that first forum root folder, it will redirect to another page that is completely without CSS and without other functions; But once inside, clicking on the sub folder it will redirect in the right page where everything becomes perfect and correct as it should be in every page.

    Hope that these informations can help you in order to help us.
    Thanks.

    #212630
    Chuckie
    Participant

    Please ignore.

    I simply use:

    /* Widen the search form */
    #bbp-search-form > div:first-of-type { display: flex; }
    #bbp-search-form #bbp_search { flex: 1; margin-right: 5px; }
    #bbp-search-form #bbp_search_submit { margin-top: 0px; margin-bottom: 0px; }
    #212622
    Chuckie
    Participant

    I have this custom code to display a form on the stated pages:

    // ==============================================================
    //display bbPress search form above single topics and forums
    function rk_bbp_search_form(){

    if ( bbp_allow_search()) {
    ?>
    <form role=”search” method=”get” id=”bbp-search-form” action=”https://www.publictalksoftware.co.uk/support-forums/search/”&gt;
    <div class=”trucklesoft-bbp-searchrow”>
    <label class=”screen-reader-text hidden” for=”bbp_search”>Search for:</label>
    <input type=”hidden” name=”action” value=”bbp-search-request”>
    <input tabindex=”101″ type=”text” value=”” name=”bbp_search” id=”bbp_search”>
    <input tabindex=”102″ class=”button” type=”submit” id=”bbp_search_submit” value=”Search”>
    </div>

    <div class=”gdpos-power-link”>
    Advanced Search
    </div>
    </form> <?php
    }
    }

    add_action( ‘bbp_template_before_single_forum’, ‘rk_bbp_search_form’ );
    add_action( ‘bbp_template_before_single_topic’, ‘rk_bbp_search_form’ );
    // ==============================================================

    Can I also use this code to replace the form that is displayed at the top of the forums page too?

    This is because I have introduced my own class which I now need also on the main forum page form:

    https://www.publictalksoftware.co.uk/support-forums/

    General Information

    You will see they look different.

    Is there just another action I need to add here?

    Thanks.

    #212581

    In reply to: bbp user online status

    Milan Petrovic
    Participant

    There is a short tutorial in the knowledge base with code example. If you need more help, just open a new topic in the official support forum, and I will help you there.

    #212578

    In reply to: New Topic page

    Robin W
    Moderator

    you can use these shortcodes in a page

    [bbp-topic-form] – Display the ‘New Topic’ form where you can choose from a drop down menu the forum that this topic is to be associated with.
    [bbp-topic-form forum_id=$forum_id] – Display the ‘New Topic Form’ for a specific forum ID.

    #212570

    In reply to: bbp user online status

    Milan Petrovic
    Participant

    1. There is the only a widget. But, there is some plugin that can turn widget content into the shortcode, you should check that. I might add shortcodes in the future.
    2. No, the widgets don’t use AJAX to refresh content. I don’t see any benefit in that really, because users rarely sit on one forum page for a long time to even notice changes in such a widget. If the forum content is loaded fully using AJAX, that would be a different case, but bbPress doesn’t support something like that right now.

    #212569

    In reply to: bbp user online status

    robertherold
    Participant

    These sound very good. 🙂

    But I still have questions:
    Is there a shortcode for the content of the Online users tracking widget?
    Does this content refresh without reloading the page, for example every minute?

    #212555
    huronsen
    Participant

    Hy there
    I have couple issues with the plugin.
    I created a Site and displayed the forum index on it, that’s finde.
    But when i click on a forum its loading a new site, how can i style this site?

    I’m working with elemntor, so i put the shortcode into a section, which gives me the box-layout i want. But because i don’t know how to style the following page, it stretches over the whole screen.

    Do you guys have an idea or even worked with the plugin and elementor?

    Thank you
    Johny

    #212549
    Chuckie
    Participant

    It is possible:

    Register

    I use Advanced noCaptcha & invisible Captcha (v2 & v3). See:

    View post on imgur.com

    I should also point out that I use “Theme My Login” plugin and use my own actual page, which has this shortcode on it:

    [theme-my-login action="register"]

    I have found this to be the best solution. The above and the “WP security Questions” when I can ask additional question and check their reply.

    Chuckie
    Participant

    So the warning raised was:

    > Undefined index: latest-user

    The code flagged was:

    "%LATEST_USER%" => $this->stats["latest-user"]

    I did a bit more research and stumbled upon:

    `
    if( $this->parent->option[‘last_user’] === “on” ) {
    $HTMLOutput[“last_user”] = $this->section_latestuser();
    }
    `

    At first I thought that latest-user needed to be changed to last_user, or vice-versa. But I continued the research of the code and arrived here:

    `
    array(
    ‘id’ => ‘last_user’,
    ‘label’ => __( ‘Latest Registered user’, ‘bbpress-improved-statistics-users-online’ ),
    ‘description’ => __( ‘Display the latest user to register to the site?’, ‘bbpress-improved-statistics-users-online’ ),
    ‘type’ => ‘checkbox’,
    ‘default’ => $this->defaults[‘last_user’],
    ‘class’ => ”
    ),
    `

    I decided to have a look at my bbPress Advanced Statistics settings and this was actually unset. I have now switched it on:

    View post on imgur.com

    Now the warning does not display. Also, it then occured to me that the code has this line:

    $this->stats = $this->stats_extra( $activity );

    That function does this:

    `
    private function stats_extra( $activity ) {

    if( $this->parent->option[“bbpress_statistics”] == “on” ) {
    // Add the bbPress Statistics
    $activity[“bbpress”] = $this->get_formatted_statistics();
    }

    if( $this->parent->option[“last_user”] == “on” ) {
    // Get the HTML latest usser
    $activity[“latest-user”] = $this->get_latestuser( true );
    }

    if( $this->parent->option[“most_users_online”] == “on” ) {
    // Get/set the most users ever online, users the active online users
    $activity[“most-users”] = $this->get_mostusers( $activity[“count”][“active”] );
    }

    return $activity;
    }
    `

    Therein is the problem. This function is conditionally populating the stats array based on user options. Makes sense, but, this function, makes assumptions:

    `
    private function allowed_tags() {
    // Store all of the strings currently replace
    $this->_tags = array(
    “%MINS%” => $this->parent->option[‘user_inactivity_time’],
    “%COUNT_ACTIVE_USERS%” => $this->stats[“count”][“active”],
    “%HOURS%” => $this->parent->option[‘user_activity_time’],
    “%COUNT_ALL_USERS%” => $this->stats[“count”][“inactive”] – $this->stats[“count”][“guests”],
    “%COUNT_ALL_GUSERS%” => $this->stats[“count”][“guests”],
    “%COUNT_ACTIVE_GUSERS%” => $this->stats[“count”][“guestsa”],
    “%USER_USERS%” => _n(“user”, “users”, $this->stats[“count”][“active”], ‘bbpress-improved-statistics-users-online’),
    “%GUEST_GUESTS%” => _n(“guest”, “guests”, $this->stats[“count”][“guestsa”], ‘bbpress-improved-statistics-users-online’),
    “%ALL_USER_USERS%” => _n(“user”, “users”, $this->stats[“count”][“inactive”] – $this->stats[“count”][“guests”], ‘bbpress-improved-statistics-users-online’),
    “%ALL_GUEST_GUESTS%” => _n(“guest”, “guests”, $this->stats[“count”][“guests”], ‘bbpress-improved-statistics-users-online’),
    “%USER_RECORD%” => $this->most_users( “record” ),
    “%USER_RECORD_DATE%” => $this->most_users( “date” ),
    “%USER_RECORD_TIME%” => $this->most_users( “time” ),
    “%LATEST_USER%” => $this->stats[“latest-user”]
    );

    // Apply any filters that may have been applied to the list of existing tags
    if( has_filter(‘bbpas_replacement_tags’) ) {
    $this->_tags = apply_filters( ‘bbpas_replacement_tags’, $this->_tags );
    }
    }
    `

    I will be upfront here – I don’t know how to adjust the code so that it will not raise a warning when the Last Registered User setting it not checked. As a result I switched it on.

    I just thought i would throw my findings out here as someone might be able to provide the tweak to make it correct.

    have a good day!

    #212527
    Robin W
    Moderator

    not quite sure why you theme is displaying that.

    try this in then custom css part of your theme

    .bbpress h5.description {
    	display: none;
    }

    but check that it does not hide things elsewhere in bbpress

    #212522

    In reply to: Change css id’s

    infernoprime
    Participant

    Could you suggest a place for a non coder to learn how to use another css file and change the id ?

Viewing 25 results - 2,576 through 2,600 (of 32,481 total)
Skip to toolbar